LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   iptables blocking traffic (https://www.linuxquestions.org/questions/linux-networking-3/iptables-blocking-traffic-380499/)

JJX 11-06-2005 11:46 AM

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!

peter_robb 11-06-2005 12:15 PM

How do you connect the pc's together?

This is important for placing rules..

Otherwise place rules in pc1 that drop packets from pc4..

JJX 11-06-2005 12:27 PM

- 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

peter_robb 11-06-2005 12:47 PM

Ok, so a rule in pc2..

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

JJX 11-07-2005 05:36 AM

nice! thx


All times are GMT -5. The time now is 05:37 AM.