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! |
How do you connect the pc's together?
This is important for placing rules.. Otherwise place rules in pc1 that drop packets from pc4.. |
- 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 |
Ok, so a rule in pc2..
iptables -I FORWARD -i wlan? -s 10.0.4.x -d 10.0.1.x -j REJECT |
nice! thx
|
All times are GMT -5. The time now is 05:37 AM. |