LINUX.ORG.RU

Openwrt mwan3 wan+ 3G пинг есть, интернета нет.

 , ,


0

1

Все привет,ситуация такая есть свисток huawei e173 и роутер D-link dir320 b1 с mwan3 прошитый в LEDE 17.01.4. Идея такая , Wan(dhcp) основной канал ,при падение wan - 3G подключается, при появление обратно переключается на wan.Все вроде настроил, все видит и переключается, но при переходе на 3G интернета нет, ip пингуется а сайты нет.3g без mwan3 работает. Если зайти в диагностику mwan3 и через ifdown отключить wan то все работает, а если отключить интернет на подающем роутере то все как положено переходит на 3G но интернета нет. Помогите кто чем может,сильно не ругать только начинаю знакомится с linux)

Software versions :

OpenWrt - LEDE Reboot 17.01.4 r3560-79f57e422d LuCI - git-17.290.79498-d3f0685

mwan3 - 2.0.2-1 mwan3-luci - 1.4-6

Output of «cat /etc/config/mwan3» :

config interface 'wan' option enabled '1' option reliability '2' option down '3' list track_ip '8.8.4.4' list track_ip '8.8.8.8' option count '2' option timeout '3' option interval '3' option up '2'

config interface 'wan2' option reliability '1' option timeout '2' option down '3' option enabled '1' list track_ip '8.8.8.8' list track_ip '8.8.4.4' option count '3' option interval '3' option up '2'

config member 'wan_m1_w3' option interface 'wan' option metric '1' option weight '3'

config member 'wan2_m2_w2' option interface 'wan2' option metric '2' option weight '3'

config policy 'wan_wan2' option last_resort 'unreachable' list use_member 'wan_m1_w3' list use_member 'wan2_m2_w2'

config rule 'default_rule' option dest_ip '0.0.0.0/0' option proto 'all' option sticky '0' option use_policy 'wan_wan2'

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 'fda9:12c2:9b50::/48'

config interface 'lan' option type 'bridge' option ifname 'eth0.1' option proto 'static' option netmask '255.255.255.0' option ip6assign '60' option ipaddr '192.168.22.1'

config device 'lan_dev' option name 'eth0.1' option macaddr 'ba:a3:86:b6:96:06'

config interface 'wan' option ifname 'eth0.2' option proto 'dhcp' option metric '10'

config device 'wan_dev' option name 'eth0.2' option macaddr 'ba:a3:86:b6:96:07'

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 6t'

config switch_vlan option device 'switch0' option vlan '2' option ports '4 6t'

config interface 'wan2' option proto '3g' option device '/dev/ttyUSB0' option service 'umts' option apn '3g.kyivstar.net' option ipv6 'auto' option metric '20'

Output of «cat /etc/config/wireless» :

config wifi-device 'radio0' option type 'mac80211' option channel '11' option hwmode '11g' option path 'platform/10180000.wmac' option htmode 'HT20' option country '00'

config wifi-iface option device 'radio0' option mode 'ap' option ssid 'OpenWrt' option network 'lan' option encryption 'psk-mixed' KEY HIDDEN

Output of «ifconfig» :

3g-wan2 Link encap:Point-to-Point Protocol inet addr:10.233.246.139 P-t-P:10.64.64.64 Mask:255.255.255.255 UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1 RX packets:6097 errors:0 dropped:0 overruns:0 frame:0 TX packets:5786 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:3 RX bytes:2681155 (2.5 MiB) TX bytes:737334 (720.0 KiB)

br-lan Link encap:Ethernet HWaddr BA:A3:86:B6:96:06 inet addr:192.168.22.1 Bcast:192.168.22.255 Mask:255.255.255.0 inet6 addr: fda9:12c2:9b50::1/60 Scope:Global inet6 addr: fe80::b8a3:86ff:feb6:9606/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:19046 errors:0 dropped:0 overruns:0 frame:0 TX packets:18610 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2404852 (2.2 MiB) TX bytes:14793086 (14.1 MiB)

eth0 Link encap:Ethernet HWaddr B8:A3:86:B6:96:06 inet6 addr: fe80::baa3:86ff:feb6:9606/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:16380 errors:0 dropped:0 overruns:0 frame:0 TX packets:14270 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10430404 (9.9 MiB) TX bytes:1777590 (1.6 MiB) Interrupt:5

eth0.1 Link encap:Ethernet HWaddr BA:A3:86:B6:96:06 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:0 errors:0 dropped:0 overruns:0 frame:0 TX packets:688 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:0 (0.0 B) TX bytes:75168 (73.4 KiB)

eth0.2 Link encap:Ethernet HWaddr BA:A3:86:B6:96:07 inet addr:192.168.1.108 Bcast:192.168.1.255 Mask:255.255.255.0 inet6 addr: fe80::b8a3:86ff:feb6:9607/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:14499 errors:0 dropped:0 overruns:0 frame:0 TX packets:13549 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:10054928 (9.5 MiB) TX bytes:1640807 (1.5 MiB)

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:15 errors:0 dropped:0 overruns:0 frame:0 TX packets:15 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1 RX bytes:1692 (1.6 KiB) TX bytes:1692 (1.6 KiB)

wlan0 Link encap:Ethernet HWaddr B8:A3:86:B6:96:06 inet6 addr: fe80::baa3:86ff:feb6:9606/64 Scope:Link UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 RX packets:19045 errors:0 dropped:0 overruns:0 frame:0 TX packets:21408 errors:0 dropped:0 overruns:0 carrier:0 collisions:0 txqueuelen:1000 RX bytes:2671476 (2.5 MiB) TX bytes:15390795 (14.6 MiB)

Output of «route -n» :

Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 0.0.0.0 192.168.1.1 0.0.0.0 UG 10 0 0 eth0.2 0.0.0.0 10.64.64.64 0.0.0.0 UG 20 0 0 3g-wan2 10.64.64.64 0.0.0.0 255.255.255.255 UH 0 0 0 3g-wan2 192.168.1.0 0.0.0.0 255.255.255.0 U 10 0 0 eth0.2 192.168.1.1 0.0.0.0 255.255.255.255 UH 10 0 0 eth0.2 192.168.22.0 0.0.0.0 255.255.255.0 U 0 0 0 br-lan

Output of «ip rule show» :

0: from all lookup local 1001: from all iif eth0.2 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

Output of «ip route list table 1-250» :

1 default via 192.168.1.1 dev eth0.2 2 default via 10.64.64.64 dev 3g-wan2

Firewall default output policy (must be ACCEPT) :

ACCEPT

Output of «iptables -L -t mangle -v -n» :

Chain PREROUTING (policy ACCEPT 1300 packets, 177K bytes) pkts bytes target prot opt in out source destination 1338 185K mwan3_hook all  — * * 0.0.0.0/0 0.0.0.0/0

Chain INPUT (policy ACCEPT 883 packets, 73382 bytes) pkts bytes target prot opt in out source destination

Chain FORWARD (policy ACCEPT 63 packets, 7657 bytes) pkts bytes target prot opt in out source destination 4 208 TCPMSS tcp  — * eth0.2 0.0.0.0/0 0.0.0.0/0 tcp flags:0x06/0x02 /* !fw3: wan (mtu_fix) */ TCPMSS clamp to PMTU 0 0 TCPMSS tcp  — * 3g-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 956 packets, 234K bytes) pkts bytes target prot opt in out source destination 971 235K mwan3_hook all  — * * 0.0.0.0/0 0.0.0.0/0

Chain POSTROUTING (policy ACCEPT 1019 packets, 242K bytes) pkts bytes target prot opt in out source destination

Chain mwan3_connected (2 references) pkts bytes target prot opt in out source destination 623 55532 MARK all  — * * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected dst MARK or 0xff00

Chain mwan3_hook (2 references) pkts bytes target prot opt in out source destination 2309 420K CONNMARK all  — * * 0.0.0.0/0 0.0.0.0/0 CONNMARK restore mask 0xff00 629 123K mwan3_ifaces_in all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 271 24112 mwan3_connected all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 252 20830 mwan3_ifaces_out all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 4 208 mwan3_rules all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 2309 420K CONNMARK all  — * * 0.0.0.0/0 0.0.0.0/0 CONNMARK save mask 0xff00 1226 106K mwan3_connected all  — * * 0.0.0.0/0 0.0.0.0/0 mark match ! 0xff00/0xff00

Chain mwan3_iface_in_wan (1 references) pkts bytes target prot opt in out source destination 356 98409 MARK all  — eth0.2 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected src mark match 0x0/0xff00 /* default */ MARK or 0xff00 2 644 MARK all  — eth0.2 * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan */ MARK xset 0x100/0xff00

Chain mwan3_iface_in_wan2 (1 references) pkts bytes target prot opt in out source destination 0 0 MARK all  — 3g-wan2 * 0.0.0.0/0 0.0.0.0/0 match-set mwan3_connected src mark match 0x0/0xff00 /* default */ MARK or 0xff00 0 0 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_iface_out_wan (1 references) pkts bytes target prot opt in out source destination 155 12810 MARK all  — * * 192.168.1.108 0.0.0.0/0 mark match 0x0/0xff00 /* wan */ MARK xset 0x100/0xff00

Chain mwan3_iface_out_wan2 (1 references) pkts bytes target prot opt in out source destination 93 7812 MARK all  — * * 10.233.246.139 0.0.0.0/0 mark match 0x0/0xff00 /* wan2 */ MARK xset 0x200/0xff00

Chain mwan3_ifaces_in (1 references) pkts bytes target prot opt in out source destination 628 123K mwan3_iface_in_wan all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 268 23429 mwan3_iface_in_wan2 all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00

Chain mwan3_ifaces_out (1 references) pkts bytes target prot opt in out source destination 252 20830 mwan3_iface_out_wan all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 97 8020 mwan3_iface_out_wan2 all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00

Chain mwan3_policy_wan_wan2 (1 references) pkts bytes target prot opt in out source destination 4 208 MARK all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* wan 3 3 */ MARK xset 0x100/0xff00

Chain mwan3_rules (1 references) pkts bytes target prot opt in out source destination 4 208 mwan3_policy_wan_wan2 all  — * * 0.0.0.0/0 0.0.0.0/0 mark match 0x0/0xff00 /* default_rule */


Вы не можете добавлять комментарии в эту тему. Тема перемещена в архив.