Skip to content

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

Notifications You must be signed in to change notification settings

xiv3r/ttl-bypass

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

ttl-bypass

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

Req

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

Access ssh or telnet

  • ssh: ssh root@192.168.1.1
  • telnet: telnet 192.168.1.1

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages