[MASOCH-L] Redirecionamento de interfaces

Eduardo Schoedler listas at esds.com.br
Wed May 7 14:41:26 BRT 2014


Em 7 de maio de 2014 09:25, davi peres <daviperes at gmail.com> escreveu:

> Da para fazer isso sim Leandro.
>
> echo "33 PRINCIPAL" >> /etc/iproute2/rt_tables
> ip rule add from all fwmark 1 table PRINCIPAL
> iptables -t mangle -I PREROUTING -p tcp --sport 25 -j MARK --set-mark 33
> ip route add via 177.220.129.41 dev eth1 table PRINCIPAL


PBR [1], funciona muito bem.

Dá para fazer sem precisar regra de iptables.

Referência:
[1] http://tldp.org/HOWTO/Adv-Routing-HOWTO/lartc.rpdb.simple.html

Abs,

-- 
Eduardo Schoedler


More information about the masoch-l mailing list