formatting

This commit is contained in:
Kolan Sh 2022-04-19 00:31:49 +03:00
parent 00640d0f3e
commit 4729e5e4f7
1 changed files with 5 additions and 4 deletions

View File

@ -66,11 +66,12 @@ route del default gw $P2 $IF2 2>/dev/null
route del default gw $P2 $IF2 2>/dev/null route del default gw $P2 $IF2 2>/dev/null
ip route del default via $P1 dev $IF1 2>/dev/null ip route del default via $P1 dev $IF1 2>/dev/null
ip route del default via $P2 dev $IF2 2>/dev/null ip route del default via $P2 dev $IF2 2>/dev/null
#route add default gw $P1 $IF1 #route add default gw $P1 metric 100 $IF1
#route add default gw $P2 $IF2 #route add default gw $P2 metric 100 $IF2
ip route add default scope global nexthop via $P1 dev $IF1 weight 1 \ ip route add default scope global \
nexthop via $P2 dev $IF2 weight 1 nexthop via $P1 dev $IF1 weight 1 \
nexthop via $P2 dev $IF2 weight 1
iptables -t nat -A POSTROUTING -o $IF1 -j MASQUERADE iptables -t nat -A POSTROUTING -o $IF1 -j MASQUERADE
iptables -t nat -A POSTROUTING -o $IF2 -j MASQUERADE iptables -t nat -A POSTROUTING -o $IF2 -j MASQUERADE