Doopa zmieniłem na 256 i nadal to samo sad

root@OpenWrt:~# ip route show
default via 82.160.xxx.xxx dev eth0.2  proto static  src 82.160.xxx.xx
10.64.64.64 dev 3g-wan3  proto kernel  scope link  src 46.113.160.152
82.160.xxx.0/24 dev eth0.2  proto kernel  scope link  src 82.160.xxx.xx
82.160.xxx.254 dev eth0.2  proto static  scope link  src 82.160.xxx.xx
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1
root@OpenWrt:~# ip route show table modem
default via 10.64.64.64 dev 3g-wan3
root@OpenWrt:~# ip rule show
0:      from all lookup 128
0:      from 192.168.1.244 lookup modem
1:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default

Ok czyli co 200 modem na inny czy jak?

Niestety tak jest nie mogę się dostać zarówno na luci ze strony jak i z konsoli. Z innego podłączonego komputera do rutera loguje się do konsoli i mam:

root@OpenWrt:~# ip route show
default via 82.160.xxx.xxx dev eth0.2
default via 82.160.xxx.xxx dev eth0.2  proto static  src 82.160.xxx.xx
10.64.64.64 dev 3g-wan3  proto kernel  scope link  src 46.113.160.152
82.160.xxx.0/24 dev eth0.2  proto kernel  scope link  src 82.160.xxx.xx
82.160.xxx.xxx dev eth0.2  proto static  scope link  src 82.160.xxx.xx
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1

root@OpenWrt:~# ip route show table modem
default via 10.64.64.64 dev 3g-wan3

root@OpenWrt:~# ip rule show
0:      from all lookup 128
0:      from 192.168.1.244 lookup modem
0:      from 192.168.1.244 lookup modem
1:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default

Mam trzy wany podstawowy kablowy z dhcp, wan2 i wan3 z modemów gsm. Dla dwóch pierwszych mam skonfigurowane simplefailover natomiast wan3 jest cały czas połączone i do niego chciałem przypisać jeden adres z sieci lan skorzystałem z poradnika http://eko.one.pl/?p=openwrt-routing moja konfiguracja wygląda tak:

root@OpenWrt:~# 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 'fd04:77ab:8bc2::/48'

config interface 'lan'
        option ifname 'eth0.1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'
        option macaddr 'a0:63:91:7d:07:99'

config interface 'wan'
        option ifname 'eth0.2'
        option proto 'dhcp'
        option macaddr '6c:62:6d:30:90:9e'

config interface 'wan2'
        option proto '3g'
        option device '/dev/ttyUSB0'
        option service 'umts'
        option apn 'internet'
        option username 'internet'
        option password 'internet'
        option auto '0'
        option defaultroute '1'

config interface 'wan3'
        option proto '3g'
        option device '/dev/ttyUSB3'
        option service 'umts'
        option apn 'internet'
        option defaultroute '0'

config interface 'wan6'
        option ifname 'eth0.2'
        option proto 'dhcpv6'

config switch
        option name 'switch0'
        option reset '1'
        option enable_vlan '1'
        option mirror_source_port '0'
        option mirror_monitor_port '0'

config switch_vlan
        option device 'switch0'
        option vlan '1'
        option ports '0t 1 2 3 4'
        option vid '1'

config switch_vlan
        option device 'switch0'
        option vlan '2'
        option ports '0t 5'
        option vid '2'
root@OpenWrt:~# cat /etc/config/firewall

config defaults
        option syn_flood '1'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'REJECT'

config zone
        option name 'lan'
        list network 'lan'
        option input 'ACCEPT'
        option output 'ACCEPT'
        option forward 'ACCEPT'

config zone
        option name 'wan'
        option input 'REJECT'
        option output 'ACCEPT'
        option forward 'REJECT'
        option masq '1'
        option mtu_fix '1'
        option network 'wan wan2 wan3'

config forwarding
        option src 'lan'
        option dest 'wan'

config rule
        option name 'Allow-DHCP-Renew'
        option src 'wan'
        option proto 'udp'
        option dest_port '68'
        option target 'ACCEPT'
        option family 'ipv4'

config rule
        option name 'Allow-Ping'
        option src 'wan'
        option proto 'icmp'
        option icmp_type 'echo-request'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-IGMP'
        option src 'wan'
        option proto 'igmp'
        option family 'ipv4'
        option target 'ACCEPT'

config rule
        option name 'Allow-DHCPv6'
        option src 'wan'
        option proto 'udp'
        option src_ip 'fe80::/10'
        option src_port '547'
        option dest_ip 'fe80::/10'
        option dest_port '546'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-MLD'
        option src 'wan'
        option proto 'icmp'
        option src_ip 'fe80::/10'
        list icmp_type '130/0'
        list icmp_type '131/0'
        list icmp_type '132/0'
        list icmp_type '143/0'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Input'
        option src 'wan'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        list icmp_type 'router-solicitation'
        list icmp_type 'neighbour-solicitation'
        list icmp_type 'router-advertisement'
        list icmp_type 'neighbour-advertisement'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config rule
        option name 'Allow-ICMPv6-Forward'
        option src 'wan'
        option dest '*'
        option proto 'icmp'
        list icmp_type 'echo-request'
        list icmp_type 'echo-reply'
        list icmp_type 'destination-unreachable'
        list icmp_type 'packet-too-big'
        list icmp_type 'time-exceeded'
        list icmp_type 'bad-header'
        list icmp_type 'unknown-header-type'
        option limit '1000/sec'
        option family 'ipv6'
        option target 'ACCEPT'

config include
        option path '/etc/firewall.user'

config rule
        option src 'wan'
        option dest 'lan'
        option proto 'esp'
        option target 'ACCEPT'

config rule
        option src 'wan'
        option dest 'lan'
        option dest_port '500'
        option proto 'udp'
        option target 'ACCEPT'
root@OpenWrt:~# ip route show
default via 82.160.xxx.xxx dev eth0.2  proto static  src 82.160.xxx.xx
10.64.64.64 dev 3g-wan3  proto kernel  scope link  src 46.113.160.152
82.160.xxx.0/24 dev eth0.2  proto kernel  scope link  src 82.160.xxx.xx
82.160.xxx.xxx dev eth0.2  proto static  scope link  src 82.160.xxx.xx
192.168.1.0/24 dev br-lan  proto kernel  scope link  src 192.168.1.1

root@OpenWrt:~# ip route show table modem
default via 10.64.64.64 dev 3g-wan3

root@OpenWrt:~# ip rule show
0:      from all lookup 128
0:      from 192.168.1.244 lookup modem
1:      from all lookup local
32766:  from all lookup main
32767:  from all lookup default

no i niestety na komputerze z 192.168.1.244 internet nie działa, nawet nie można dostać się do konfiguracji routera. Co może być przyczyną?

cineq napisał/a:

Ja zrobilem to na hotplug.d:

skrypt 99-send-3g-mail w /etc/hotplug.d/iface:

#!/bin/sh 

if [ "$INTERFACE" == "wan3g" ]; then
    sleep 10
    if [ "$ACTION" == "ifup" ]; then
        cat /usr/share/3g-on.txt | sendmail -t
    else
        cat /usr/share/3g-off.txt | sendmail -t
    fi
fi

Uzywam simplefailover przerobione troche, zeby pingowalo kilka hostow (uzywajac oping-a), ale w rozwiazaniu z hotplugiem nie ma to znaczenia. Skrypt wysyla elegancko po 1 mailu w zaleznosci od wlaczenia/wylaczenia interfejsu 3g.

Jak jednak można dostosować pod mwan3? Aktualnie przy zaniku podstawowego łącza i przełączenia na zapasowe mam:

Tue Jan  5 22:01:48 2016 user.notice mwan3: ifdown interface wan2 (wwan0)
Tue Jan  5 22:01:41 2016 user.notice mwan3track: Interface wan2 (wwan0) is offline
Tue Jan  5 22:01:26 2016 user.notice mwan3: ifdown interface wan2 (unknown)
Tue Jan  5 22:00:15 2016 user.notice mwan3: ifdown interface wan (eth0.2)
Tue Jan  5 22:00:15 2016 user.notice mwan3track: Interface wan (eth0.2) is offline

106

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Ok dzięki jak dotrze drugi modem to będę pytał o szczegóły tj. który ma być wdm0 a który wdm1 ale to pod koniec tygodnia jak już.

107

(40 odpowiedzi, napisanych Oprogramowanie / Software)

Od razu zaznaczam pytam na zaś bo za dwa dni mam mieć drugi modem e3131-s2. Czy da się utworzyć dwa wany (dla potrzeby mwan3) z modemami e3131-s2 w tym trybie? Jeżeli tak to jak ma wyglądać tryb interfejsu wan2 skoro pierwszy to /dev/cdc-wdm0?

108

(3 odpowiedzi, napisanych Oprogramowanie / Software)

Ok dzięki zmieniłem na ME teraz wysyła i odbiera smsy pomimo, że w dalszym ciągu występuje błąd tego ty[u "GetSMS SM 21 failed! (The given location is empty.)" zmieniłem typ pamięci w /usr/share/3ginfo/cgi-bin/sms.sh i przez stronę także idzie.
A co z kodami USSD? Dalej nie działają hmm

Potrzebuje na TL-WR710n-v1 uruchomić internet z obsługą SMSów i kodów ussd z wykorzystaniem 3ginfo na starym modemie MF100 z Netii. Sam internet owszem działa choć jest identyfikowany jako NETIA przy czym karta jest Virgin Mobile (sieć na Playu):

root@OpenWrt:~# 3ginfo
Status: Połączony
Czas polaczenia: 0d, 00:28:40
Przeslano danych: 360.8 KiB / 246.1 KiB
Operator: NETIA
Tryb pracy: HSDPA
Sila sygnalu: 41%
Urzadzenie: ZTE INCORPORATED MF100
MCC MNC: - -
LAC: - (-)
LCID: - (-)
RNC: - (-)
eNB: - (-)
CID: - (-)
CSQ: 13
RSSI: -87 dBm
RSCP: -88 dBm
Ec/IO: -6 dB
RSRP: - dBm
RSRQ: - dB

wysyłanie smsów także działa, ale odbieranie smsów i wykonywanie kodów ussd już nie hmm Przy próbie odbioru SMSów w konsoli przez gnokii otrzymuje:

root@OpenWrt:~# gnokii --identify
GNOKII Version 0.6.21
IMEI         : 353164044087622
Manufacturer : ZTE INCORPORATED
Model        : MF100
Product name : MF100
Revision     : BD_NTPLP671A1V1.0.0

root@OpenWrt:~# gnokii --getsms SM 0 end
GNOKII Version 0.6.21
0. Inbox Message (read)
Date/time: 17/10/2015 13:28:54 +0200
Sender: Virgin Msg Center: +48790998250
TUTAJ SĄ SMSY WCZEŚNIEJ ODEBRANE I ZAPISANE NA KARCIE
GetSMS SM 15 failed! (The given location is empty.)
GetSMS SM 16 failed! (The given location is empty.)
GetSMS SM 17 failed! (The given location is empty.)
GetSMS SM 18 failed! (The given location is empty.)
GetSMS SM 19 failed! (The given location is empty.)
GetSMS SM 20 failed! (The given location is empty.)
GetSMS SM 21 failed! (The given location is empty.)
GetSMS SM 22 failed! (The given location is empty.)
GetSMS SM 23 failed! (The given location is empty.)
GetSMS SM 24 failed! (The given location is empty.)

Proszę o poradę co może być tego przyczyną, poniżej moje konfiguracje:

root@OpenWrt:~# cat /sys/kernel/debug/usb/devices

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480  MxCh= 1
B:  Alloc=  1/800 us ( 0%), #Int=  1, #Iso=  0
D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
P:  Vendor=1d6b ProdID=0002 Rev= 3.18
S:  Manufacturer=Linux 3.18.23 ehci_hcd
S:  Product=EHCI Host Controller
S:  SerialNumber=ehci-platform
C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

T:  Bus=01 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=19d2 ProdID=0031 Rev= 0.00
S:  Manufacturer=ZTE,Incorporated
S:  Product=ZTE WCDMA Technologies MSM
S:  SerialNumber=P671A1NETD010000
C:* #Ifs= 4 Cfg#= 1 Atr=e0 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=82(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 2 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=83(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 3 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=option
E:  Ad=84(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
root@OpenWrt:~# logread
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.280000] usbcore: registered new interface driver sierra_net
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.380000] usbcore: registered new interface driver cdc_mbim
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.400000] usbcore: registered new interface driver option
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.400000] usbserial: USB Serial support registered for GSM modem (1-port)
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.410000] option 1-1:1.0: GSM modem (1-port) converter detected
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.410000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.420000] option 1-1:1.1: GSM modem (1-port) converter detected
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.430000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.430000] option 1-1:1.3: GSM modem (1-port) converter detected
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.440000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.500000] ath: EEPROM regdomain: 0x0
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.500000] ath: EEPROM indicates default country code should be used
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.500000] ath: doing EEPROM country->regdmn map search
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.500000] ath: country maps to regdmn code: 0x3a
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.500000] ath: Country alpha2 being used: US
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.500000] ath: Regpair used: 0x3a
Tue Dec 29 10:46:02 2015 kern.debug kernel: [   18.520000] ieee80211 phy0: Selected rate control algorithm 'minstrel_ht'
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.520000] ieee80211 phy0: Atheros AR9330 Rev:1 mem=0xb8100000, irq=2
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.550000] cfg80211: Calling CRDA for country: US
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.550000] cfg80211: Regulatory domain changed to country: US
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.560000] cfg80211:  DFS Master region: FCC
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.560000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.570000] cfg80211:   (2402000 KHz - 2472000 KHz @ 40000 KHz), (N/A, 3000 mBm), (N/A)
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.580000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 1700 mBm), (N/A)
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.590000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2300 mBm), (0 s)
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.600000] cfg80211:   (5735000 KHz - 5835000 KHz @ 80000 KHz), (N/A, 3000 mBm), (N/A)
Tue Dec 29 10:46:02 2015 kern.info kernel: [   18.610000] cfg80211:   (57240000 KHz - 63720000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
Tue Dec 29 10:46:06 2015 user.emerg syslog: this file has been obseleted. please call "/sbin/block mount" directly
Tue Dec 29 10:46:07 2015 daemon.err block: /dev/mtdblock3 is already mounted
Tue Dec 29 10:46:09 2015 authpriv.info dropbear[1381]: Not backgrounding
Tue Dec 29 10:46:10 2015 user.emerg syslog: SQM: QDISC fq_codel is useable.
Tue Dec 29 10:46:10 2015 user.notice SQM: QDISC fq_codel is useable.
Tue Dec 29 10:46:10 2015 user.emerg syslog: SQM: QDISC efq_codel is NOT useable.
Tue Dec 29 10:46:10 2015 user.notice SQM: QDISC efq_codel is NOT useable.
Tue Dec 29 10:46:10 2015 user.emerg syslog: SQM: QDISC nfq_codel is NOT useable.
Tue Dec 29 10:46:10 2015 user.notice SQM: QDISC nfq_codel is NOT useable.
Tue Dec 29 10:46:10 2015 user.emerg syslog: SQM: QDISC sfq is useable.
Tue Dec 29 10:46:10 2015 user.notice SQM: QDISC sfq is useable.
Tue Dec 29 10:46:11 2015 user.emerg syslog: SQM: QDISC codel is useable.
Tue Dec 29 10:46:11 2015 user.notice SQM: QDISC codel is useable.
Tue Dec 29 10:46:11 2015 user.emerg syslog: SQM: QDISC ns2_codel is NOT useable.
Tue Dec 29 10:46:11 2015 user.notice SQM: QDISC ns2_codel is NOT useable.
Tue Dec 29 10:46:11 2015 user.emerg syslog: SQM: QDISC pie is useable.
Tue Dec 29 10:46:11 2015 user.notice SQM: QDISC pie is useable.
Tue Dec 29 10:46:11 2015 user.emerg syslog: SQM: QDISC cake is NOT useable.
Tue Dec 29 10:46:11 2015 user.notice SQM: QDISC cake is NOT useable.
Tue Dec 29 10:46:13 2015 kern.info kernel: [   31.920000] device eth1 entered promiscuous mode
Tue Dec 29 10:46:13 2015 kern.info kernel: [   31.920000] IPv6: ADDRCONF(NETDEV_UP): br-lan: link is not ready
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'lan' is enabled
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'lan' is setting up now
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'lan' is now up
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'loopback' is enabled
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'loopback' is setting up now
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'loopback' is now up
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'wan' is setting up now
Tue Dec 29 10:46:13 2015 kern.info kernel: [   31.980000] IPv6: ADDRCONF(NETDEV_UP): eth0: link is not ready
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'wan6' is enabled
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Network device 'lo' link is up
Tue Dec 29 10:46:13 2015 daemon.notice netifd: Interface 'loopback' has link connectivity
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.820000] cfg80211: Calling CRDA for country: PL
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.820000] cfg80211: Regulatory domain changed to country: PL
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.820000] cfg80211:  DFS Master region: ETSI
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.830000] cfg80211:   (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp), (dfs_cac_time)
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.840000] cfg80211:   (2402000 KHz - 2482000 KHz @ 40000 KHz), (N/A, 2000 mBm), (N/A)
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.850000] cfg80211:   (5170000 KHz - 5250000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (N/A)
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.860000] cfg80211:   (5250000 KHz - 5330000 KHz @ 80000 KHz, 160000 KHz AUTO), (N/A, 2000 mBm), (0 s)
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.870000] cfg80211:   (5490000 KHz - 5710000 KHz @ 160000 KHz), (N/A, 2700 mBm), (0 s)
Tue Dec 29 10:46:14 2015 kern.info kernel: [   33.870000] cfg80211:   (57000000 KHz - 66000000 KHz @ 2160000 KHz), (N/A, 4000 mBm), (N/A)
Tue Dec 29 10:46:15 2015 user.notice firewall: Reloading firewall due to ifup of lan (br-lan)
Tue Dec 29 10:46:16 2015 daemon.notice pppd[1780]: pppd 2.4.7 started by root, uid 0
Tue Dec 29 10:46:18 2015 kern.info kernel: [   36.950000] IPv6: ADDRCONF(NETDEV_UP): wlan0: link is not ready
Tue Dec 29 10:46:18 2015 kern.info kernel: [   36.960000] device wlan0 entered promiscuous mode
Tue Dec 29 10:46:18 2015 kern.info kernel: [   36.960000] br-lan: port 2(wlan0) entered forwarding state
Tue Dec 29 10:46:18 2015 kern.info kernel: [   36.970000] br-lan: port 2(wlan0) entered forwarding state
Tue Dec 29 10:46:18 2015 kern.info kernel: [   36.990000] br-lan: port 2(wlan0) entered disabled state
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: abort on (BUSY)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: abort on (NO CARRIER)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: abort on (ERROR)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: report (CONNECT)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: timeout set to 10 seconds
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: send (AT&F^M)
Tue Dec 29 10:46:18 2015 daemon.notice netifd: radio0 (1641): Configuration file: /var/run/hostapd-phy0.conf
Tue Dec 29 10:46:18 2015 daemon.notice netifd: radio0 (1641): wlan0: interface state UNINITIALIZED->COUNTRY_UPDATE
Tue Dec 29 10:46:18 2015 daemon.notice netifd: radio0 (1641): Using interface wlan0 with hwaddr 64:66:b3:85:16:b8 and ssid "wrt"
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: expect (OK)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: AT&F^M^M
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: OK
Tue Dec 29 10:46:18 2015 local2.info chat[1850]:  -- got it
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: send (ATE1^M)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: expect (OK)
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: ^M
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: ATE1^M^M
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: OK
Tue Dec 29 10:46:18 2015 local2.info chat[1850]:  -- got it
Tue Dec 29 10:46:18 2015 local2.info chat[1850]: send (AT+CGDCONT=1,"IP","internet"^M)
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: timeout set to 30 seconds
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: expect (OK)
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: ^M
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: AT+CGDCONT=1,"IP","internet"^M^M
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: OK
Tue Dec 29 10:46:19 2015 local2.info chat[1850]:  -- got it
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: send (ATD*99***1#^M)
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: expect (CONNECT)
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: ^M
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: ATD*99***1#^M^M
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: CONNECT
Tue Dec 29 10:46:19 2015 local2.info chat[1850]:  -- got it
Tue Dec 29 10:46:19 2015 local2.info chat[1850]: send ( ^M)
Tue Dec 29 10:46:19 2015 daemon.info pppd[1780]: Serial connection established.
Tue Dec 29 10:46:19 2015 kern.info kernel: [   38.300000] 3g-wan: renamed from ppp0
Tue Dec 29 10:46:19 2015 daemon.info pppd[1780]: Using interface 3g-wan
Tue Dec 29 10:46:19 2015 daemon.notice pppd[1780]: Connect: 3g-wan <--> /dev/ttyUSB2
Tue Dec 29 10:46:21 2015 kern.info kernel: [   40.130000] br-lan: port 2(wlan0) entered forwarding state
Tue Dec 29 10:46:21 2015 kern.info kernel: [   40.130000] br-lan: port 2(wlan0) entered forwarding state
Tue Dec 29 10:46:21 2015 kern.info kernel: [   40.140000] IPv6: ADDRCONF(NETDEV_CHANGE): wlan0: link becomes ready
Tue Dec 29 10:46:21 2015 daemon.notice netifd: Bridge 'br-lan' link is up
Tue Dec 29 10:46:21 2015 daemon.notice netifd: Interface 'lan' has link connectivity
Tue Dec 29 10:46:21 2015 kern.info kernel: [   40.160000] IPv6: ADDRCONF(NETDEV_CHANGE): br-lan: link becomes ready
Tue Dec 29 10:46:21 2015 daemon.notice netifd: radio0 (1641): wlan0: interface state COUNTRY_UPDATE->ENABLED
Tue Dec 29 10:46:21 2015 daemon.notice netifd: radio0 (1641): wlan0: AP-ENABLED
Tue Dec 29 10:46:21 2015 daemon.notice netifd: Network device 'wlan0' link is up
Tue Dec 29 10:46:21 2015 daemon.info procd: - init complete -
Tue Dec 29 10:46:23 2015 kern.info kernel: [   42.130000] br-lan: port 2(wlan0) entered forwarding state
Tue Dec 29 10:46:23 2015 daemon.warn pppd[1780]: Could not determine remote IP address: defaulting to 10.64.64.64
Tue Dec 29 10:46:23 2015 daemon.notice pppd[1780]: local  IP address 109.243.108.156
Tue Dec 29 10:46:23 2015 daemon.notice pppd[1780]: remote IP address 10.64.64.64
Tue Dec 29 10:46:23 2015 daemon.notice pppd[1780]: primary   DNS address 89.108.195.21
Tue Dec 29 10:46:23 2015 daemon.notice pppd[1780]: secondary DNS address 89.108.202.21
Tue Dec 29 10:46:23 2015 daemon.notice netifd: Network device '3g-wan' link is up
Tue Dec 29 10:46:23 2015 daemon.notice netifd: Interface 'wan' is now up
Tue Dec 29 10:46:23 2015 daemon.notice netifd: Network alias '3g-wan' link is up
Tue Dec 29 10:46:23 2015 daemon.notice netifd: Interface 'wan_6' is enabled
Tue Dec 29 10:46:23 2015 daemon.notice netifd: Interface 'wan_6' has link connectivity
Tue Dec 29 10:46:23 2015 daemon.notice netifd: Interface 'wan_6' is setting up now
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: started, version 2.73 cachesize 150
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: DNS service limited to local subnets
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq-dhcp[2009]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: using local addresses only for domain lan
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: reading /tmp/resolv.conf.auto
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: using local addresses only for domain lan
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: using nameserver 89.108.195.21#53
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: using nameserver 89.108.202.21#53
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: read /etc/hosts - 1 addresses
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq[2009]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 29 10:46:24 2015 daemon.info dnsmasq-dhcp[2009]: read /etc/ethers - 0 addresses
Tue Dec 29 10:46:24 2015 daemon.info hostapd: wlan0: STA f8:1a:67:07:69:97 IEEE 802.11: authenticated
Tue Dec 29 10:46:24 2015 daemon.info hostapd: wlan0: STA f8:1a:67:07:69:97 IEEE 802.11: associated (aid 1)
Tue Dec 29 10:46:24 2015 daemon.info hostapd: wlan0: STA f8:1a:67:07:69:97 WPA: pairwise key handshake completed (RSN)
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2009]: exiting on receipt of SIGTERM
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: started, version 2.73 cachesize 150
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP no-DHCPv6 no-Lua TFTP no-conntrack no-ipset no-auth no-DNSSEC loop-detect inotify
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: DNS service limited to local subnets
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq-dhcp[2105]: DHCP, IP range 192.168.1.100 -- 192.168.1.249, lease time 12h
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: using local addresses only for domain lan
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: reading /tmp/resolv.conf.auto
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: using local addresses only for domain lan
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: using nameserver 89.108.195.21#53
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: using nameserver 89.108.202.21#53
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: read /etc/hosts - 1 addresses
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 29 10:46:26 2015 daemon.info dnsmasq-dhcp[2105]: read /etc/ethers - 0 addresses
Tue Dec 29 10:46:27 2015 user.notice firewall: Reloading firewall due to ifup of wan (3g-wan)
Tue Dec 29 10:46:29 2015 user.notice ddns-scripts[2232]: myddns_ipv4: PID '2232' started at 2015-12-29 10:46
Tue Dec 29 10:46:29 2015 user.warn ddns-scripts[2232]: myddns_ipv4: Service section disabled! - TERMINATE
Tue Dec 29 10:46:29 2015 user.warn ddns-scripts[2232]: myddns_ipv4: PID '2232' exit WITH ERROR '1' at 2015-12-29 10:46
Tue Dec 29 10:46:37 2015 kern.notice kernel: [   56.440000] random: nonblocking pool is initialized
Tue Dec 29 10:46:50 2015 daemon.warn pppd[1780]: IPV6CP: timeout sending Config-Requests
Tue Dec 29 10:46:54 2015 daemon.info hostapd: wlan0: STA dc:a9:71:1d:91:1f IEEE 802.11: authenticated
Tue Dec 29 10:46:54 2015 daemon.info hostapd: wlan0: STA dc:a9:71:1d:91:1f IEEE 802.11: associated (aid 2)
Tue Dec 29 10:46:54 2015 daemon.info hostapd: wlan0: STA dc:a9:71:1d:91:1f WPA: pairwise key handshake completed (RSN)
Tue Dec 29 10:46:54 2015 daemon.info dnsmasq-dhcp[2105]: DHCPREQUEST(br-lan) 192.168.1.241 dc:a9:71:1d:91:1f
Tue Dec 29 10:46:54 2015 daemon.info dnsmasq-dhcp[2105]: DHCPACK(br-lan) 192.168.1.241 dc:a9:71:1d:91:1f ge620dx
Tue Dec 29 10:46:54 2015 daemon.warn odhcpd[1313]: DHCPV6 SOLICIT IA_NA from 000100011da2a4956c626d30909e on br-lan: ok fd75:c2d1:b47a::e94/128
Tue Dec 29 10:46:55 2015 daemon.info dnsmasq[2105]: read /etc/hosts - 1 addresses
Tue Dec 29 10:46:55 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/odhcpd - 0 addresses
Tue Dec 29 10:46:55 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 29 10:46:55 2015 daemon.info dnsmasq-dhcp[2105]: read /etc/ethers - 0 addresses
Tue Dec 29 10:46:55 2015 daemon.warn odhcpd[1313]: DHCPV6 SOLICIT IA_NA from 000100011da2a4956c626d30909e on br-lan: ok fd75:c2d1:b47a::e94/128
Tue Dec 29 10:46:56 2015 daemon.warn odhcpd[1313]: DHCPV6 REQUEST IA_NA from 000100011da2a4956c626d30909e on br-lan: ok fd75:c2d1:b47a::e94/128
Tue Dec 29 10:46:56 2015 daemon.info dnsmasq[2105]: read /etc/hosts - 1 addresses
Tue Dec 29 10:46:56 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/odhcpd - 1 addresses
Tue Dec 29 10:46:56 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 29 10:46:56 2015 daemon.info dnsmasq-dhcp[2105]: read /etc/ethers - 0 addresses
Tue Dec 29 10:48:42 2015 daemon.info pppd[1780]: System time change detected.
Tue Dec 29 10:51:28 2015 authpriv.info dropbear[3824]: Child connection from 192.168.1.241:59564
Tue Dec 29 10:51:41 2015 authpriv.notice dropbear[3824]: Password auth succeeded for 'root' from 192.168.1.241:59564
Tue Dec 29 10:53:33 2015 daemon.warn odhcpd[1313]: DHCPV6 SOLICIT IA_NA from 000100011da2a4956c626d30909e on br-lan: ok fd75:c2d1:b47a::e94/128
Tue Dec 29 10:53:33 2015 daemon.info dnsmasq[2105]: read /etc/hosts - 1 addresses
Tue Dec 29 10:53:33 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/odhcpd - 0 addresses
Tue Dec 29 10:53:33 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 29 10:53:33 2015 daemon.info dnsmasq-dhcp[2105]: read /etc/ethers - 0 addresses
Tue Dec 29 10:53:34 2015 daemon.warn odhcpd[1313]: DHCPV6 REQUEST IA_NA from 000100011da2a4956c626d30909e on br-lan: ok fd75:c2d1:b47a::e94/128
Tue Dec 29 10:53:34 2015 daemon.info dnsmasq[2105]: read /etc/hosts - 1 addresses
Tue Dec 29 10:53:34 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/odhcpd - 1 addresses
Tue Dec 29 10:53:34 2015 daemon.info dnsmasq[2105]: read /tmp/hosts/dhcp - 1 addresses
Tue Dec 29 10:53:34 2015 daemon.info dnsmasq-dhcp[2105]: read /etc/ethers - 0 addresses
Tue Dec 29 10:56:37 2015 authpriv.info dropbear[3824]: Exit (root): Exited normally
Tue Dec 29 10:56:46 2015 authpriv.info dropbear[6997]: Child connection from 192.168.1.241:59674
Tue Dec 29 10:56:54 2015 authpriv.notice dropbear[6997]: Password auth succeeded for 'root' from 192.168.1.241:59674

Konfiguracja wanu:

root@OpenWrt:~# 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 'fd75:c2d1:b47a::/48'

config interface 'lan'
        option ifname 'eth1'
        option force_link '1'
        option type 'bridge'
        option proto 'static'
        option ipaddr '192.168.1.1'
        option netmask '255.255.255.0'
        option ip6assign '60'

config interface 'wan'
        option proto '3g'
        option apn 'internet'
        option device '/dev/ttyUSB2'
        option service 'umts'

config interface 'wan6'
        option ifname 'eth0'
        option proto 'dhcpv6'

3ginfo:

root@OpenWrt:~# cat /etc/config/3ginfo

config 3ginfo
        option http_port '81'
        option language 'pl'
        option device '/dev/ttyUSB1'

wan idzie na /dev/ttyUSB2 na innych portach nie łączy, a 3ginfo oraz gnokii na /dev/ttyUSB1 bo tutaj także na innych nie wykrywa modemu.

Z góry dzięki za wszelką pomoc.

Tworzy pliki ale niestety nic w nich nie zapisuje hmm Oczywiście maile wysyła tak jak do tej pory.

cineq napisał/a:

Ja zrobilem to na hotplug.d:

skrypt 99-send-3g-mail w /etc/hotplug.d/iface:

#!/bin/sh 

if [ "$INTERFACE" == "wan3g" ]; then
    sleep 10
    if [ "$ACTION" == "ifup" ]; then
        cat /usr/share/3g-on.txt | sendmail -t
    else
        cat /usr/share/3g-off.txt | sendmail -t
    fi
fi

Uzywam simplefailover przerobione troche, zeby pingowalo kilka hostow (uzywajac oping-a), ale w rozwiazaniu z hotplugiem nie ma to znaczenia. Skrypt wysyla elegancko po 1 mailu w zaleznosci od wlaczenia/wylaczenia interfejsu 3g.

A czy jest możliwość dodania do tego skryptu rejestrowania do pliku kiedy nastąpiło przełączenie na wan3g i powrót do wanu podstawowego?

112

(6 odpowiedzi, napisanych Inne)

Życie big_smile

113

(6 odpowiedzi, napisanych Inne)

Hehe... oj zbawi zbawi wink no dobrze to czekam na podniesienie Vectry smile

114

(6 odpowiedzi, napisanych Inne)

O cholera hmm czy w takim razie możesz zapodać w jakiś sposób ostatnią wersję OpenWRT z Luci dla  TL-WR710N v1? Sorry ale szalenie zależy mi na tym wink
Jakby byłoby możliwe to mogę podać lokalizację mojego ftp tongue

115

(6 odpowiedzi, napisanych Inne)

Jak w temacie chciałem pobrać obraz dla L-WR710N ale niestety http://dl.eko.one.pl/ nie działa hmm

Swego czasu miałem to samo tzn. nie przełączał się modem problem znikł wraz z zastosowaniem aktywnego huba smile

Spróbuj sprawdzić z aktywnym hubem o ile z niego nie korzystasz

cineq napisał/a:

Zeby zminimalizowac szanse falszywego wykrycia "awarii" internetu.

Możesz pochwalić się tą modyfikacją? tongue Z góry dzięki smile

@cineq bardzo dobre rozwiązanie no i faktycznie nie wysyła po kilka maili! Super dzięki wielkie.
PS. możesz rozwinąć co daje pingowanie kilku hostów?

Dla simplefailover ja zrobiłem tak http://eko.one.pl/forum/viewtopic.php?id=11026. A dla msmtp

cat /etc/gsm.txt | sendmail -t

Jedyny problem jaki mam to to, że prawie za każdym razem wysyła po 2 maile hmm

Dlaczego się tak dzieje? Tak jest za każdym razem hmm

Odświeżę trochę temat wszystko działa prawidłowo ale simplefailover podczas przełączania sieci dwa razy wysyła smsa w logread jest zapis:

Sun Oct 18 17:33:36 2015 daemon.notice netifd: Interface 'wan2' is setting up now
Sun Oct 18 17:33:36 2015 user.notice /usr/bin/simplefailover: Changing connection to backup wan: wan2
Sun Oct 18 17:33:38 2015 daemon.notice pppd[3247]: pppd 2.4.7 started by root, uid 0
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: abort on (BUSY)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: abort on (NO CARRIER)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: abort on (ERROR)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: report (CONNECT)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: timeout set to 10 seconds
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: send (AT&F^M)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: expect (OK)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: ^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: Manufacturer: huawei^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: Model: E3131^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: Revision: 21.157.11.00.264^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: IMEI: 862732011674160^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: +GCAP: +CGSM,+DS,+ES^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: ^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: OK
Sun Oct 18 17:33:39 2015 local2.info chat[3267]:  -- got it
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: send (ATE1^M)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: expect (OK)
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: ^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: AT&F^M^M
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: OK
Sun Oct 18 17:33:39 2015 local2.info chat[3267]:  -- got it
Sun Oct 18 17:33:39 2015 local2.info chat[3267]: send (AT+CGDCONT=1,"IP","internet"^M)
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: timeout set to 30 seconds
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: expect (OK)
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: ^M
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: ATE1^M^M
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: OK
Sun Oct 18 17:33:40 2015 local2.info chat[3267]:  -- got it
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: send (ATD*99***1#^M)
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: expect (CONNECT)
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: ^M
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: AT+CGDCONT=1,"IP","internet"^M^M
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: OK^M
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: ATD*99***1#^M^M
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: CONNECT
Sun Oct 18 17:33:40 2015 local2.info chat[3267]:  -- got it
Sun Oct 18 17:33:40 2015 local2.info chat[3267]: send ( ^M)
Sun Oct 18 17:33:40 2015 daemon.info pppd[3247]: Serial connection established.
Sun Oct 18 17:33:40 2015 daemon.info pppd[3247]: Using interface 3g-wan2
Sun Oct 18 17:33:40 2015 daemon.notice pppd[3247]: Connect: 3g-wan2 <--> /dev/ttyUSB0
Sun Oct 18 17:33:40 2015 kern.info kernel: [  127.480000] 3g-wan2: renamed from ppp0
Sun Oct 18 17:33:41 2015 daemon.info pppd[3247]: Terminating on signal 15
Sun Oct 18 17:33:41 2015 daemon.notice pppd[3247]: Connection terminated.
Sun Oct 18 17:33:41 2015 user.notice /usr/bin/simplefailover: Changing connection to backup wan: wan2
Sun Oct 18 17:33:42 2015 daemon.info pppd[3247]: Exit.
Sun Oct 18 17:33:42 2015 daemon.notice netifd: Interface 'wan2' is now down
Sun Oct 18 17:33:42 2015 daemon.notice netifd: Interface 'wan2' is setting up now
Sun Oct 18 17:33:42 2015 authpriv.notice dropbear[3181]: Password auth succeeded for 'root' from 192.168.1.241:51602
Sun Oct 18 17:33:44 2015 daemon.notice pppd[3477]: pppd 2.4.7 started by root, uid 0
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: abort on (BUSY)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: abort on (NO CARRIER)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: abort on (ERROR)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: report (CONNECT)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: timeout set to 10 seconds
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: send (AT&F^M)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: expect (OK)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: AT&F^M^M
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: OK
Sun Oct 18 17:33:45 2015 local2.info chat[3486]:  -- got it
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: send (ATE1^M)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: expect (OK)
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: ^M
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: ATE1^M^M
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: OK
Sun Oct 18 17:33:45 2015 local2.info chat[3486]:  -- got it
Sun Oct 18 17:33:45 2015 local2.info chat[3486]: send (AT+CGDCONT=1,"IP","internet"^M)
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: timeout set to 30 seconds
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: expect (OK)
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: ^M
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: AT+CGDCONT=1,"IP","internet"^M^M
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: OK
Sun Oct 18 17:33:46 2015 local2.info chat[3486]:  -- got it
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: send (ATD*99***1#^M)
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: expect (CONNECT)
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: ^M
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: ATD*99***1#^M^M
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: CONNECT
Sun Oct 18 17:33:46 2015 local2.info chat[3486]:  -- got it
Sun Oct 18 17:33:46 2015 local2.info chat[3486]: send ( ^M)
Sun Oct 18 17:33:46 2015 daemon.info pppd[3477]: Serial connection established.
Sun Oct 18 17:33:46 2015 kern.info kernel: [  133.410000] 3g-wan2: renamed from ppp0
Sun Oct 18 17:33:46 2015 daemon.info pppd[3477]: Using interface 3g-wan2
Sun Oct 18 17:33:46 2015 daemon.notice pppd[3477]: Connect: 3g-wan2 <--> /dev/ttyUSB0
Sun Oct 18 17:33:50 2015 daemon.warn pppd[3477]: Could not determine remote IP address: defaulting to 10.64.64.64
Sun Oct 18 17:33:50 2015 daemon.notice pppd[3477]: local  IP address 109.243.63.100
Sun Oct 18 17:33:50 2015 daemon.notice pppd[3477]: remote IP address 10.64.64.64
Sun Oct 18 17:33:50 2015 daemon.notice pppd[3477]: primary   DNS address 89.108.195.21
Sun Oct 18 17:33:50 2015 daemon.notice pppd[3477]: secondary DNS address 89.108.202.21
Sun Oct 18 17:33:50 2015 daemon.notice netifd: Network device '3g-wan2' link is up
Sun Oct 18 17:33:50 2015 daemon.notice netifd: Interface 'wan2' is now up
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: reading /tmp/resolv.conf.auto
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: using local addresses only for domain lan
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: using nameserver 8.8.8.8#53
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: using nameserver 213.199.198.248#53
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: using nameserver 82.160.1.1#53
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: using nameserver 89.108.195.21#53
Sun Oct 18 17:33:50 2015 daemon.info dnsmasq[2336]: using nameserver 89.108.202.21#53
Sun Oct 18 17:33:50 2015 daemon.notice netifd: Network alias '3g-wan2' link is up
Sun Oct 18 17:33:50 2015 daemon.notice netifd: Interface 'wan2_6' is enabled
Sun Oct 18 17:33:50 2015 daemon.notice netifd: Interface 'wan2_6' has link connectivity
Sun Oct 18 17:33:50 2015 daemon.notice netifd: Interface 'wan2_6' is setting up now
Sun Oct 18 17:33:50 2015 user.notice firewall: Reloading firewall due to ifup of wan2 (3g-wan2)
Sun Oct 18 17:35:22 2015 user.notice /usr/bin/simplefailover: Changing connection to main wan: wan
Sun Oct 18 17:35:22 2015 daemon.info pppd[3477]: Terminating on signal 15
Sun Oct 18 17:35:22 2015 daemon.info pppd[3477]: Connect time 1.6 minutes.
Sun Oct 18 17:35:22 2015 daemon.info pppd[3477]: Sent 104673 bytes, received 63683 bytes.
Sun Oct 18 17:35:22 2015 daemon.notice netifd: Network device '3g-wan2' link is down
Sun Oct 18 17:35:22 2015 daemon.notice netifd: Network alias '3g-wan2' link is down
Sun Oct 18 17:35:22 2015 daemon.notice netifd: Interface 'wan2_6' has link connectivity loss
Sun Oct 18 17:35:22 2015 daemon.notice pppd[3477]: Connection terminated.
Sun Oct 18 17:35:22 2015 daemon.info pppd[3477]: Exit.
Sun Oct 18 17:35:22 2015 daemon.notice netifd: Interface 'wan2' is now down
Sun Oct 18 17:35:22 2015 daemon.info dnsmasq[2336]: reading /tmp/resolv.conf.auto
Sun Oct 18 17:35:22 2015 daemon.info dnsmasq[2336]: using local addresses only for domain lan
Sun Oct 18 17:35:22 2015 daemon.info dnsmasq[2336]: using nameserver 8.8.8.8#53
Sun Oct 18 17:35:22 2015 daemon.info dnsmasq[2336]: using nameserver 213.199.198.248#53
Sun Oct 18 17:35:22 2015 daemon.info dnsmasq[2336]: using nameserver 82.160.1.1#53
Sun Oct 18 17:35:23 2015 daemon.notice netifd: Interface 'wan2_6' is now down
Sun Oct 18 17:35:23 2015 daemon.notice netifd: Interface 'wan2_6' is disabled
Sun Oct 18 17:35:26 2015 user.notice /usr/bin/simplefailover: Changing connection to main wan: wan

Czy to nie jest jakiś błąd simplefailover?

123

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Ok dzięki tongue

124

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Ok dzięki Cezary działa smile Powiedz jeszcze jak się zmienia kody na ten ciąg znaków?

Cezary napisał/a:

Więc zrób to w pdu. *108# to AA180C3702

125

(16 odpowiedzi, napisanych Oprogramowanie / Software)

Ok czyli to "send "AT+CUSD=1,\"AA582C3602\",15^m"" aby było tak "send "AT+CUSD=1,\"*108#\",15^m""?