Advertisement
Guest User

Untitled

a guest
Jun 19th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.66 KB | None | 0 0
  1. ip route add ip.1.enlace.fijo/mask dev eth1 src ip.1.enlace.fijo table enlace-fijo
  2. ip route add default via ip.1.gateway.fijo dev eth1 table enlace-fijo
  3.  
  4. ip route add ip.2.enlace.pppoe/mask? dev ppp0 src ip.asignada.por.pppoe table enlace-pppoe
  5. ip route add default via ip.2.gateway.pppoe dev ppp0 table enlace-pppoe
  6.  
  7. ip rule add from ip.1.enlace.fijo table enlace-fijo
  8. ip rule add from ip.2.enlace.pppoe table enlace-pppoe
  9. ip route add default scope global nexthop via ip.1.enlace.fijo \
  10. dev eth1 weight 1 nexthop via ip.2.enlace.pppoe dev ppp0 weight 1
  11.  
  12. iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
  13. iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement