Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Firewall query
PostPosted: Mon Nov 08, 2010 8:23 am 
Offline
Junior Member

Joined: Sun Mar 01, 2009 10:48 am
Posts: 20
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??


Top
   
 Post subject:
PostPosted: Mon Nov 08, 2010 10:41 am 
Offline
Senior Member
User avatar

Joined: Tue Nov 24, 2009 1:59 pm
Posts: 362
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.

_________________
rsk, providing useless advice on the Internet since 2005.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group