Issues related to p2p and software using large connections

Discussion in 'DD-WRT Firmware' started by cdaga, Aug 20, 2006.

  1. cdaga

    cdaga Network Guru Member

    Here are instructions on how to use a script that solves the router reset problem related to most p2p software and software using lots of tcp connections.

    I found the instructions usefull and hope others will also

    may be the administrators can make a sticky of this post if found usefull

    · Do not use the web interface method as it cuts off part of the commands.
    · Enable SSH (Admin, Services) as we are going to use the NVRAM method
    · Login to the router with an SSH client (root/your password).
    · Put the following commands into the SSH client.

    ~ # nvram set rc_startup="
    > echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    > echo 1 > /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    > echo '600 1800 120 60 120 120 10 60 30 120' > /proc/sys/net/ipv4/ip_conntrack_tcp_timeouts
    > "
    ~ # nvram commit
    ~ # reboot
    The system is going down NOW !!
    Sending SIGTERM to all processes.

    · Note the ' instead of " on the third command line. Using " on the third command line closes the set command (as on last line), meaning that the last command will get cut off prematurely.
    · Make sure your "Maximum Ports" is set to 4096 on the Management page.
    · You can check the settings worked by logging in via SSH and viewing the contents of each file as below or using the "nvram get rc_startup" command.

    ~ # more /proc/sys/net/ipv4/icmp_ignore_bogus_error_responses
    ~ # more /proc/sys/net/ipv4/icmp_echo_ignore_broadcasts
    ~ # more /proc/sys/net/ipv4//ip_conntrack_tcp_timeouts
    600 1800 120 60 120 120 10 60 30 120


  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