Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ip route add ip.1.enlace.fijo/mask dev eth1 src ip.1.enlace.fijo table enlace-fijo
- ip route add default via ip.1.gateway.fijo dev eth1 table enlace-fijo
- ip route add ip.2.enlace.pppoe/mask? dev ppp0 src ip.asignada.por.pppoe table enlace-pppoe
- ip route add default via ip.2.gateway.pppoe dev ppp0 table enlace-pppoe
- ip rule add from ip.1.enlace.fijo table enlace-fijo
- ip rule add from ip.2.enlace.pppoe table enlace-pppoe
- ip route add default scope global nexthop via ip.1.enlace.fijo \
- dev eth1 weight 1 nexthop via ip.2.enlace.pppoe dev ppp0 weight 1
- iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
- iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement