From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric Leblond Date: Fri, 04 Jul 2003 04:56:33 +0000 Subject: Re: [LARTC] Routing SMTP traffic MIME-Version: 1 Content-Type: multipart/mixed; boundary="=-1xXIFP97mJ3CQWFUmewl" Message-Id: List-Id: References: In-Reply-To: To: lartc@vger.kernel.org --=-1xXIFP97mJ3CQWFUmewl Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable Le ven 04/07/2003 =E0 05:15, Dorneles Trem=E9a a =E9crit : > Hi guys, >=20 > I have a mail server running qmail with two network > interfaces. All packages comes from the first one and > I want to mark outgoing packages to route them using > the second interface (ADSL). >=20 > have TCP DST PORT 25 with 1 > iptables -A PREROUTING -t mangle -p tcp --dport 25 -j MARK --set-mark 1 you mark packet going to port 25 and you want to refirect packet coming from port 25 (response packet). You don't have any connection tracking with mark. If you want some you've got to use CONNMARK. By the way : will your ADSL ISP accept to route the packet coming from an other IP ? BR, --=20 Eric Leblond --=-1xXIFP97mJ3CQWFUmewl Content-Type: application/pgp-signature; name=signature.asc Content-Description: Ceci est une partie de message =?ISO-8859-1?Q?num=E9riquement?= =?ISO-8859-1?Q?_sign=E9e?= -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (GNU/Linux) iD8DBQA/BQkBnxA7CdMWjzIRAicbAKCOnAcwXrltPhpJ61aB63pRd2XpfgCdEEwe H4N5Y+6qaSVw6KBUbBtcbxc= =EwmI -----END PGP SIGNATURE----- --=-1xXIFP97mJ3CQWFUmewl-- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/