[GLLUG] iptables rules

Dan DeSloover zifferent at yahoo.com
Tue Nov 4 12:38:01 EST 2008


iptables -I INPUT 1 -s 127.0.0.1 -j ACCEPT

or

iptables -I INPUT 1 -i lo -j ACCEPT

Karl Schuttler wrote:
> Hello all; I have a server that I want to enable access to port 80 to
> only through loopback (I want to force the user to ssh port forward
> instead of hitting it through the web. I currently am dropping inbound
> port 80 packets, which also disables my ability to port forward. What
> do i need to do to make this work; add an allow rule for loopback or
> something?
> _______________________________________________
> linux-user mailing list
> linux-user at egr.msu.edu
> http://mailman.egr.msu.edu/mailman/listinfo/linux-user
>


----
Dan DeSloover
dand at zifferent.net



More information about the linux-user mailing list