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

How often are iptables rules "refreshed"?

Discussion in 'Tomato Firmware' started by nobugme, Apr 11, 2008.

  1. nobugme

    nobugme Network Guru Registered

    If I have a cron job to create/delete an iptables rule, do I need to restart services for the changes to take effect? Or is there a predetermined "refresh" rate that I can wait for?

    If I need to restart any services, which ones do I restart? How do I put this in a cron job?

    Thanks again,
  2. mstombs

    mstombs Network Guru Member

    I'm pretty sure they take effect straight away - iptables is the userspace app that modifies/displays the kernel netfilter rules. Rules may get flushed on a "wan restart" though, the firewall script is positioned to allow you to add rules there just before the wan comes up.

Share This Page