Temat: Dwa modemy gsm na jednym urządzeniu

Czy technicznie zadziała taka konfiguracja, wpięte dwa modemy GSM przez huba aktywnego do wdr4300?
Pierwszy to hilink e3276, drugi ZTE mf821
z takim konfigiem niestety działa i jest widziany tylko e3276.

config interface 'wan'
    option dns '8.8.8.8 8.8.4.4'
    option peerdns '0'
    option ifname 'eth1'
    option proto 'dhcp'
    option metric '5'

config interface 'wan2'
    option dns '8.8.8.8 8.8.4.4'
    option peerdns '0'
    option ifname 'wwan0'
    option proto 'ndis'
    option device '/dev/cdc-wdm0'
    option apn 'internet'
    option mobile_isp 'custom'
    option service 'qmi'
    option metric '10'

2

Odp: Dwa modemy gsm na jednym urządzeniu

Technicznie tak, ale Gargoyle nie będzie w gui widział wan2.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

3 (edytowany przez build000 2015-09-22 06:22:01)

Odp: Dwa modemy gsm na jednym urządzeniu

Tak w ogóle to chyba qmi/ncm/direct/ndis po wwan nie obsługują opcji "metric" i "peerdns"

4

Odp: Dwa modemy gsm na jednym urządzeniu

option peerdns '0' - jest dodawany automatycznie podczas konfigu przez gui, to raczej obsługuje.

a może można wpiąć dwa modemy hilink??
option ifname jak ma wyglądać w takim przypadku?
eth1.1 i eth1.2??

5

Odp: Dwa modemy gsm na jednym urządzeniu

eth2/eth3. Kolejne interfejsy powstają, nie vlany.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

6

Odp: Dwa modemy gsm na jednym urządzeniu

znalazłem rozwiązanie
kolega build000 pisał kiedyś o tym http://eko.one.pl/forum/viewtopic.php?id=11201

(while true; do ping -I eth1 google.com > /dev/null; sleep 3; done) &

pingowanie drugiego modemu podnosi go i działają obydwa

7

Odp: Dwa modemy gsm na jednym urządzeniu

Odkopie trochę temat. Mam problem z dwoma modemami na WDR3600 jeden HiLinkk 3372 (Play LTE) drugi E173 (Aero2). Zainstalowane simplefileover, które ładnie przełącza modemy tylko jest problem jak przełączy się na E173 nie można otworzyć żadnej strony. Podejrzewam, że to problem z firewallem

Tue Sep 29 21:31:54 2015 user.notice /usr/bin/simplefailover: Changing connection to backup wan: wan2
Tue Sep 29 21:31:56 2015 daemon.notice netifd: wan2 (6826): Trying to set mode
Tue Sep 29 21:31:57 2015 daemon.notice pppd[6849]: pppd 2.4.7 started by root, uid 0
Tue Sep 29 21:31:57 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: eko.one.pl
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: abort on (BUSY)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: abort on (NO CARRIER)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: abort on (ERROR)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: report (CONNECT)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: timeout set to 10 seconds
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: send (AT&F^M)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: expect (OK)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: AT&F^M^M
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: OK
Tue Sep 29 21:31:58 2015 local2.info chat[6851]:  -- got it
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: send (ATE1^M)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: expect (OK)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: ^M
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: ATE1^M^M
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: OK
Tue Sep 29 21:31:58 2015 local2.info chat[6851]:  -- got it
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: timeout set to 30 seconds
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: expect (OK)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: ^M
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: AT+CGDCONT=1,"IP","darmowy"^M^M
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: OK
Tue Sep 29 21:31:58 2015 local2.info chat[6851]:  -- got it
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: send (ATD*99***1#^M)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: expect (CONNECT)
Tue Sep 29 21:31:58 2015 local2.info chat[6851]: ^M
Tue Sep 29 21:31:59 2015 local2.info chat[6851]: ATD*99***1#^M^M
Tue Sep 29 21:31:59 2015 local2.info chat[6851]: CONNECT
Tue Sep 29 21:31:59 2015 local2.info chat[6851]:  -- got it
Tue Sep 29 21:31:59 2015 local2.info chat[6851]: send ( ^M)
Tue Sep 29 21:31:59 2015 daemon.info pppd[6849]: Serial connection established.
Tue Sep 29 21:31:59 2015 kern.info kernel: [ 3613.560000] 3g-wan2: renamed from ppp0
Tue Sep 29 21:31:59 2015 daemon.info pppd[6849]: Using interface 3g-wan2
Tue Sep 29 21:31:59 2015 daemon.notice pppd[6849]: Connect: 3g-wan2 <--> /dev/ttyUSB0
Tue Sep 29 21:32:00 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: apps3.eq6.pl
Tue Sep 29 21:32:02 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: az361816.vo.msecnd.net
Tue Sep 29 21:32:03 2015 daemon.warn pppd[6849]: Could not determine remote IP address: defaulting to 10.64.64.64
Tue Sep 29 21:32:03 2015 daemon.notice pppd[6849]: local  IP address 100.82.194.202
Tue Sep 29 21:32:03 2015 daemon.notice pppd[6849]: remote IP address 10.64.64.64
Tue Sep 29 21:32:03 2015 daemon.notice pppd[6849]: primary   DNS address 212.2.96.51
Tue Sep 29 21:32:03 2015 daemon.notice pppd[6849]: secondary DNS address 212.2.96.52
Tue Sep 29 21:32:03 2015 daemon.notice netifd: Network device '3g-wan2' link is up
Tue Sep 29 21:32:03 2015 daemon.notice netifd: Interface 'wan2' is now up
Tue Sep 29 21:32:03 2015 daemon.info dnsmasq[2292]: reading /tmp/resolv.conf.auto
Tue Sep 29 21:32:03 2015 daemon.info dnsmasq[2292]: using local addresses only for domain lan
Tue Sep 29 21:32:03 2015 daemon.info dnsmasq[2292]: using nameserver 192.168.8.1#53
Tue Sep 29 21:32:03 2015 daemon.info dnsmasq[2292]: using nameserver 192.168.8.1#53
Tue Sep 29 21:32:03 2015 daemon.info dnsmasq[2292]: using nameserver 212.2.96.51#53
Tue Sep 29 21:32:03 2015 daemon.info dnsmasq[2292]: using nameserver 212.2.96.52#53
Tue Sep 29 21:32:03 2015 user.notice SQM: Trying to start/stop SQM on interface 3g-wan2
Tue Sep 29 21:32:03 2015 user.notice firewall: Reloading firewall due to ifup of wan2 (3g-wan2)
Tue Sep 29 21:32:04 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: pipe.skype.com
Tue Sep 29 21:32:22 2015 daemon.info hostapd: wlan0: STA 00:17:c4:b0:44:45 WPA: group key handshake completed (RSN)
Tue Sep 29 21:32:22 2015 daemon.info hostapd: wlan0: STA 90:f6:52:84:49:3c WPA: group key handshake completed (RSN)
Tue Sep 29 21:32:23 2015 daemon.info hostapd: wlan0: STA 30:a8:db:9e:eb:27 WPA: group key handshake completed (RSN)
Tue Sep 29 21:32:23 2015 daemon.info hostapd: wlan0: STA 90:e7:c4:77:78:07 WPA: group key handshake completed (RSN)
Tue Sep 29 21:32:27 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: www.gstatic.com
Tue Sep 29 21:32:30 2015 daemon.warn pppd[6849]: IPV6CP: timeout sending Config-Requests
Tue Sep 29 21:32:37 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: www.speedtest.net
Tue Sep 29 21:32:38 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: c.speedtest.net
Tue Sep 29 21:32:56 2015 authpriv.info dropbear[7018]: Child connection from 192.168.1.241:50608
Tue Sep 29 21:32:59 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: edge-mqtt.facebook.com
Tue Sep 29 21:32:59 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: api.facebook.com
Tue Sep 29 21:32:59 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: api.facebook.com
Tue Sep 29 21:32:59 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: api.facebook.com
Tue Sep 29 21:32:59 2015 daemon.warn dnsmasq[2292]: possible DNS-rebind attack detected: play.googleapis.com

8

Odp: Dwa modemy gsm na jednym urządzeniu

Podejrzewam że dnsmasq pod aero2 nie ustawiłeś. Ustawiłeś?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

9

Odp: Dwa modemy gsm na jednym urządzeniu

Słuszna diagnoza. Pomogło:

uci set dhcp.@dnsmasq[0].rebind_protection=1
uci add_list dhcp.@dnsmasq[0].rebind_domain=free.aero2.net.pl
uci commit
/etc/init.d/dnsmasq restart

Jak na razie działa dobrze.