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


Discussion in 'Other Firmware Projects' started by Scrooge, Sep 29, 2004.

  1. Scrooge

    Scrooge Guest

    Just like the autorun-bash script - a section where u can define your own (iptables)commands to be run, each time the firewall is reloaded.

    The autorun-bash script only runs once when the router is booted, however, every change in the webinterface, even minor, often results in reloads of the firewall and thereby loss of any custom set settings (via telnet)..

    The firewall-script section should be run in addition to the normal firewall scripts, each time such a reload occur, so you wouldn't loose your settings, and would have a much easier approach to customising the firewall.

    Ie. I use it to make MRTG work from an outside host by using this cmd:
    /usr/sbin/iptables -I INPUT -s ip.of.outside.box -p udp --dport 161 -j ACCEPT

    However, every time I click "save settings" on the router I have to telnet in and run that cmd :)

    (Sveasoft solved the problem with a rc_firewall nvram variable, but im sure Tanguy can do better :D )

Share This Page