From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jan Engelhardt Subject: Re: Multi ISP router/firewall ... Date: Wed, 28 Mar 2007 19:15:23 +0200 (MEST) Message-ID: References: <3564089.276511175009558150.JavaMail.www@wwinf1504> <1175061118.21066.34.camel@rayw.internal> <1175064190.21066.48.camel@rayw.internal> <1175084510.4084.4.camel@rayw.internal> Mime-Version: 1.0 Return-path: In-Reply-To: <1175084510.4084.4.camel@rayw.internal> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: netfilter-bounces@lists.netfilter.org Errors-To: netfilter-bounces@lists.netfilter.org Content-Type: TEXT/PLAIN; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Ray Leach Cc: Netfilter On Mar 28 2007 14:21, Ray Leach wrote: > >The problem was that reverse path filtering had to be enabled on the >eth4 interface. All my other interfaces have reverse path filtering >disabled, so what's the difference with this one? I suspect something, hence please try >> > >iptables -A FORWARD -i eth0 -p tcp --dport 80 -s 10.0.0.3 -j ACCEPT >> > >iptables -A FORWARD -i eth4 -p tcp --sport 80 -d 10.0.0.3 -j ACCEPT >> > > >> > >iptables -A FORWARD -t mangle -p tcp --dport 80 -s 10.0.0.3 -j MARK >> > >--set-mark 0x4 iptables -t mangle -A PREROUTING/FORWARD -i eth4 -p tcp --sport 80 -d 10.0.0.3 -j MARK --set-mark 0x4 with rp_filter=1 again. I believe the reverse route stuff does not get it, because return packets are not marked. Or, I'd also suggest iptables -t mangle -A FORWARD -m conntrack --ctstate NEW -s 10.0.0.3 -p tcp --dport 80 -j CONNMARK --set-mark 4; iptables -t mangle -A FORWARD -j CONNMARK --restore-mark; (Or use nat's PREROUTING for the initial CONNMARK - many ways of doing things) Jan --