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:

    Code:
    wrt54g # cat /proc/sys/net/ipv4/ip_conntrack_max
    1024
    wrt54g # echo 512 > /proc/sys/net/ipv4/ip_conntrack_max
    wrt54g # cat /proc/sys/net/ipv4/ip_conntrack_max
    1024
    
    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.
     
  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