Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {'33': 'wan9', '32': 'wan5', '31': 'wan5'}
- *************** wan5 False ***************
- {'wan1': False, 'wan3': False, 'wan5': False, 'wan9': True}
- 33 ['wan9', 'wan3', 'wan5']
- 32 ['wan3', 'wan1', 'wan5', 'wan9']
- ip ru del from 192.168.25.51 to 55 pref 32
- ip ru add from 192.168.25.51 to 59 pref 32
- 31 ['wan3', 'wan1', 'wan5']
- *************** wan5 True ***************
- {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': True}
- 33 ['wan9', 'wan3', 'wan5']
- 32 ['wan3', 'wan1', 'wan5', 'wan9']
- ip ru del from 192.168.25.51 to 59 pref 32
- ip ru add from 192.168.25.51 to 55 pref 32
- 31 ['wan3', 'wan1', 'wan5']
- ip ru del from 192.168.25.50 to 222.255.27.1 to 55 pref 31
- ip ru add from 192.168.25.50 to 222.255.27.1 to 55 pref 31
- *************** wan3 True ***************
- {'wan1': False, 'wan3': True, 'wan5': True, 'wan9': True}
- 33 ['wan9', 'wan3', 'wan5']
- 32 ['wan3', 'wan1', 'wan5', 'wan9']
- ip ru del from 192.168.25.51 to 55 pref 32
- ip ru add from 192.168.25.51 to 53 pref 32
- 31 ['wan3', 'wan1', 'wan5']
- ip ru del from 192.168.25.50 to 222.255.27.1 to 55 pref 31
- ip ru add from 192.168.25.50 to 222.255.27.1 to 53 pref 31
- *************** wan3 False ***************
- {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': True}
- 33 ['wan9', 'wan3', 'wan5']
- 32 ['wan3', 'wan1', 'wan5', 'wan9']
- ip ru del from 192.168.25.51 to 53 pref 32
- ip ru add from 192.168.25.51 to 55 pref 32
- 31 ['wan3', 'wan1', 'wan5']
- ip ru del from 192.168.25.50 to 222.255.27.1 to 53 pref 31
- ip ru add from 192.168.25.50 to 222.255.27.1 to 55 pref 31
- *************** wan9 False ***************
- {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': False}
- 33 ['wan9', 'wan3', 'wan5']
- wan9 iptables -t nat -D DNAT_PATH -i eth9 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
- wan5 iptables -t nat -A DNAT_PATH -i eth5 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
- 32 ['wan3', 'wan1', 'wan5', 'wan9']
- *************** wan9 True ***************
- {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': True}
- 33 ['wan9', 'wan3', 'wan5']
- wan5 iptables -t nat -D DNAT_PATH -i eth5 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
- wan9 iptables -t nat -A DNAT_PATH -i eth9 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
- 32 ['wan3', 'wan1', 'wan5', 'wan9']
- LAST UP
- {'31': 'wan5', '32': 'wan5', '33': 'wan9'}
- wan1 DIE
- ip ro replace table 90 nexthop via 192.168.25.47 dev eth0 weight 2
- nexthop via 192.168.25.47 dev eth3 weight 6
- nexthop via 192.168.25.47 dev eth7 weight 5
- nexthop via 192.168.25.47 dev eth9 weight 1
- ip ro replace table 92 nexthop via 192.168.25.47 dev eth0 weight 2
- nexthop via 192.168.25.47 dev eth3 weight 6
- ip ro replace table 91 nexthop via 192.168.25.47 dev eth3 weight 3
- nexthop via 192.168.25.47 dev eth9 weight 3
- ip ro replace table 93 nexthop via 192.168.25.47 dev eth9 weight 1
- nexthop via 192.168.25.47 dev eth7 weight 5
- ip ro replace table 100 nexthop via 192.168.25.47 dev eth0 weight 2
- nexthop via 192.168.25.47 dev eth3 weight 2
- nexthop via 192.168.25.47 dev eth7 weight 3
- nexthop via 192.168.25.47 dev eth9 weight 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement