SHARE
TWEET

/etc/config/mwan3

AndiTails Feb 26th, 2014 153 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. config interface 'wan'
  2.         option enabled '1'
  3.         option count '1'
  4.         option timeout '2'
  5.         option interval '5'
  6.         option reroute '0'
  7.         list track_ip '8.8.4.4'
  8.         list track_ip '8.8.8.8'
  9.         list track_ip '208.67.222.222'
  10.         list track_ip '208.67.220.220'
  11.         option reliability '1'
  12.         option down '5'
  13.         option up '2'
  14.  
  15. config interface 'vpn'
  16.         option enabled '1'
  17.         option reliability '1'
  18.         option count '1'
  19.         option interval '5'
  20.         option reroute '0'
  21.         list track_ip '8.8.4.4'
  22.         list track_ip '8.8.8.8'
  23.         list track_ip '208.67.222.222'
  24.         list track_ip '208.67.220.220'
  25.         option timeout '5'
  26.         option down '8'
  27.         option up '1'
  28.  
  29. config member 'wan1_m1_w3'
  30.         option interface 'wan'
  31.         option metric '1'
  32.         option weight '3'
  33.  
  34. config member 'wan1_m2_w3'
  35.         option interface 'wan'
  36.         option metric '2'
  37.         option weight '3'
  38.  
  39. config member 'wan2_m1_w2'
  40.         option interface 'vpn'
  41.         option metric '1'
  42.         option weight '2'
  43.  
  44. config member 'wan2_m2_w2'
  45.         option interface 'vpn'
  46.         option metric '2'
  47.         option weight '2'
  48.  
  49. config policy 'wan_only'
  50.         list use_member 'wan1_m1_w3'
  51.  
  52. config policy 'vpn_only'
  53.         list use_member 'wan2_m1_w2'
  54.  
  55. config policy 'wan_pri_vpn_sec'
  56.         list use_member 'wan1_m1_w3'
  57.         list use_member 'wan2_m2_w2'
  58.  
  59. config policy 'vpn_pri_wan_sec'
  60.         list use_member 'wan1_m2_w3'
  61.         list use_member 'wan2_m1_w2'
  62.  
  63. config rule 'rule1'
  64.         option src_ip '192.168.21.0/24'
  65.         option proto 'tcp'
  66.         option dest_port '563'
  67.         option use_policy 'vpn_only'
  68.  
  69. config rule 'rule2'
  70.         option src_ip '192.168.21.0/24'
  71.         option proto 'tcp'
  72.         option dest_port '995'
  73.         option use_policy 'wan_only'
  74.  
  75. config rule 'rule4'
  76.         option dest_ip '77.11.41.0/24'
  77.         option proto 'tcp'
  78.         option dest_port '1024:65535'
  79.         option use_policy 'wan_pri_vpn_sec'
  80.  
  81. config rule 'rule5'
  82.         option dest_ip '112.136.0.0/16'
  83.         option proto 'udp'
  84.         option dest_port '5352'
  85.         option use_policy 'vpn_pri_wan_sec'
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top