Advertisement
mar_w

mwan3-2.0.2-1 + aero2

May 20th, 2018 (edited)
301
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 2.27 KB | None | 0 0
  1. # cat /etc/config/network
  2. ...
  3. config interface 'wan'
  4.     option ifname 'eth0.2'
  5.     option proto 'dhcp'
  6.     option metric 1
  7.     option peerdns  0
  8.     option dns  '8.8.8.8 8.8.4.4'
  9. ....
  10. config interface 'wan2'
  11.     option ifname 'eth1'
  12.     option proto 'dhcp'
  13.     option metric 2
  14.     option peerdns  0
  15.     option dns  '212.2.96.51 212.2.96.52'
  16. .....
  17.  
  18.  
  19.  
  20.  
  21. # cat /etc/config/firewall
  22. ....
  23. config zone
  24.     option name     wan
  25.     list   network      'wan'
  26.     list   network      'wan6'
  27.     list   network      'wan2'
  28.     option input        REJECT
  29.     option output       ACCEPT
  30.     option forward      REJECT
  31.     option masq     1
  32.     option mtu_fix      1
  33. ...
  34.  
  35.  
  36.  
  37.  
  38. # cat /etc/config/dhcp
  39. config dnsmasq
  40.     ...
  41.     option rebind_protection 1  # disable if upstream must serve RFC1918 addresses
  42.     option rebind_localhost 1  # enable for RBL checking and similar services
  43.     list rebind_domain  aero2.net.pl  # whitelist RFC1918 responses for domains
  44. ...
  45. config dhcp wan2
  46.     option interface    wan2
  47.     option ignore   1
  48. ....
  49.  
  50.  
  51.  
  52.  
  53. # cat /etc/config/mwan3
  54.  
  55. config interface 'wan'
  56.     option enabled '1'
  57.     list track_ip '8.8.4.4'
  58.     list track_ip '8.8.8.8'
  59.     list track_ip '208.67.222.222'
  60.     list track_ip '208.67.220.220'
  61.     option reliability '1'
  62.     option count '1'
  63.     option timeout '2'
  64.     option interval '5'
  65.     option down '3'
  66.     option up '8'
  67.  
  68. config interface 'wan2'
  69.     option enabled '1'
  70.     list track_ip '192.168.10.1'
  71.     option reliability '1'
  72.     option count '1'
  73.     option timeout '2'
  74.     option interval '5'
  75.     option down '3'
  76.     option up '8'
  77.  
  78. config member 'wan_m1_w3'
  79.     option interface 'wan'
  80.     option metric '1'
  81.     option weight '3'
  82.  
  83. config member 'wan_m2_w3'
  84.     option interface 'wan'
  85.     option metric '2'
  86.     option weight '3'
  87.  
  88. config member 'wan2_m1_w2'
  89.     option interface 'wan2'
  90.     option metric '1'
  91.     option weight '2'
  92.  
  93. config member 'wan2_m2_w2'
  94.     option interface 'wan2'
  95.     option metric '2'
  96.     option weight '2'
  97.  
  98. config policy 'wan_only'
  99.     list use_member 'wan_m1_w3'
  100.  
  101. config policy 'wan2_only'
  102.     list use_member 'wan2_m1_w2'
  103.  
  104. config policy 'balanced'
  105.     list use_member 'wan_m1_w3'
  106.     list use_member 'wan2_m1_w2'
  107.  
  108. config policy 'wan_wan2'
  109.     list use_member 'wan_m1_w3'
  110.     list use_member 'wan2_m2_w2'
  111.  
  112. config policy 'wan2_wan'
  113.     list use_member 'wan_m2_w3'
  114.     list use_member 'wan2_m1_w2'
  115.  
  116.  
  117. config rule 'default_rule'
  118.     option dest_ip '0.0.0.0/0'
  119.     option use_policy 'wan_wan2'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement