LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices



Reply
 
Search this Thread
Old 04-01-2005, 06:35 AM   #1
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Rep: Reputation: 30
How to block specific IPs?


Hello,
I want to block specific IPs or allow specific IPs at Ethernet level. How can i do that? I dont want those blocked IP packets to reach IP layer instead reject them by NIC or any program after processing Ethernet layer?
If thats not possible then is there any way to allow packets with only specific HW address of NICs?

regards,
cranium.
 
Old 04-01-2005, 08:23 AM   #2
marghorp
Senior Member
 
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040

Rep: Reputation: 45
Use iptables and set a rule to reject the packets.

More info and iptables on http://www.netfilter.org/
 
Old 04-01-2005, 08:29 AM   #3
cranium2004
Member
 
Registered: Feb 2004
Distribution: FC4,RHEL4
Posts: 223

Original Poster
Rep: Reputation: 30
But iptables works at IP layer. I want to block at Ethernet/ Link layer.
 
Old 04-01-2005, 10:02 AM   #4
johnMG
Member
 
Registered: Jul 2003
Location: CT, USA
Distribution: Debian Sarge (server), Etch (work/home)
Posts: 601

Rep: Reputation: 31
Maybe http://ebtables.sourceforge.net/ ?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
block ips in valknut kb_ganesh Linux - Networking 0 12-01-2005 11:36 AM
want to block some prots on some IPs......? shahg_shahg Linux - Networking 1 07-01-2005 01:38 PM
block all IPs except one how in my setup?? cranium2004 Linux - Networking 3 03-20-2005 04:24 PM
Block list of IPs with SuSEFIREWALL2 mephitic Linux - Security 1 12-05-2004 02:50 AM
how to define a specific range of IPs and/or multiple IPs in an iptables rule?... TheHellsMaster Linux - Security 9 09-20-2004 11:06 AM


All times are GMT -5. The time now is 07:30 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration