Skip to content

Instantly share code, notes, and snippets.

@lewisdiamond
Created May 30, 2017 14:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save lewisdiamond/f9880f6d4667f50411105950106f6ce5 to your computer and use it in GitHub Desktop.
Save lewisdiamond/f9880f6d4667f50411105950106f6ce5 to your computer and use it in GitHub Desktop.
Software versions :
OpenWrt - LEDE Reboot SNAPSHOT r4235-61eb18d3f7
LuCI - git-17.062.72323-0d555e5
mwan3 - 2.0-3
mwan3-luci - 1.4-5
Output of "cat /etc/config/mwan3" :
config interface 'wan'
option enabled '1'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'
config interface 'wan2'
option enabled '1'
list track_ip '8.8.8.8'
list track_ip '208.67.220.220'
option reliability '1'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'
config member 'wan_m1_w3'
option interface 'wan'
option metric '1'
option weight '3'
config member 'wan_m2_w3'
option interface 'wan'
option metric '2'
option weight '3'
config member 'wan2_m1_w2'
option interface 'wan2'
option metric '1'
option weight '2'
config member 'wan2_m2_w2'
option interface 'wan2'
option metric '2'
option weight '2'
config policy 'wan_only'
list use_member 'wan_m1_w3'
config policy 'wan2_only'
list use_member 'wan2_m1_w2'
config policy 'balanced'
list use_member 'wan_m1_w3'
list use_member 'wan2_m1_w2'
config policy 'wan_wan2'
list use_member 'wan_m1_w3'
list use_member 'wan2_m2_w2'
config policy 'wan2_wan'
list use_member 'wan_m2_w3'
list use_member 'wan2_m1_w2'
config rule 'https'
option sticky '1'
option dest_port '443'
option proto 'tcp'
option use_policy 'balanced'
config rule 'default_rule'
option dest_ip '0.0.0.0/0'
option use_policy 'balanced'
Output of "cat /etc/config/network" :
config interface 'loopback'
option ifname 'lo'
option proto 'static'
option ipaddr '127.0.0.1'
option netmask '255.0.0.0'
config globals 'globals'
option ula_prefix 'fd10:61fb:0522::/48'
config interface 'lan'
option type 'bridge'
option ifname 'eth1'
option proto 'static'
option ipaddr '192.168.11.1'
option netmask '255.255.255.0'
option ip6assign '60'
config interface 'bell_router'
option _orig_ifname 'eth0'
option _orig_bridge 'false'
option proto 'dhcp'
option ipv6 '1'
option peerdns '0'
option ifname 'eth0'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0 1 2 3 6'
option vid '1'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '4 5'
option vid '2'
config interface 'diamond'
option type 'bridge'
option proto 'static'
option ifname 'diamond_ac'
option ipaddr '192.168.150.1'
option netmask '255.255.255.0'
config interface 'wan'
option proto 'pppoe'
option ifname 'eth0'
USERNAME HIDDEN
PASSWORD HIDDEN
option ipv6 'auto'
option metric '1'
config interface 'wan2'
option proto 'pppoe'
option ifname 'eth0'
USERNAME HIDDEN
PASSWORD HIDDEN
option ipv6 'auto'
option metric '2'
Output of "cat /etc/config/wireless" :
config wifi-device 'radio0'
option type 'mac80211'
option channel '36'
option hwmode '11a'
option path 'soc/soc:pcie-controller/pci0000:00/0000:00:01.0/0000:01:00.0'
option htmode 'VHT80'
option txpower '23'
option country 'CA'
config wifi-iface 'default_radio0'
option device 'radio0'
option network 'lan'
option mode 'ap'
option ifname 'ldiamond_ac'
option encryption 'psk2'
KEY HIDDEN
option ssid 'ldiamond'
config wifi-device 'radio1'
option type 'mac80211'
option hwmode '11g'
option path 'soc/soc:pcie-controller/pci0000:00/0000:00:02.0/0000:02:00.0'
option txpower '30'
option country 'CA'
option channel 'auto'
option htmode 'HT40'
config wifi-device 'radio2'
option type 'mac80211'
option hwmode '11a'
option path 'platform/soc/soc:internal-regs/f10d8000.sdhci/mmc_host/mmc0/mmc0:0001/mmc0:0001:1'
option htmode 'VHT80'
option channel 'auto'
option country 'CA'
config wifi-iface
option device 'radio1'
option mode 'ap'
option network 'lan'
option encryption 'psk2'
KEY HIDDEN
option ifname 'ldiamond_n'
option ssid 'ldiamond_gn'
Output of "ifconfig" :
br-lan Link encap:Ethernet HWaddr 60:38:E0:B8:AA:A8
inet addr:192.168.11.1 Bcast:192.168.11.255 Mask:255.255.255.0
inet6 addr: fd10:61fb:522::1/60 Scope:Global
inet6 addr: fe80::6238:e0ff:feb8:aaa8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4869 errors:0 dropped:0 overruns:0 frame:0
TX packets:5356 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:786271 (767.8 KiB) TX bytes:5547815 (5.2 MiB)
eth0 Link encap:Ethernet HWaddr 62:38:E0:B8:AA:A8
inet addr:192.168.2.16 Bcast:192.168.2.255 Mask:255.255.255.0
inet6 addr: fe80::6038:e0ff:feb8:aaa8/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:5928 errors:0 dropped:0 overruns:0 frame:0
TX packets:4997 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:5463327 (5.2 MiB) TX bytes:824973 (805.6 KiB)
Interrupt:36
eth1 Link encap:Ethernet HWaddr 60:38:E0:B8:AA:A8
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:4936 errors:0 dropped:0 overruns:0 frame:0
TX packets:5356 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:532
RX bytes:858859 (838.7 KiB) TX bytes:5547815 (5.2 MiB)
Interrupt:35
ldiamond_ac Link encap:Ethernet HWaddr 60:38:E0:B8:AA:AA
inet6 addr: fe80::6238:e0ff:feb8:aaaa/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:74 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:12309 (12.0 KiB)
ldiamond_n Link encap:Ethernet HWaddr 60:38:E0:B8:AA:A9
inet6 addr: fe80::6238:e0ff:feb8:aaa9/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:65 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:11005 (10.7 KiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:112 errors:0 dropped:0 overruns:0 frame:0
TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1
RX bytes:7874 (7.6 KiB) TX bytes:7874 (7.6 KiB)
pppoe-wan Link encap:Point-to-Point Protocol
inet addr:76.66.xxx.xxx P-t-P:10.11.17.201 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:16 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1552 (1.5 KiB) TX bytes:194 (194.0 B)
pppoe-wan2 Link encap:Point-to-Point Protocol
inet addr:76.68.yyy.yyy P-t-P:10.11.17.201 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1492 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:13 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:218 (218.0 B) TX bytes:194 (194.0 B)
Output of "route -n" :
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.2.1 0.0.0.0 UG 0 0 0 eth0
0.0.0.0 10.11.17.201 0.0.0.0 UG 1 0 0 pppoe-wan
0.0.0.0 10.11.17.201 0.0.0.0 UG 2 0 0 pppoe-wan2
10.11.17.201 0.0.0.0 255.255.255.255 UH 0 0 0 pppoe-wan
10.11.17.201 0.0.0.0 255.255.255.255 UH 0 0 0 pppoe-wan2
192.168.2.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.2.1 0.0.0.0 255.255.255.255 UH 0 0 0 eth0
192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan
Output of "ip rule show" :
No data found
Output of "ip route list table 1-250" :
No data found
Firewall default output policy (must be ACCEPT) :
ACCEPT
Output of "iptables -L -t mangle -v -n" :
Chain PREROUTING (policy ACCEPT 7701 packets, 4338K bytes)
pkts bytes target prot opt in out source destination
Chain INPUT (policy ACCEPT 777 packets, 69119 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 6916 packets, 4268K bytes)
pkts bytes target prot opt in out source destination
0 0 TCPMSS tcp -- * pppoe-wan 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: wan (mtu_fix) */ TCPMSS clamp to PMTU
110 6600 TCPMSS tcp -- * eth0 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: bell_router (mtu_fix) */ TCPMSS clamp to PMTU
0 0 TCPMSS tcp -- * pppoe-wan2 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: wan2 (mtu_fix) */ TCPMSS clamp to PMTU
Chain OUTPUT (policy ACCEPT 764 packets, 171K bytes)
pkts bytes target prot opt in out source destination
Chain POSTROUTING (policy ACCEPT 7670 packets, 4439K bytes)
pkts bytes target prot opt in out source destination
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment