LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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 08-31-2005, 03:37 PM   #1
ryanjliles
LQ Newbie
 
Registered: Aug 2005
Posts: 3

Rep: Reputation: 0
Question iptables config ?


I have a few Linux boxes with two NICs on each of them 1 NIC is assigned to the 10.1.1.0/24 network the other NIC is assigned to the 10.1.6.0/24 network...
I have been detecting UDP Broadcast packets from the 10.1.6.0/24 NIC that are getting forwarded to the 10.1.1.0/24 network.... I want to have these packets dropped... I could actually drop all packets from 10.1.6.0/24 network to the 10.1.1.0/24 if need be... I dont want any routing or bridging between the NICs .... does anyone know how to set iptables to accomplish this....
I have tried adding lines to the /etc/sysconfig/iptables file like these:
-A FORWARD -i eth1 -o eth0 -s 192.168.6.0/24 -j DROP
-A INPUTCHAIN -i eth0 -s 192.168.6.0/24 -j DROP

I have been trying various sorts like the line above and still pick up the traffic... Are my lines correct ? have any better ideas ?

any advice would be GREATLY appreciated.

thx,
ryan
 
Old 08-31-2005, 05:04 PM   #2
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
First off, 192.168.whatever is not relevant to your network. You should be using a 10.x.x.x address. Secondly, make sure ip forwarding is not enabled. Thirdly, the networks ARE physically separated, right?
 
Old 09-01-2005, 04:45 AM   #3
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Take a close look at the packets and see who is generating them. ip number and MAC address
You can use several tools for this, eg iptables -I FORWARD -o ethx -d 10.1.6.255 -j LOG
Check the network settings in those machines..
Broadcast packets aren't automatically passed, there needs to be a condition to make it happen, and this needs to be corrected.. rather than plugging the leak, fix it.
 
  


Reply



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 module config swmok Linux - Networking 3 04-17-2005 08:42 AM
iptables config probs geniarse Linux - Networking 4 10-28-2004 12:18 PM
Firestarter or IPTables config? gbg Linux - Networking 2 03-31-2004 06:44 AM
iptables config - RTT Linux - Security 2 01-10-2004 02:40 PM
newbie iptables config... christophe.dr Linux - Networking 1 10-08-2003 03:12 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 06:51 PM.

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
Open Source Consulting | Domain Registration