Which interface i need to assign ip filer rules?

I have three Ethernet adapter in my linux system.

eth0, eth1 , localhost

Which ethernet adapter i need to give the filtering rules?

Can someone explain elaborate with reasons?
jaisonshereenAsked:
Who is Participating?
 
torquedtechConnect With a Mentor Commented:
your public ip is the the one that you will want to filter (eth1)

your private ip we believe is secure so we will trust it, however, the public interface is where we want the filter so that it will block unwanted people from entering.

for example a house, public interface is front door, private interface is back door.
we let friends come in the back door because they are trusted, but we must filter people at the front door (public) becuase we do not know who they are

make sense?

Thanks
~Dan

0
 
torquedtechCommented:
Hi jaisonshereen,

you will want to enable the ip filter rules on the device that currently has the ethernet cable plugged into it.

We are only interested in 2 interfaces eth0, and eth1, loopback is not an interface we need to worry about for this question.

if you run "ifconfig" (depending on your version/flavor of linux)
look for the interface that has an ip address. That is the one you want to enable the filter rules on

if they both have ip addresses, please let me know and I will help instruct from there.
0
 
jaisonshereenAuthor Commented:
Sorry forgot to mention.

eth0 is for private ip
eth1 is for public ip

what will be my cable is linked ..private or public?
0
 
jaisonshereenAuthor Commented:
yes.. so which interface will be the cable connected?
0
 
torquedtechCommented:
it will go to interface eth1
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.