1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Setting ttl to 1

Discussion in 'HyperWRT Firmware' started by wojtekqreg, Jan 19, 2005.

  1. wojtekqreg

    wojtekqreg Network Guru Member


    I recently bought WRT54G v2.2 and would like to use it in my small network. To every cable output I'll connect about 5 users in sepearate subnetworks.

    I'd like to use a simple security measure to prevent illegal connection sharing - set ttl to 1 in all packets send to local network.

    this should do the trick but I'd like to aks You all how to make this using HyperWRT. I tried getting the manual for it but It's not avaliable yet, and simpli pasting it in the firewall script (via www) hasn't worked :(

    iptables -t mangle -A OUTPUT -o eth1 -j TTL --ttl-set 1

    If it is not possible using HyperWRT then which firmware should I use?

    Thanks for any given help,

  2. chris-at

    chris-at Network Guru Member

    Try it this way:

    sleep 60
    /usr/sbin/iptables -t mangle -A OUTPUT -o eth1 -j TTL --ttl-set 1

    you have to include the path with the command. and with the sleep you give the router enough time to set up it's own rules because otherwise it would simply overwrite yours.

  3. wojtekqreg

    wojtekqreg Network Guru Member

    Thank You I'll try this out first thing in the morning:)


Share This Page