LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices

Reply
 
Search this Thread
Old 12-31-2003, 04:28 AM   #1
freelinuxcpp
Member
 
Registered: Jul 2003
Posts: 129

Rep: Reputation: 15
iptables & mac addresses


Hello every1
i d like to oblige everybody using my gateway to use a specific IP ( cause often the little smart guys we have change their IPs and do illegal stuff ) well i used this syntax with iptables
iptables -A INPUT -s ! 192.168.0.2 -m mac --mac-source 00:08:02:EB:6B7 -j DROP
the 192.168.0.2 was a machine that i used for tests i changed it's ip to 192.168.0.3 BUT !, the probleme is : iptables don't block all packets that's right the client machine wont surf over the net but it can send packet over the gatway such ICMP one , and when using IPs rather than nomral address we can even open URLs with the browser .... sounds like only the DNS stops working , is there any other way to get this working ?
thanx from the advence !
 
Old 12-31-2003, 04:48 AM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 47
Have a read of this thread..
http://www.linuxquestions.org/questi...hreadid=128325
 
Old 12-31-2003, 05:22 AM   #3
freelinuxcpp
Member
 
Registered: Jul 2003
Posts: 129

Original Poster
Rep: Reputation: 15
Thanx peter , it's exactly what i need
 
  


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
iptables rules with MAC addresses ProtoformX Linux - Networking 5 04-28-2005 07:54 AM
can MAC addresses be tracked? m00 Linux - Security 7 11-16-2004 09:50 PM
Viewing MAC addresses ivanatora Linux - Networking 1 09-26-2003 12:47 PM
Mac Addresses nixdisciple Linux - Security 6 07-01-2002 10:55 PM
Finding mac addresses Chijtska Linux - Security 5 02-27-2002 04:34 AM


All times are GMT -5. The time now is 05:22 PM.

Main Menu
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