[BlueOnyx:12899] Re: iptables restart with rules
Larry Smith
lesmith at ecsis.net
Mon Apr 22 07:42:49 -05 2013
Believe iptables restarts with the rules that are saved (if any)
to the file /etc/sysconfig/iptables. If no rules have been saved
there, then it starts with an empty or default set. I generally
(periodically) save with iptables-save > /etc/sysconfig/iptables
then can restore (and reboot) with iptables-restore /etc/sysconfig/iptables
and know how things are set starting out.
--
Larry Smith
lesmith at ecsis.net
On Mon April 22 2013 07:29, Richard Morgan wrote:
> For some reason we were locked out out our box this morning and iptables
> was showing our IP. To solve the problem quickly I simply ran:
>
> service iptables restart
>
> The problem was solved although I was a little surprised to find this
> didn't load any rules at all - it started and is running but iptables -L -n
> shows it'll accept pretty much anything.
>
> What restart command is used to start iptables with the standard
> rules/chains in place? Maybe I'm misunderstanding something, so any help
> would be great.
>
> Thanks, Richard
More information about the Blueonyx
mailing list