From: Martin Vassilev <mv-lists@net-surf.net>
To: netfilter@lists.netfilter.org
Subject: Problem with transparent proxing if catching traffic on vlan interface
Date: Thu, 12 May 2005 14:52:38 +0300 [thread overview]
Message-ID: <200505121452.39043.mv-lists@net-surf.net> (raw)
Hello , first of all sorry for poor english.
Have some trouble with transparent proxing
Configuration is simple:
------------ ----------
|CLIENT| ---- eth/vlans ---- | GATE|
------------ ----------
transparent proxy
------------------test1---------------------
GATE:/#iptables -t nat -I PREROUTING -p TCP -s `CLIENT` \
--destination-port 80 -i vlan8 -j REDIRECT --to-ports 3128
CLIENT:/# telnet www.netfilter.org 80
Trying 213.95.27.115...
telnet: connect to address 213.95.27.115: Connection refused
(thats the problem ;))
GATE:/# tcpdump -n -i vlan8 -f "net `CLIENT`"
tcpdump: listening on vlan8
11:43:28.336226 `CLIENT`.38842 > 213.95.27.115.80: S 1057989664:1057989664(0)
win 5840 <mss 1412,sackOK,timestamp 1881955228 0,nop,wscale 2> (DF) [tos
0x10]
GATE:/# iptables -t nat -n -L -v
Chain PREROUTING (policy ACCEPT 32M packets, 1991M bytes)
pkts bytes target prot opt in out source
destination
1 60 REDIRECT tcp -- vlan8 * `CLIENT` 0.0.0.0/0
tcp dpt:80 redir ports 3128
nothing appear in squid´s access.log
----------------test2------------------------
After some rerouting to reach the gate through eth0
GATE:/#iptables -t nat -I PREROUTING -p TCP -s `CLIENT` \
--destination-port 80 -i eth0 -j REDIRECT --to-ports 3128
and all works fine.
---------------------------------------------
Is there any differents for netfilter if catching traffic on eth or vlan
interface ?
P.S.
Don´t have MTU problems with vlans.
Tried to flush all tables before testing.
Squid is configured properly.
--
Best Regards,
Martin Vassilev
next reply other threads:[~2005-05-12 11:52 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-05-12 11:52 Martin Vassilev [this message]
2005-05-12 12:47 ` Problem with transparent proxing if catching traffic on vlan interface Jason Opperisano
[not found] <200505121650.j4CGovrs010826@mont.net-surf.net>
2005-05-13 13:28 ` Martin Vassilev
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=200505121452.39043.mv-lists@net-surf.net \
--to=mv-lists@net-surf.net \
--cc=netfilter@lists.netfilter.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.