Solved

Which interface i need to assign ip filer rules?

Posted on 2008-06-20
5
267 Views
Last Modified: 2010-04-21
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?
0
Comment
Question by:jaisonshereen
  • 3
  • 2
5 Comments
 
LVL 3

Expert Comment

by:torquedtech
ID: 21835590
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
 

Author Comment

by:jaisonshereen
ID: 21835604
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
 
LVL 3

Accepted Solution

by:
torquedtech earned 500 total points
ID: 21835624
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
 

Author Comment

by:jaisonshereen
ID: 21835639
yes.. so which interface will be the cable connected?
0
 
LVL 3

Expert Comment

by:torquedtech
ID: 21835645
it will go to interface eth1
0

Featured Post

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Problem to start Neon 20 88
parse convert xml feed to text (python) 2 71
linux boot fsck problem 3 61
how to rebuild XFS volume from LV 19 40
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
FreeBSD on EC2 FreeBSD (https://www.freebsd.org) is a robust Unix-like operating system that has been around for many years. FreeBSD is available on Amazon EC2 through Amazon Machine Images (AMIs) provided by FreeBSD developer and security office…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now