From mboxrd@z Thu Jan 1 00:00:00 1970 From: Patrick McHardy Date: Sun, 13 Jul 2003 21:43:48 +0000 Subject: Re: [LARTC] marking in OUTPUT --mangle; locally generated packets Message-Id: List-Id: References: In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: lartc@vger.kernel.org I tested your setup and it works fine (with 2.5 though). Are you sure you have CONFIG_IP_ROUTE_FWMARK enabled for your running kernel ? ip rule won't give errors if not .. Bye Patrick lartc@manchotnetworks.net wrote: >hello all, > >i have come accross a curious issue: > >+----------------------+ +---------------+ >| eth1 192.168.1.1 |------------| 192.168.1.250 | >| eth1:1 192.168.1.101 | | | >+----------------------+ +---------------+ > > >iptables --append OUTPUT --table mangle --jump MARK --set-mark 0x2 >ip rule add fwmark 0x2 table 2 >ip route add 192.168.1.0/24 dev eth1 src 192.168.1.101 table 2 >ip route flush cache > > >telnet 192.168.1.250 ; and tcpdump gives src ip address as 192.168.1.1 > > >ip rule add to 192.168.1.250 table 2 >ip route flush cache > > >telnet 192.168.1.250 ; and tcpdump gives src ip address as 192.168.1.101 > > > >are there issues concerning the marking of OUTPUT packets generated on >the local box that i should be aware of? > > >many, many thanks > >charles > > > > >_______________________________________________ >LARTC mailing list / LARTC@mailman.ds9a.nl >http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/ > > _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/