Unfortunately the extra iptables command didnt seem to help.
Here are some more strange behaviours:
When WAN2 is down and WAN is up, when I try to access the internet the page just hangs. I do not get a splash screen nor does the page load. When I try to access local admin pages on router, I get the nsd splash sceen. If I stop nsd, I can access the interent OK.
I then put WAN2 online: when WAN2 and WAN both up, I can access the internet without authenticating with nsd. When I try to access the router itself, I get the splash screen.
If I then shut down WAN2, nsd (via /usr/bin/ndsctl status) shows the client as authenticated, however when I try to access a local device, I get prompted with the splash screen again, even though I have already authenticated when both WAN2 and WAN were both online.
Here is the info from the router, with WAN and WAN2 both online, both nsd and mwan3 and the iptables command you requested. The guest device also was authenticated at this time.
default via 10.64.64.64 dev 3g-wan2 proto static metric 10
default via 10.10.20.1 dev eth0 proto static metric 20
10.10.10.0/24 dev br-lan proto kernel scope link src 10.10.10.1
10.10.20.0/24 dev eth0 proto static scope link metric 20
10.10.30.0/24 dev wlan0-1 proto kernel scope link src 10.10.30.1
10.64.64.64 dev 3g-wan2 proto kernel scope link src 10.136.25.75
0: from all lookup local
1001: from all iif eth0 lookup main
1002: from all iif 3g-wan2 lookup main
2001: from all fwmark 0x100/0xff00 lookup 1
2002: from all fwmark 0x200/0xff00 lookup 2
2253: from all fwmark 0xfd00/0xff00 blackhole
2254: from all fwmark 0xfe00/0xff00 unreachable
32766: from all lookup main
32767: from all lookup default
Chain PREROUTING (policy ACCEPT 386 packets, 63307 bytes)
pkts bytes target prot opt in out source destination
472 67784 ndsOUT all -- wlan0-1 * 0.0.0.0/0 0.0.0.0/0
472 67784 ndsBLK all -- wlan0-1 * 0.0.0.0/0 0.0.0.0/0
472 67784 ndsTRU all -- wlan0-1 * 0.0.0.0/0 0.0.0.0/0
7988 1742K mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0
6760 1566K fwmark all -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 102 packets, 9646 bytes)
pkts bytes target prot opt in out source destination
Chain FORWARD (policy ACCEPT 284 packets, 53661 bytes)
pkts bytes target prot opt in out source destination
5701 1453K mssfix all -- * * 0.0.0.0/0 0.0.0.0/0
1342 471K mwan3_connected all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 101 packets, 13371 bytes)
pkts bytes target prot opt in out source destination
1173 305K mwan3_hook all -- * * 0.0.0.0/0 0.0.0.0/0
1173 305K mwan3_output_hook all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 379 packets, 66376 bytes)
pkts bytes target prot opt in out source destination
375 330K ndsINC all -- * wlan0-1 0.0.0.0/0 0.0.0.0/0
Chain fwmark (1 references)
pkts bytes target prot opt in out source destination
Chain mssfix (1 references)
pkts bytes target prot opt in out source destination
258 13812 TCPMSS tcp -- * eth0 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
53 3284 TCPMSS tcp -- * 3g-wan2 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* wan (mtu_fix) */ TCPMSS clamp to PMTU
Chain mwan3_connected (3 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 127.0.0.0/8 MARK or 0xff00
27 4717 MARK all -- * * 0.0.0.0/0 224.0.0.0/3 MARK or 0xff00
354 75456 MARK all -- * * 0.0.0.0/0 10.10.10.0/24 MARK or 0xff00
761 66039 MARK all -- * * 0.0.0.0/0 10.10.20.0/24 MARK or 0xff00
316 306K MARK all -- * * 0.0.0.0/0 10.10.30.0/24 MARK or 0xff00
0 0 MARK all -- * * 0.0.0.0/0 10.64.64.64 MARK or 0xff00
Chain mwan3_hook (2 references)
pkts bytes target prot opt in out source destination
9161 2047K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore mask 0xff00
827 68731 mwan3_ifaces all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
807 67554 mwan3_connected all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
423 42134 mwan3_rules all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
9161 2047K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0xff00
3536 1038K mwan3_connected all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0xff00/0xff00
Chain mwan3_iface_wan (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- eth0 * 10.10.20.0/24 0.0.0.0/0 mark match 0x0/0xff00 /* default */ MARK or 0xff00
14 943 MARK all -- eth0 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan */ MARK xset 0x100/0xff00
Chain mwan3_iface_wan2 (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- 3g-wan2 * 10.64.64.64 0.0.0.0/0 mark match 0x0/0xff00 /* default */ MARK or 0xff00
6 234 MARK all -- 3g-wan2 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 */ MARK xset 0x200/0xff00
Chain mwan3_ifaces (1 references)
pkts bytes target prot opt in out source destination
824 68619 mwan3_iface_wan all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
571 43386 mwan3_iface_wan2 all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
Chain mwan3_output_hook (1 references)
pkts bytes target prot opt in out source destination
Chain mwan3_policy_wan2_only (0 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 10 10 */ MARK xset 0x200/0xff00
Chain mwan3_policy_wan2_wan (1 references)
pkts bytes target prot opt in out source destination
216 20372 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 10 10 */ MARK xset 0x200/0xff00
Chain mwan3_policy_wan_only (0 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan 10 10 */ MARK xset 0x100/0xff00
Chain mwan3_policy_wan_wan2 (0 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan 10 10 */ MARK xset 0x100/0xff00
Chain mwan3_rules (1 references)
pkts bytes target prot opt in out source destination
216 20372 mwan3_policy_wan2_wan all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* default_rule */
Chain ndsBLK (1 references)
pkts bytes target prot opt in out source destination
Chain ndsINC (1 references)
pkts bytes target prot opt in out source destination
6 656 MARK all -- * * 0.0.0.0/0 10.10.30.122 MARK or 0xa400
322 312K MARK all -- * * 0.0.0.0/0 10.10.30.122 MARK or 0xa400
6 656 ACCEPT all -- * * 0.0.0.0/0 10.10.30.122
Chain ndsOUT (1 references)
pkts bytes target prot opt in out source destination
8 3000 MARK all -- * * 10.10.30.122 0.0.0.0/0 MAC 54:E4:3A:9B:C5:A0 MARK or 0xa400
Chain ndsTRU (1 references)
pkts bytes target prot opt in out source destination
Chain qos_Default (0 references)
pkts bytes target prot opt in out source destination
0 0 CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore mask 0xf
0 0 qos_Default_ct all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x1/0xf length 400:65535 MARK and 0xffffff00
0 0 MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x2/0xf length 800:65535 MARK and 0xffffff00
0 0 MARK udp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf0 length 0:500 MARK xset 0x22/0xff
0 0 MARK icmp -- * * 0.0.0.0/0 0.0.0.0/0 MARK xset 0x11/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf0 tcp spts:1024:65535 dpts:1024:65535 MARK xset 0x44/0xff
0 0 MARK udp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf0 udp spts:1024:65535 dpts:1024:65535 MARK xset 0x44/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 length 0:128 mark match ! 0x4/0xf tcp flags:0x3F/0x02 MARK xset 0x11/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 length 0:128 mark match ! 0x4/0xf tcp flags:0x3F/0x10 MARK xset 0x11/0xff
0 0 CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0xf0
Chain qos_Default_ct (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf tcp multiport ports 22,53 MARK xset 0x11/0xff
0 0 MARK udp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf udp multiport ports 22,53 MARK xset 0x11/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf tcp multiport ports 20,21,25,80,110,443,993,995 MARK xset 0x33/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf tcp multiport ports 5190 MARK xset 0x22/0xff
0 0 MARK udp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf udp multiport ports 5190 MARK xset 0x22/0xff
0 0 CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf tcp multiport ports 22,53 MARK xset 0x11/0xff
0 0 MARK udp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf udp multiport ports 22,53 MARK xset 0x11/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf tcp multiport ports 20,21,25,80,110,443,993,995 MARK xset 0x33/0xff
0 0 MARK tcp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf tcp multiport ports 5190 MARK xset 0x22/0xff
0 0 MARK udp -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xf udp multiport ports 5190 MARK xset 0x22/0xff
(Last edited by JohnV on 14 Nov 2014, 04:12)