From mboxrd@z Thu Jan 1 00:00:00 1970 From: Grant Taylor Date: Tue, 09 Jan 2007 02:41:25 +0000 Subject: Re: [LARTC] Trouble selecting network interface by port Message-Id: <45A300D5.9040706@riverviewtech.net> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 8bit To: lartc@vger.kernel.org On 12/29/06 17:40, Björn Lindström wrote: > # Mark packets that should be routed through the tunnel > iptables -A PREROUTING -i ${EXTIF} -t mangle -p tcp --dport 80 \ > -j MARK --set-mark 1 > I'm testing this with port 80 so that I can check the result by > running a script that returns my IP on a remote server. > > After doing all this, the remote server still sees my as the IP for > eth1. Can anyone see what I have overlooked here? It looks like you are marking packets that are inbound on your external interface. Did you perhaps mean to mark packets inbound on your internal interface and thus outbound from your system? Grant. . . . _______________________________________________ LARTC mailing list LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc