Linux Netfilter discussions
 help / color / mirror / Atom feed
From: LeRoy DeVries <dutch@rvfulltimer.com>
To: Netfilter <netfilter@vger.kernel.org>
Subject: Need help with IPTABLES
Date: Wed, 07 Nov 2007 09:52:41 -0700	[thread overview]
Message-ID: <1194454362.5589.18.camel@DVA1> (raw)

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...



                 reply	other threads:[~2007-11-07 16:52 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1194454362.5589.18.camel@DVA1 \
    --to=dutch@rvfulltimer.com \
    --cc=netfilter@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox