[ale] iptables

Jeff Lightner jlightner at water.com
Fri Jan 16 15:55:30 EST 2009


Fedora/RedHat/CentOS and derived distros you store it in
/etc/sysconfig/iptables.

On those you can run "iptables-save >/etc/sysconfig/iptables" to create
the file from what you have in memory.   On next boot it will read this
to load the same values back.

-----Original Message-----
From: ale-bounces at ale.org [mailto:ale-bounces at ale.org] On Behalf Of
James Sumners
Sent: Friday, January 16, 2009 3:46 PM
To: ale at ale.org
Subject: Re: [ale] iptables

What distro? I believe most support using /etc/rc.local for executing
custom scripts on boot.

On Fri, Jan 16, 2009 at 3:38 PM, Paul Cartwright <ale at pcartwright.com>
wrote:
> I setup a web server, and ran this command:
>  iptables -I INPUT -p tcp -m state --state NEW --dport 80 -i eth0 -j
ACCEPT
>
> so now you can get to my web server from other PCs.. but when I
rebooted, I
> had to run that command again.
> where do I put this command, so it will be there NEXT time I reboot??
>
> I setup nginx and gallery2 to put up almost instant pictures on a web
site..
> fast and easy ( when iptables lets you GET to it..)
>
> --
> Paul Cartwright


-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59
_______________________________________________
Ale mailing list
Ale at ale.org
http://mail.ale.org/mailman/listinfo/ale
----------------------------------
CONFIDENTIALITY NOTICE: This e-mail may contain privileged or confidential information and is for the sole use of the intended recipient(s). If you are not the intended recipient, any disclosure, copying, distribution, or use of the contents of this information is prohibited and may be unlawful. If you have received this electronic transmission in error, please reply immediately to the sender that you have received the message in error, and delete it. Thank you.
----------------------------------



More information about the Ale mailing list