lakinduakash / linux-wifi-hotspot

Feature-rich wifi hotspot creator for Linux which provides both GUI and command-line interface. It is also able to create a hotspot using the same wifi card which is connected to an AP already ( Similar to Windows 10).
BSD 2-Clause "Simplified" License
3.26k stars 301 forks source link

Add options to configure network ttl #325

Open mxvin opened 1 year ago

mxvin commented 1 year ago

some network env sometimes enforcing / expect device to have certain TTL. When network is re-routed/nat, the traffic from tethered device is ttl +1 and make tethered device not connected to upstream network.

something like iptables -w -t mangle -I PREROUTING -i <out net iface> -j TTL --ttl-set 129 or <...> --ttl-inc 1 would do.

should be added and configurable if needed context, If you not familiar of this kind of problem https://forum.openwrt.org/t/iptables-ttl-mangling-doesnt-work-with-bridged-setup/32708

Yorizuka commented 9 months ago

This would be really useful, I really hope someone adds this!