TTL Altering in WRT54G v.3.1

Discussion in 'Cisco/Linksys Wireless Routers' started by arteqw, Oct 30, 2005.

  1. arteqw

    arteqw Network Guru Member


    Does any alternative firmware support alter a TTL parametr? I need increment TTL on WLAN interface about 1. :)
  2. 4Access

    4Access Network Guru Member

    Well I was able to successfully enter the following two iptables rules into DD-WRT. One (or both depending on exactly what you're trying to accomplish) should get you what you need.

    iptables -t mangle -A PREROUTING -i vlan1 -j TTL --ttl-inc 1
    iptables -t mangle -A POSTROUTING -o vlan1 -j TTL --ttl-inc 1

    If you're using WRT54G v1 hardware replace "vlan1" wih "eth1". If you're using PPPoE you'll need to replace "vlan1" with "ppp0".

    All I did was test to see if the rules were accepted. Didn't actually check the TTL afterwards. Used a WRT54GS v2.0 with DD-WRT v23 beta2 (I didn't test the stable v22 but I would expect them to work there as well.)

    Also remember that simply entering the rules as show above will only last until you reboot the router.
  3. arteqw

    arteqw Network Guru Member

    a have wrt54g v3.1 :)
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice