From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexey Talikov Date: Fri, 31 May 2002 11:44:33 +0000 Subject: Re: [LARTC] Wierd Policy Routing Behaviour 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 IP: advanced router (CONFIG_IP_ADVANCED_ROUTER) [Y/n/?] IP: policy routing (CONFIG_IP_MULTIPLE_TABLES) [Y/n/?] IP: use netfilter MARK value as routing key (CONFIG_IP_ROUTE_FWMARK) [Y/n/?] iptables -t mangle -A PREROUTING -p tcp --dport 25 -j MARK --set-mark 1 echo 201 mail.out >> /etc/iproute2/rt_tables ip rule add fwmark 1 table mail.out ip route add default via $IP dev $DEV table mail.out for more detail see Advanced-Routing HOWTO Chapter 11 31.05.2002 16:24:35, Sellaro wrote: >On Fri, 2002-05-31 at 00:57, Alexey Talikov wrote: > >> Without iproute >> iptables -t nat -A POSTROUTING -s $SMTP -p tcp --sport 1024: --dport 25 -j SNAT --to-source $IP_B > >Source NAT is not what I want to do. I really want to send SMTP packets >through a different route. > >-- >Sellaro > >Agente Livre - Linux Community (www.agentelivre.org) > >PGP Key ID: 3ADF8645 >PGP Key Fingerprint: 6AB0 D60B 69B5 B3F9 4553 2242 A1D0 17C0 3ADF 8645 > ----------------------------------- mailto:alexey_talikov@texlab.com.uz BR Alexey Talikov FORTEK ----------------------------------- _______________________________________________ LARTC mailing list / LARTC@mailman.ds9a.nl http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://lartc.org/