[ale] iptables

James Sumners james.sumners at gmail.com
Fri Jan 16 15:45:58 EST 2009


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


More information about the Ale mailing list