Linux Netfilter discussions
 help / color / mirror / Atom feed
* Need help with IPTABLES
@ 2007-11-07 16:52 LeRoy DeVries
  0 siblings, 0 replies; only message in thread
From: LeRoy DeVries @ 2007-11-07 16:52 UTC (permalink / raw)
  To: Netfilter

I am trying to drop all port 80 traffic from going from source 10.1.0.1
to 192.168.0.1

My routing table in the router is as follows:


Routing Table  

Destination  Gateway   Netmask         Interface

192.168.1.0  0.0.0.0   255.255.255.0    vlan0

192.168.0.0  0.0.0.0    255.255.255.0   vlan1

10.1.0.0     0.0.0.0    255.255.255.0   tun0

0.0.0.0    192.168.0.1   0.0.0.0        vlan1

I tried to using the following;

iptables -I FORWARD 1 -s 10.1.0.0/24 -d 192.168.0.1 -p tcp --dport 80 -j
DROP

however, the traffic still goes through on tun0

I tried 

iptables -I FORWARD 1 -d 192.168.0.1 -p tcp --dport 80 -j DROP

and the vlan traffic gets block but not the tun0

any ideas what I'm doing wrong?

thanks in advance for any help...



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2007-11-07 16:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-11-07 16:52 Need help with IPTABLES LeRoy DeVries

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox