How often are iptables rules "refreshed"?

Discussion in 'Tomato Firmware' started by Deleted member 11230, Apr 11, 2008.

  1. 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,
    -p-
     
  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.
     
  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