From: Pete Houston Date: Tue, 27 Jul 2004 07:52:57 +0000 Subject: Re: [LARTC] iptables marking problems and ip route not working Message-Id: <20040727075257.GA3752@sputnik.openstrike.co.uk> MIME-Version: 1 Content-Type: multipart/mixed; boundary="bp/iNruPH9dso1Pn" List-Id: References: <20040726221856.29191.qmail@web60506.mail.yahoo.com> In-Reply-To: <20040726221856.29191.qmail@web60506.mail.yahoo.com> To: lartc@vger.kernel.org --bp/iNruPH9dso1Pn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > The iptables, ip rule and ip route statements are lifted right out of the= docs: >=20 > #iptables -A PREROUTING -i eth0 -t mangle -p tcp --dport 80 -j MARK --set= -mark > 1 > #ip rule add fwmark 0x1 table www.out > #ip route add default via $ETH1_GW dev eth1 table www.out I think that the problem here is in the first line above. This should set the mark on packets inbound on eth0 with a desination port of 80, whereas you want to mark outbound on eth0 (if I read your post correctly). As a test, try just removing the "-i eth0" and see if that results in some marks being set as you intend. HTH, Pete --=20 Openstrike - improving business through open source http://www.openstrike.co.uk/ or call 07092 020107 --bp/iNruPH9dso1Pn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFBBgnYdzfnYmsKt50RAooLAJ46L/LfzerP5QzTQ1Z9nPRqWMAaOgCfQmK5 NQtyvIZN+Fq0mbJ9+ZJB99g= =s+Rz -----END PGP SIGNATURE----- --bp/iNruPH9dso1Pn-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/