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

help lowering ip_conntrack_max using ping_bug shell

Discussion in 'Cisco/Linksys Wireless Routers' started by sune, Aug 2, 2004.

  1. sune

    sune Network Guru Member

    First of all, I use the recent official firmware NOT sveasoft, so there is no telnet login.

    I use the modified perl script mentioned in http://www.linksysinfo.org/modules.php?name=Forums&file=viewtopic&t=448
    to get a pseudo shell on the wrt54g.

    I try to lower ip_conntrack_max value from 1024 to say 512 (this is really just an example, could be any value from /proc/sys/net/ipv4/*) by the following actions in the pseudo shell:

    wrt54g # cat /proc/sys/net/ipv4/ip_conntrack_max
    wrt54g # echo 512 > /proc/sys/net/ipv4/ip_conntrack_max
    wrt54g # cat /proc/sys/net/ipv4/ip_conntrack_max
    I.e. the value is unchanged. Apparently there's no sysctl command in the official firmware, so this is not an option.

    Any ideas or suggestions?

    Edit: Fixed this myself.

    Temporarily removed the "> /tmp/ping.log" redirection from the command injection, which solves the problem. Obviously I can't see the change until i reenable ping.log and do a cat /proc/sys/net/ipv4/ip_conntrack_max.

Share This Page