Linode Forum
https://forum.linode.com/

Firewall query
https://forum.linode.com/viewtopic.php?f=19&t=6245
Page 1 of 1

Author:  Xenshine [ Mon Nov 08, 2010 8:23 am ]
Post subject:  Firewall query

I'm modifying an iptables script but there are a few bits I'm not certain about.
These two variables are defined

Code:
LO_IFACE="lo" 
LO_IP="127.0.0.1"


So the loopback address is 127.0.0.1... but I don't understand the LO_IFACE="lo" bit

Here is an example of where these are referred to in a rule

Code:
iptables -A INPUT -p ALL -i $LO_IFACE -s $LO_IP -j ACCEPT


So instead of defining these variables you could put 127.0.0.1 for LO_IP, but what would you put for LO_IFACE?

Does this even make any sense??

Author:  rsk [ Mon Nov 08, 2010 10:41 am ]
Post subject: 

lo (lowercase LO) is the "network interface" used for loopback.
In easy terms, think of it as of a virtual network card, that's connected to the loopback only.
Just like eth0, eth1, eth2 are Ethernet cards, ppp0...pppX are PPP interfaces, and so on.
And, you'd put "lo" instead of $LO_IFACE, obviously.

Page 1 of 1 All times are UTC-04:00
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/