Skip to content

Latest commit

 

History

History
47 lines (39 loc) · 1.31 KB

README.md

File metadata and controls

47 lines (39 loc) · 1.31 KB

ttl-bypass

Simple nftables config that can bypass any pisowifi anti-tethering & anti-hotspot sharing using openwrt router.

Support

  • works both WAN and WLAN (extender)

Req

  • Openwrt Router (extender/repeater mode) must be connected to the pisowifi

Access ssh or telnet

Install Permanently

wget -O /etc/nftables.d/ttl64.nft https://raw.githubusercontent.com/xiv3r/ttl-bypass/refs/heads/main/ttl64.nft && fw4 check && /etc/init.d/firewall restart

Openwrt Config

  • Path: /etc/nftables.d/ttl64.nft
chain mangle_prerouting_ttl64 {
  type filter hook prerouting priority 300; policy accept;
   counter ip ttl set 64
   counter ip6 hoplimit set 64
}

Run in CLI

wget -qO- https://raw.githubusercontent.com/xiv3r/ttl-bypass/refs/heads/main/ttl64.sh | sh

Openwrt CLI

# Create the chain
nft add chain ip mangle mangle_prerouting_ttl64 { type filter hook prerouting priority 300; policy accept; }

# Add rules to the chain
nft add rule ip mangle mangle_prerouting_ttl64 counter ip ttl set 64
nft add rule ip mangle mangle_prerouting_ttl64 counter ip6 hoplimit set 64