Advertisement
Guest User

openwrt fw4 ttl mangling

a guest
Sep 2nd, 2022
1,021
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. 1.) put this in /etc/config/firewall
  2. config include
  3. option path '/etc/firewall.user'
  4. option fw4_compatible '1'
  5.  
  6. 2.) create the file '/etc/firewall.user'
  7.  
  8. 3.) put this line in it:
  9. nft add rule inet fw4 mangle_forward oifname usb0 ip ttl set 65
  10.  
  11. 4.) restart the firewall
  12. /etc/init.d/firewall restart
  13.  
  14. This sets the TTL to 65 (just a random number I picked) of all packets forwarded out on usb0 interface.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement