Skip to content

wifi extender bypass for wifi anti tethering or anti wifi hotspot sharing using a simple openwrt nftables config.

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

40 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TTL Bypass

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


Wifi Station 10.0.0.1/20 ttl=1

👇

Openwrt extender with nftables ttl generator

👇

Users 10.0.0.1/20 ttl=64

Requirements

  • Openwrt Router => configured as (extender/repeater/wireless bridge mode) must be connected to a wifi with TTL value of 1

SSH or Telnet

Install

persistent

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

config

Path: vim /etc/nftables.d/ttl64.nft

chain mangle_prerouting_ttl64 {
                type filter hook prerouting priority 300; policy accept;
                ip ttl set 64
                ip6 hoplimit set 64
        }

chain mangle_postrouting_ttl64 {
                type filter hook postrouting priority 300; policy accept;
                ip ttl set 64
                ip6 hoplimit set 64
        }

Run in ssh CLI

optional

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

Openwrt ssh CLI

nft 'add table inet mangle'
nft 'add chain inet mangle mangle_prerouting_ttl64 { type filter hook prerouting priority 300; policy accept; }'
nft 'add rule inet mangle mangle_prerouting_ttl64 ip ttl set 64'
nft 'add rule inet mangle mangle_prerouting_ttl64 ip6 hoplimit set 64'
nft 'add chain inet mangle mangle_postrouting_ttl64 { type filter hook postrouting priority 300; policy accept; }'
nft 'add rule inet mangle mangle_postrouting_ttl64 ip ttl set 64'
nft 'add rule inet mangle mangle_postrouting_ttl64 ip6 hoplimit set 64'

About

wifi extender bypass for wifi anti tethering or anti wifi hotspot sharing using a simple openwrt nftables config.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages