[BlueOnyx:12900] Re: iptables restart with rules

Gerald Waugh gwaugh at frontstreetnetworks.com
Mon Apr 22 08:20:19 -05 2013


On 04/22/2013 07:29 AM, 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.
>  
You need to edit /etc/sysconfig/iptables-config
if you want to save rules when you restart / reboot
But in your case it may have locked you out... make sure you have an
early rule to allow your own IP

Gerald
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.blueonyx.it/pipermail/blueonyx/attachments/20130422/e049a2f2/attachment.html>


More information about the Blueonyx mailing list