How can i go back to default iptables settings in Ubuntu?
I'm running Ubuntu 9.04 and started messing around with my firewall, it got a little too complecated for me, so I just would like to be able to somehow restore the default iptables setting. Any idea how I can do this?
|
And since I installed some programs already if I do $ iptables -F won't it put my system in jeopardy since some port could have been unblocked as a result of installing some packages?
|
If the added rules are run time only - that is if they have been added via the command line and not saved, then a restart of iptables should do it.
|
I've actually saved the rules.
|
me personally, i would uninstall and reinstall iptables, but consider the security implications between the uninstall and install time :)
|
How do you uninstall and install iptables? As far as the security implications I'll just disconnect from the internet while installing and reinstalling them.
|
try doing $ iptables-save > somefile Then edit the file as you see fit.
Once done run $ iptables-restore < somefile I try to put a $ -F at the begining of the file to clear out the iptables and load the rest of the file. This will clear your existing rules and reload the ones that you just edited. |
Quote:
|
All times are GMT -5. The time now is 04:38 PM. |