Advertisement
FamiHug

gatewayswitch

Aug 2nd, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.06 KB | None | 0 0
  1. {'33': 'wan9', '32': 'wan5', '31': 'wan5'}
  2. *************** wan5 False ***************
  3. {'wan1': False, 'wan3': False, 'wan5': False, 'wan9': True}
  4. 33 ['wan9', 'wan3', 'wan5']
  5. 32 ['wan3', 'wan1', 'wan5', 'wan9']
  6. ip ru del from 192.168.25.51 to 55 pref 32
  7. ip ru add from 192.168.25.51 to 59 pref 32
  8. 31 ['wan3', 'wan1', 'wan5']
  9. *************** wan5 True ***************
  10. {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': True}
  11. 33 ['wan9', 'wan3', 'wan5']
  12. 32 ['wan3', 'wan1', 'wan5', 'wan9']
  13. ip ru del from 192.168.25.51 to 59 pref 32
  14. ip ru add from 192.168.25.51 to 55 pref 32
  15. 31 ['wan3', 'wan1', 'wan5']
  16. ip ru del from 192.168.25.50 to 222.255.27.1 to 55 pref 31
  17. ip ru add from 192.168.25.50 to 222.255.27.1 to 55 pref 31
  18. *************** wan3 True ***************
  19. {'wan1': False, 'wan3': True, 'wan5': True, 'wan9': True}
  20. 33 ['wan9', 'wan3', 'wan5']
  21. 32 ['wan3', 'wan1', 'wan5', 'wan9']
  22. ip ru del from 192.168.25.51 to 55 pref 32
  23. ip ru add from 192.168.25.51 to 53 pref 32
  24. 31 ['wan3', 'wan1', 'wan5']
  25. ip ru del from 192.168.25.50 to 222.255.27.1 to 55 pref 31
  26. ip ru add from 192.168.25.50 to 222.255.27.1 to 53 pref 31
  27. *************** wan3 False ***************
  28. {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': True}
  29. 33 ['wan9', 'wan3', 'wan5']
  30. 32 ['wan3', 'wan1', 'wan5', 'wan9']
  31. ip ru del from 192.168.25.51 to 53 pref 32
  32. ip ru add from 192.168.25.51 to 55 pref 32
  33. 31 ['wan3', 'wan1', 'wan5']
  34. ip ru del from 192.168.25.50 to 222.255.27.1 to 53 pref 31
  35. ip ru add from 192.168.25.50 to 222.255.27.1 to 55 pref 31
  36. *************** wan9 False ***************
  37. {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': False}
  38. 33 ['wan9', 'wan3', 'wan5']
  39. wan9 iptables -t nat -D DNAT_PATH -i eth9 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
  40. wan5 iptables -t nat -A DNAT_PATH -i eth5 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
  41. 32 ['wan3', 'wan1', 'wan5', 'wan9']
  42. *************** wan9 True ***************
  43. {'wan1': False, 'wan3': False, 'wan5': True, 'wan9': True}
  44. 33 ['wan9', 'wan3', 'wan5']
  45. wan5 iptables -t nat -D DNAT_PATH -i eth5 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
  46. wan9 iptables -t nat -A DNAT_PATH -i eth9 -p tcp -m tcp --dport 2299 -j DNAT --to 192.168.30.100:22
  47. 32 ['wan3', 'wan1', 'wan5', 'wan9']
  48. LAST UP
  49. {'31': 'wan5', '32': 'wan5', '33': 'wan9'}
  50. wan1 DIE
  51. ip ro replace table 90 nexthop via 192.168.25.47 dev eth0 weight 2
  52. nexthop via 192.168.25.47 dev eth3 weight 6
  53. nexthop via 192.168.25.47 dev eth7 weight 5
  54. nexthop via 192.168.25.47 dev eth9 weight 1
  55.  
  56. ip ro replace table 92 nexthop via 192.168.25.47 dev eth0 weight 2
  57. nexthop via 192.168.25.47 dev eth3 weight 6
  58.  
  59. ip ro replace table 91 nexthop via 192.168.25.47 dev eth3 weight 3
  60. nexthop via 192.168.25.47 dev eth9 weight 3
  61.  
  62. ip ro replace table 93 nexthop via 192.168.25.47 dev eth9 weight 1
  63. nexthop via 192.168.25.47 dev eth7 weight 5
  64.  
  65. ip ro replace table 100 nexthop via 192.168.25.47 dev eth0 weight 2
  66. nexthop via 192.168.25.47 dev eth3 weight 2
  67. nexthop via 192.168.25.47 dev eth7 weight 3
  68. nexthop via 192.168.25.47 dev eth9 weight 1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement