LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 11-06-2005, 11:46 AM   #1
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Rep: Reputation: 31
iptables blocking traffic


I have 4 pcs in my house .

The connection is like that:

pc1 -> pc2 -> pc3 -> pc4

Each one has a c class

First: 10.0.1.x
Second: 10.0.2.x
Third: 10.0.3.x
Forth: 10.0.4.x

Every pc runs quagga and bgp.

How is possible to block traffic from pc1 to pc4 using iptables to pc2 or pc3?
(i want pc4 not be able to get any packets from pc1 )

thx for any help!
 
Old 11-06-2005, 12:15 PM   #2
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
How do you connect the pc's together?

This is important for placing rules..

Otherwise place rules in pc1 that drop packets from pc4..
 
Old 11-06-2005, 12:27 PM   #3
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
- pcs connect with wireless cards (pc1 and pc4 has one card, pc2 kai pc3 has 2)
assume that are named wlan0 & wlan1
- I want to do it in pc2 or pc3 only

Last edited by JJX; 11-06-2005 at 12:29 PM.
 
Old 11-06-2005, 12:47 PM   #4
peter_robb
Senior Member
 
Registered: Feb 2002
Location: Szczecin, Poland
Distribution: Gentoo, Debian
Posts: 2,458

Rep: Reputation: 48
Ok, so a rule in pc2..

iptables -I FORWARD -i wlan? -s 10.0.4.x -d 10.0.1.x -j REJECT

Last edited by peter_robb; 11-06-2005 at 12:49 PM.
 
Old 11-07-2005, 05:36 AM   #5
JJX
Member
 
Registered: Mar 2004
Location: Greece
Distribution: Debian
Posts: 345

Original Poster
Rep: Reputation: 31
nice! thx
 
  


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
Blocking traffic fugzi Linux - Networking 2 12-04-2004 03:31 PM
Blocking MSN Messenger Traffic With Smoothwall canadiantechie Linux - Software 0 08-21-2004 03:03 PM
Kernel 2.4.26, slack 8.0: blocking outgoing traffic coindood Linux - Networking 3 06-03-2004 10:15 PM
Iptables blocking all traffic on other NIC spede Linux - Security 3 05-05-2004 05:37 PM
firewall traffic blocking help jaylee Linux - Security 8 06-30-2003 10:44 AM

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

All times are GMT -5. The time now is 12:12 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration