NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

dsm1212's avatar
dsm1212
Apprentice
Dec 04, 2015

Making iptables persistent

I have a custom iptables setting (currently running 6.4.1 but I've never got this working). I'd like the system to apply it on restart so I installed iptables-persistent, but no matter how I set up the dependencies I always end up with the same netgear settings for iptables. I think somehow this is happening thorugh connman so I made iptables-persistent start after that and still no joy. journalctl says it runs:

 

Dec 03 14:49:10 warehouse6 iptables-persistent[2865]: Loading iptables rules... IPv4... skipping IPv6 (no rules to load)...done.

 

Any clue how to get this to work. Or where I can run a command after connman is fully initialized?

 

thanks

 

steve

2 Replies

Replies have been turned off for this discussion
    • dsm1212's avatar
      dsm1212
      Apprentice

      I use knockd for external ssh access but to do this I need to block port 22 by default with iptables. It works fine and keeps my log from filling with spurious intruders, but I need to remember to apply the default tables when I reboot. I don't reboot that often so I usually forget.

       

      steve

NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology! 

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More