This is fixed but not deleted!
Hi all!!
At first let me say, this is the best extension idea i have seen over the years for openwrt!
This way i can have multiple vpn connections and fallback / loadballance them! Great!
I have a problem setting it up right and need a little push in the right direction.
When i set the default policy to e1_only, which is a pptp Connection, i cant ping anything:
root@Openwrt:~# ping -c3 -w 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss
root@Openwrt:~# ping -c3 -w 3 8.8.8.8 -I eth0.2 #Cableconnection
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=29.975 ms
64 bytes from 8.8.8.8: seq=1 ttl=49 time=26.910 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=27.646 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 26.910/28.177/29.975 ms
root@Openwrt:~# ping -c3 -w 3 8.8.8.8 -I pptp-e1 #pptp Vpn
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=96.570 ms
64 bytes from 8.8.8.8: seq=1 ttl=49 time=92.487 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=93.068 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 92.487/94.041/96.570 ms
This is what my Debug shows:
cant find anything wrong here!! But i am fairly sure you will 
MWAN3 Multi-WAN troubleshooting
Firewall default output policy (must be ACCEPT) :
ACCEPT
Output of "ip route show" :
default via 77.64.166.1 dev eth0.2 proto static metric 5
default via 172.16.36.1 dev pptp-e1 proto static metric 10
77.64.166.0/24 dev eth0.2 proto static scope link metric 5
93.115.84.194 via 77.64.166.1 dev eth0.2 proto static metric 5
172.16.36.1 dev pptp-e1 proto kernel scope link src 172.16.36.103
192.168.1.0/24 via 192.168.3.2 dev br-lan proto static
192.168.2.0/24 via 192.168.3.2 dev br-lan proto static
192.168.3.0/24 dev br-lan proto kernel scope link src 192.168.3.1
Output of "ip rule show" :
0: from all lookup local
1001: from all fwmark 0x100/0xff00 lookup 1001
1002: from all fwmark 0x200/0xff00 lookup 1002
1016: from all fwmark 0x1000/0xff00 lookup 1016
1017: from all fwmark 0x1100/0xff00 lookup 1017
32766: from all lookup main
32767: from all lookup default
Output of "ip route list table 1001-1027" :
1001
default via 77.64.166.1 dev eth0.2
1002
default via 172.16.36.1 dev pptp-e1
1016
default via 172.16.36.1 dev pptp-e1 metric 1
default via 172.16.36.1 dev pptp-e1 metric 2
1017
default via 77.64.166.1 dev eth0.2 metric 1
Output of "iptables -L -t mangle -v -n | awk '/mwan3/' RS=" :
Chain PREROUTING (policy ACCEPT 11113 packets, 847K bytes)
pkts bytes target prot opt in out source destination
11137 850K mwan3_pre all -- * * 0.0.0.0/0 0.0.0.0/0
11113 847K fwmark all -- * * 0.0.0.0/0 0.0.0.0/0
Chain INPUT (policy ACCEPT 4014 packets, 421K bytes)
pkts bytes target prot opt in out source destination
4030 423K mwan3_post all -- * * 0.0.0.0/0 0.0.0.0/0
Chain OUTPUT (policy ACCEPT 11790 packets, 1109K bytes)
pkts bytes target prot opt in out source destination
11821 1111K mwan3_pre all -- * * 0.0.0.0/0 0.0.0.0/0
Chain POSTROUTING (policy ACCEPT 11823 packets, 1111K bytes)
pkts bytes target prot opt in out source destination
11850 1113K mwan3_post all -- * * 0.0.0.0/0 0.0.0.0/0
Chain mwan3_default (1 references)
pkts bytes target prot opt in out source destination
0 0 MARK all -- * * 0.0.0.0/0 224.0.0.0/3 mark match ! 0x8000/0x8000 MARK or 0x8000
0 0 MARK all -- * * 0.0.0.0/0 77.64.166.0/24 mark match ! 0x8000/0x8000 MARK or 0x8000
0 0 MARK all -- * * 0.0.0.0/0 172.16.36.1 mark match ! 0x8000/0x8000 MARK or 0x8000
9478 731K MARK all -- * * 0.0.0.0/0 192.168.3.0/24 mark match ! 0x8000/0x8000 MARK or 0x8000
Chain mwan3_post (2 references)
pkts bytes target prot opt in out source destination
717 57612 MARK all -- * pptp-e1 0.0.0.0/0 0.0.0.0/0 mark match ! 0x8000/0x8000 MARK xset 0x200/0xff00
2833 546K MARK all -- * eth0.2 0.0.0.0/0 0.0.0.0/0 mark match ! 0x8000/0x8000 MARK xset 0x100/0xff00
12305 930K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x8000/0x8000 MARK and 0xffff7fff
15880 1536K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0xff00
Chain mwan3_pre (2 references)
pkts bytes target prot opt in out source destination
22958 1961K CONNMARK all -- * * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore mask 0xff00
132 11754 MARK all -- pptp-e1 * 0.0.0.0/0 0.0.0.0/0 MARK xset 0x8200/0xff00
2692 187K MARK all -- eth0.2 * 0.0.0.0/0 0.0.0.0/0 MARK xset 0x8100/0xff00
20134 1762K mwan3_default all -- * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0x8000/0x8000
7602 468K mwan3_rules all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00
Chain mwan3_rules (1 references)
pkts bytes target prot opt in out source destination
7570 465K MARK all -- * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 MARK xset 0x1000/0xff00
Output of "ifconfig" :
br-lan Link encap:Ethernet HWaddr A0:F3:C1:FA:C6:2B
inet addr:192.168.3.1 Bcast:192.168.3.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13711 errors:0 dropped:20 overruns:0 frame:0
TX packets:13551 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:837826 (818.1 KiB) TX bytes:751330 (733.7 KiB)
eth0 Link encap:Ethernet HWaddr 00:04:9F:EF:01:01
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:20166 errors:0 dropped:0 overruns:0 frame:0
TX packets:20584 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:2084596 (1.9 MiB) TX bytes:2656232 (2.5 MiB)
Base address:0x4000
eth0.1 Link encap:Ethernet HWaddr 00:04:9F:EF:01:01
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:13580 errors:0 dropped:0 overruns:0 frame:0
TX packets:13558 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:822535 (803.2 KiB) TX bytes:753210 (735.5 KiB)
eth0.2 Link encap:Ethernet HWaddr A0:F3:C1:FA:C6:2E
inet addr:77.64.166.181 Bcast:77.64.166.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:6559 errors:0 dropped:0 overruns:0 frame:0
TX packets:7026 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:655965 (640.5 KiB) TX bytes:1820686 (1.7 MiB)
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6101 errors:0 dropped:0 overruns:0 frame:0
TX packets:6101 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1232923 (1.1 MiB) TX bytes:1232923 (1.1 MiB)
pptp-e1 Link encap:Point-to-Point Protocol
inet addr:172.16.36.103 P-t-P:172.16.36.1 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
RX packets:253 errors:0 dropped:0 overruns:0 frame:0
TX packets:1438 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:21542 (21.0 KiB) TX bytes:108184 (105.6 KiB)
wlan0 Link encap:Ethernet HWaddr A0:F3:C1:FA:C6:2D
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:14 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:0 (0.0 B) TX bytes:1688 (1.6 KiB)
wlan1 Link encap:Ethernet HWaddr A0:F3:C1:FA:C6:2C
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:65 errors:0 dropped:0 overruns:0 frame:0
TX packets:64 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:7939 (7.7 KiB) TX bytes:9942 (9.7 KiB)
Output of "cat /etc/config/mwan3" :
config interface 'wan'
option enabled '1'
list track_ip '8.8.4.4'
list track_ip '8.8.8.8'
option reliability '2'
option count '1'
option timeout '2'
option interval '5'
option down '3'
option up '8'
config interface 'e1'
option enabled '1'
list track_ip '8.8.8.8'
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 'e1_m2_w3'
option interface 'e1'
option weight '3'
option metric '1'
config policy 'e1_only'
list use_member 'e1_m2_w3'
config policy 'wan_only'
list use_member 'wan_m1_w3'
config rule 'vpn'
option proto 'all'
option use_policy 'e1_only'
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 'fd5f:7ded:706d::/48'
config interface 'lan'
option ifname 'eth0.1'
option type 'bridge'
option proto 'static'
option netmask '255.255.255.0'
option ip6assign '60'
option macaddr 'a0:f3:c1:fa:c6:2b'
option ipaddr '192.168.3.1'
config interface 'wan'
option ifname 'eth0.2'
option proto 'dhcp'
option macaddr 'a0:f3:c1:fa:c6:2e'
option metric '5'
config switch
option name 'switch0'
option reset '1'
option enable_vlan '1'
config switch_vlan
option device 'switch0'
option vlan '1'
option ports '0t 2 3 4 5'
config switch_vlan
option device 'switch0'
option vlan '2'
option ports '0t 1'
config route
option interface 'lan'
option target '192.168.2.0'
option netmask '255.255.255.0'
option gateway '192.168.3.2'
config route
option interface 'lan'
option target '192.168.1.0'
option netmask '255.255.255.0'
option gateway '192.168.3.2'
config interface 'e1'
option proto 'pptp'
option server '** MY VPN HOST **'
option username '** MY VPN USER **'
option password '** MY VPN PASSWORD **'
option metric '10'
But when i Switch back to wan_only, which is my Cableconnection, everything is fine:
root@Openwrt:~# ping -c3 -w 3 8.8.8.8
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=29.397 ms
64 bytes from 8.8.8.8: seq=1 ttl=49 time=28.186 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=26.059 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 26.059/27.880/29.397 ms
root@Openwrt:~# ping -c3 -w 3 8.8.8.8 -I eth0.2
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=29.936 ms
64 bytes from 8.8.8.8: seq=1 ttl=49 time=26.420 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=27.521 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 26.420/27.959/29.936 ms
root@Openwrt:~# ping -c3 -w 3 8.8.8.8 -I pptp-e1
PING 8.8.8.8 (8.8.8.8): 56 data bytes
64 bytes from 8.8.8.8: seq=0 ttl=49 time=94.381 ms
64 bytes from 8.8.8.8: seq=1 ttl=49 time=93.822 ms
64 bytes from 8.8.8.8: seq=2 ttl=49 time=90.036 ms
--- 8.8.8.8 ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 90.036/92.746/94.381 ms
root@Openwrt:~# traceroute www.google.de
traceroute to www.google.de (173.194.69.94), 30 hops max, 38 byte packets
1 10.180.0.1 (10.180.0.1) 9.953 ms 10.978 ms 11.634 ms
2 172.16.0.113 (172.16.0.113) 17.666 ms 19.349 ms 14.653 ms
3 172.16.16.5 (172.16.16.5) 18.487 ms 18.185 ms 13.297 ms
4 217.69.226.54 (217.69.226.54) 22.535 ms 26.838 ms 13.353 ms
5 209.85.249.184 (209.85.249.184) 35.438 ms 31.888 ms 209.85.249.182 (209.85.249.182) 33.506 ms
6 66.249.95.67 (66.249.95.67) 32.791 ms 33.082 ms 66.249.95.219 (66.249.95.219) 28.864 ms
7 64.233.174.53 (64.233.174.53) 30.732 ms 32.305 ms 64.233.174.29 (64.233.174.29) 38.499 ms
8 * * *
9 bk-in-f94.1e100.net (173.194.69.94) 32.231 ms 27.162 ms 25.218 ms
EDIT!!
Fixed it on my own. Maybe someone has the same quirk.
The solution was to ad a forwarding rule in openwrt firewall to
the "vpnzone"
(Last edited by derdigge on 17 May 2013, 01:53)