26

Odp: wr1043nd + icon505m + mac clone wisp

ifup 3g. Przecież tak się sekcja nazywa.

ifname na hso0 nie hs0

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

27

Odp: wr1043nd + icon505m + mac clone wisp

Ok. Ale dodanie ifname 'hso0' do 3g w network nic nie dalo, dalej 3ginfo pokazuje status rozłączony.

cat /etc/config/3ginfo

config '3ginfo'
        option 'http_port' '81'
        option 'device' '/dev/ttyHS1'

28

Odp: wr1043nd + icon505m + mac clone wisp

ifconfig pokaż.

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

29

Odp: wr1043nd + icon505m + mac clone wisp

W ogóle to teraz dziala mi ping na aero2 z konsoli, ale już z hosta w wlan nie mogę wyjść do internetu:

Badanie www.wp.pl [212.77.100.101] z użyciem 32 bajtów danych:

Odpowiedź z 192.168.1.1: Port docelowy jest nieosiągalny.
Odpowiedź z 192.168.1.1: Port docelowy jest nieosiągalny.
Odpowiedź z 192.168.1.1: Port docelowy jest nieosiągalny.
Odpowiedź z 192.168.1.1: Port docelowy jest nieosiągalny.

Statystyka badania ping dla 212.77.100.101:
    Pakiety: Wysłane = 4, Odebrane = 4, Utracone = 0 (0% straty),
Szacunkowy czas błądzenia pakietów w millisekundach:
    Minimum = 0 ms, Maksimum = 0 ms, Czas średni = 0 ms

ifconfig

3g-3g     Link encap:Point-to-Point Protocol
          inet addr:78.30.102.209  P-t-P:10.0.0.1  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:24 errors:0 dropped:0 overruns:0 frame:0
          TX packets:31 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1600 (1.5 KiB)  TX bytes:2030 (1.9 KiB)

br-lan    Link encap:Ethernet  HWaddr B0:48:7A:DB:26:E6
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:747 errors:0 dropped:0 overruns:0 frame:0
          TX packets:576 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:59340 (57.9 KiB)  TX bytes:65482 (63.9 KiB)



eth0      Link encap:Ethernet  HWaddr B0:48:7A:DB:26:E6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1615 errors:0 dropped:0 overruns:92588 frame:0
          TX packets:1103 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:282352 (275.7 KiB)  TX bytes:90651 (88.5 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr B0:48:7A:DB:26:E6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:87 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:10208 (9.9 KiB)

eth0.2    Link encap:Ethernet  HWaddr 00:55:7A:DB:26:E6
          inet addr:172.23.198.180  Bcast:172.23.198.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1567 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1015 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:255482 (249.4 KiB)  TX bytes:79400 (77.5 KiB)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:513 errors:0 dropped:0 overruns:0 frame:0
          TX packets:513 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:61376 (59.9 KiB)  TX bytes:61376 (59.9 KiB)

mon.wlan0 Link encap:UNSPEC  HWaddr B0-48-7A-DB-26-E6-00-00-00-00-00-00-00-00-00                                                                             -00
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:48356 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:9005935 (8.5 MiB)  TX bytes:0 (0.0 B)

wlan0     Link encap:Ethernet  HWaddr B0:48:7A:DB:26:E6
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:746 errors:0 dropped:0 overruns:0 frame:0
          TX packets:655 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:32
          RX bytes:69778 (68.1 KiB)  TX bytes:86458 (84.4 KiB)

30

Odp: wr1043nd + icon505m + mac clone wisp

Wracamy do początku tematu. 3ginfo dla hso spodziewa się istnienia interfejsu hso0 - dokładnie takiej nazwy. Ty nie masz takiego (masz 3g-3g) więc 3ginfo zawsze będzie twierdziło że jest "rozłączone".

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

31

Odp: wr1043nd + icon505m + mac clone wisp

jest wpis hso0 w network w sekcji 3g. Mam zmienić nazwę sekcji?

config 'interface' '3g'
        option 'auto' '1'
        option 'proto' '3g'
        option 'ifname' 'hso0'
        option 'device' '/dev/ttyHS2'
        option 'apn' 'darmowy'
        option 'service' 'umts'
        option 'mobile_isp' 'Poland - Aero2'
        option 'dns' '208.67.222.222 208.67.220.220'

i dlaczego teraz po zmianach nie chodzi połączenie z Lan'u?

32

Odp: wr1043nd + icon505m + mac clone wisp

Przywróć konfigurację taką jaka była.

Nazwa sekcji nie ma znaczenia dla 3ginfo. Nazwa interfejsu tak. W pliku /usr/share/3ginfo/cgi-bin/3ginfo.sh  w linii 294 zmień sobie IFACE="hso0" na IFACE="3g-3g"

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

33

Odp: wr1043nd + icon505m + mac clone wisp

Po zmianie IFACE na 3g-3g wreszcie poprawnie wskazuje połączenie, za to .....

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

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

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

config 'zone'
        option 'name' '3g'
        option 'input' 'REJECT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'
        option 'masq' '1'
        option 'mtu_fix' '1'

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

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-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-ICMPv6-Input'
        option 'src' 'wan'
        option 'proto' 'icmp'
        option 'limit' '1000/sec'
        option 'family' 'ipv6'
        option 'target' 'ACCEPT'
        list 'icmp_type' 'echo-request'
        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'

config 'rule'
        option 'name' 'Allow-ICMPv6-Forward'
        option 'src' 'wan'
        option 'dest' '*'
        option 'proto' 'icmp'
        option 'limit' '1000/sec'
        option 'family' 'ipv6'
        option 'target' 'ACCEPT'
        list 'icmp_type' 'echo-request'
        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'

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

config 'include'
        option 'path' '/usr/lib/gargoyle_firewall_util/gargoyle_additions.firewall'

Nie wiem czemu (pewnie coś w gargulcu zrobiłem), że teraz pakiety z Lan są forwardowane tylko do WAN, a do 3g mam REJECT?! Jak jest łącze po WAN wszystko jest ok, jak na Aero2 niestety destination port ureachable hmm

34

Odp: wr1043nd + icon505m + mac clone wisp

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

to masz źle. Dwie sekcja mają być.

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

config 'forwarding'
        option 'src' 'lan'
        option 'dest' '3g'

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

35

Odp: wr1043nd + icon505m + mac clone wisp

Tak swoją drogą to ten modem jest trochę inny. hso  a jednak łączy sie stanardowo jak inne modemy. Nie mówiąc o tym że części danych nie pokazuje. Zrób 3ginfo-test i pokaż wynik.

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

36

Odp: wr1043nd + icon505m + mac clone wisp

wynik z 3ginfo-test

+CSQ: 1,0
_OCTI: 0,2
_OWCTI: 4
+COPS: 0,2,"26017",2
+CREG: 2,0
+CGREG: 2,1,"C352","0001414C"
+CGEQNEG: 1,2,256,256,0,0,0,1500,"1E3","4E3",0,100,3,0,0
DEVICE:Option N.V. GI1505
---------------------------------------------------------------
/dev/tty     /dev/ttyHS0  /dev/ttyHS1  /dev/ttyHS2  /dev/ttyHS3  /dev/ttyS0
---------------------------------------------------------------

T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 1
B:  Alloc=  8/800 us ( 1%), #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= 2.06
S:  Manufacturer=Linux 2.6.32.27 ehci_hcd
S:  Product=Atheros AR91xx built-in EHCI controller
S:  SerialNumber=ar71xx-ehci
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#=  8 Spd=480 MxCh= 0
D:  Ver= 2.00 Cls=ff(vend.) Sub=ff Prot=ff MxPS=64 #Cfgs=  1
P:  Vendor=0af0 ProdID=d057 Rev= 1.00
S:  Manufacturer=Option Wireless Technology
S:  Product=GlobeTrotter GI1505
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=hso
E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=hso
E:  Ad=89(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=02(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 2 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=ff Prot=ff Driver=hso
E:  Ad=8a(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=8b(I) Atr=03(Int.) MxPS=  10 Ivl=125us
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=hso
E:  Ad=8c(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=ff Prot=ff Driver=hso
E:  Ad=8d(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=(none)
E:  Ad=8e(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
---------------------------------------------------------------

37

Odp: wr1043nd + icon505m + mac clone wisp

Nie, z parametrami wszystko gra.

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

38 (edytowany przez Szymon_Zy 2012-03-01 14:28:37)

Odp: wr1043nd + icon505m + mac clone wisp

Nie znam iptables, ale może skrypty od gargulca wymuszają forwardowanie tylko do WAN?

root@wr543g:~$ iptables --list
Chain INPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
syn_flood  tcp  --  anywhere             anywhere            tcp flags:FIN,SYN,RST,ACK/SYN
input_rule  all  --  anywhere             anywhere
input      all  --  anywhere             anywhere

Chain FORWARD (policy DROP)
target     prot opt source               destination
web_monitor  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
forwarding_rule  all  --  anywhere             anywhere
forward    all  --  anywhere             anywhere
reject     all  --  anywhere             anywhere

Chain OUTPUT (policy ACCEPT)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
ACCEPT     all  --  anywhere             anywhere
output_rule  all  --  anywhere             anywhere
output     all  --  anywhere             anywhere

Chain forward (1 references)
target     prot opt source               destination
zone_lan_forward  all  --  anywhere             anywhere

Chain forwarding_lan (1 references)
target     prot opt source               destination

Chain forwarding_rule (1 references)
target     prot opt source               destination

Chain forwarding_wan (1 references)
target     prot opt source               destination

Chain input (1 references)
target     prot opt source               destination
zone_lan   all  --  anywhere             anywhere

Chain input_lan (1 references)
target     prot opt source               destination

Chain input_rule (1 references)
target     prot opt source               destination

Chain input_wan (1 references)
target     prot opt source               destination

Chain output (1 references)
target     prot opt source               destination
zone_lan_ACCEPT  all  --  anywhere             anywhere
zone_wan_ACCEPT  all  --  anywhere             anywhere

Chain output_rule (1 references)
target     prot opt source               destination

Chain reject (3 references)
target     prot opt source               destination
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain syn_flood (1 references)
target     prot opt source               destination
RETURN     tcp  --  anywhere             anywhere            tcp flags:FIN,SYN,RST,ACK/SYN limit: avg 25/sec burst 50
DROP       all  --  anywhere             anywhere

Chain web_monitor (1 references)
target     prot opt source               destination
           all  --  anywhere             anywhere            WEBMON --max_domains 300 --max_searches 300

Chain zone_lan (1 references)
target     prot opt source               destination
input_lan  all  --  anywhere             anywhere
zone_lan_ACCEPT  all  --  anywhere             anywhere

Chain zone_lan_ACCEPT (2 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere

Chain zone_lan_DROP (0 references)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere
DROP       all  --  anywhere             anywhere

Chain zone_lan_REJECT (1 references)
target     prot opt source               destination
reject     all  --  anywhere             anywhere
reject     all  --  anywhere             anywhere

Chain zone_lan_forward (1 references)
target     prot opt source               destination
ACCEPT     all  --  anywhere             anywhere
zone_wan_ACCEPT  all  --  anywhere             anywhere
forwarding_lan  all  --  anywhere             anywhere
zone_lan_REJECT  all  --  anywhere             anywhere

Chain zone_wan (0 references)
target     prot opt source               destination
ACCEPT     udp  --  anywhere             anywhere            udp dpt:bootpc
ACCEPT     icmp --  anywhere             anywhere            icmp echo-request
input_wan  all  --  anywhere             anywhere
zone_wan_REJECT  all  --  anywhere             anywhere

Chain zone_wan_ACCEPT (2 references)
target     prot opt source               destination

Chain zone_wan_DROP (0 references)
target     prot opt source               destination

Chain zone_wan_REJECT (2 references)
target     prot opt source               destination

Chain zone_wan_forward (0 references)
target     prot opt source               destination
forwarding_wan  all  --  anywhere             anywhere
zone_wan_REJECT  all  --  anywhere             anywhere

zrzuciłem iptables --list (nie widzę w ogóle strefy 3g). Na końcu /etc/config/firewall jest include z gargoyle i może ona napisuje

config 'zone'
        option 'name' '3g'
        option 'input' 'REJECT'
        option 'output' 'ACCEPT'
        option 'forward' 'REJECT'
        option 'masq' '1'
        option 'mtu_fix' '1'

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

O ile dobrze pamiętam to po konfiguracji tylko 3g to 3g było jako WAN.

39

Odp: wr1043nd + icon505m + mac clone wisp

Sekcję forwarding masz źle...

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

40

Odp: wr1043nd + icon505m + mac clone wisp

To jak powinna być żeby simplefailover reagował na zmiany łącza? Przecież destination "wan" ma sens jak "wan" działa, a po przełączeniu na 3g powinien routować do "3g". Jak to trzeba zapisać?

41

Odp: wr1043nd + icon505m + mac clone wisp

Napisałem Ci post wyżej.

simplefailover nic z tym wspólnego nie ma. Masz tak zrobić, ze jak masz
ifdown 3g; ifup wan to masz internet
ifdown wam; ifup 3g to masz internet
Na takiej zasadzie działa simplefailover - sam w sobie nie bawi się w routing, trasy itd.

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

42

Odp: wr1043nd + icon505m + mac clone wisp

No to mam, ale teraz tylko na konsoli routera hmm A do lan forwardu z 3g nie mam hmm Będę googlać aż coś nie wymyślę.

43

Odp: wr1043nd + icon505m + mac clone wisp

Wywaliłem w ogóle Gargoyle. Jakoś mnie nie przekonuje, że nie wiem do konća co się dzieje bo Gargoyle robi co samo chce. Zainstalowałem obraz bez Gui. Poleciałem wg. Twojego opisu instalcji modemu (HSO i skrypty), konfiguracja połączenia wg. opisu:

config 'interface' 'HSDPA'
        option 'auto' '1'
        option 'proto' '3g'
        option 'device' '/dev/ttyHS2'
        option 'apn' 'darmowy'
        option 'service' 'umts'
        option 'mobile_isp' 'Poland - Aero2'
        option 'dns' '208.67.222.222 208.67.220.220'

firewall

config zone
        option name             HSDPA
        option input            REJECT
        option output           ACCEPT
        option forward          REJECT
        option masq             1

i ... powinno działać po ifup HSDPA. Tymczasem zapali się na chwilę niebieska dioda i zgaśnie. W logach jest:

Mar  2 11:11:39 OpenWrt daemon.info dnsmasq[1167]: reading /tmp/resolv.conf.auto
Mar  2 11:11:39 OpenWrt daemon.info dnsmasq[1167]: using nameserver 208.67.220.220#53
Mar  2 11:11:39 OpenWrt daemon.info dnsmasq[1167]: using nameserver 208.67.222.222#53
Mar  2 11:11:39 OpenWrt daemon.info dnsmasq[1167]: using nameserver 172.23.198.1#53
Mar  2 11:11:39 OpenWrt daemon.info dnsmasq[1167]: using local addresses only for domain lan
Mar  2 11:11:39 OpenWrt daemon.notice pppd[3175]: pppd 2.4.5 started by root, uid 0
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: abort on (BUSY)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: abort on (NO CARRIER)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: abort on (ERROR)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: report (CONNECT)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: timeout set to 10 seconds
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: send (AT&F^M)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: expect (OK)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: AT&F^M^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: OK
Mar  2 11:11:40 OpenWrt local2.info chat[3180]:  -- got it
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: send (ATE1^M)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: expect (OK)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: ^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: ATE1^M^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: OK
Mar  2 11:11:40 OpenWrt local2.info chat[3180]:  -- got it
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: timeout set to 30 seconds
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: expect (OK)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: ^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: AT+CGDCONT=1,"IP","darmowy"^M^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: OK
Mar  2 11:11:40 OpenWrt local2.info chat[3180]:  -- got it
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: send (ATD*99***1#^M)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: expect (CONNECT)
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: ^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: ATD*99***1#^M^M
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: CONNECT
Mar  2 11:11:40 OpenWrt local2.info chat[3180]:  -- got it
Mar  2 11:11:40 OpenWrt local2.info chat[3180]: send ( ^M)
Mar  2 11:11:40 OpenWrt daemon.info pppd[3175]: Serial connection established.
Mar  2 11:11:40 OpenWrt daemon.info pppd[3175]: Using interface 3g-HSDPA
Mar  2 11:11:40 OpenWrt daemon.notice pppd[3175]: Connect: 3g-HSDPA <--> /dev/ttyHS2
Mar  2 11:11:42 OpenWrt daemon.info pppd[3175]: LCP terminated by peer (001b: Normal Termination by NCP)

Co to jest to LCP terminated by peer? W ogóle nie pobiera adresu przez ppp.

44

Odp: wr1043nd + icon505m + mac clone wisp

Dodaj sobie do opcji ppp debug i pokaż o co mu biega. Dodanie noipdefault też rozwiązuje zwykle pewne problemy.

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

45

Odp: wr1043nd + icon505m + mac clone wisp

Mar  2 11:44:10 OpenWrt daemon.info dnsmasq[1167]: reading /tmp/resolv.conf.auto
Mar  2 11:44:10 OpenWrt daemon.info dnsmasq[1167]: using nameserver 208.67.220.220#53
Mar  2 11:44:10 OpenWrt daemon.info dnsmasq[1167]: using nameserver 208.67.222.222#53
Mar  2 11:44:10 OpenWrt daemon.info dnsmasq[1167]: using nameserver 172.23.198.1#53
Mar  2 11:44:10 OpenWrt daemon.info dnsmasq[1167]: using local addresses only for domain lan
Mar  2 11:44:10 OpenWrt daemon.notice pppd[5270]: pppd 2.4.5 started by root, uid 0
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: abort on (BUSY)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: abort on (NO CARRIER)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: abort on (ERROR)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: report (CONNECT)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: timeout set to 10 seconds
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: send (AT&F^M)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: expect (OK)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: AT&F^M^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: OK
Mar  2 11:44:11 OpenWrt local2.info chat[5275]:  -- got it
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: send (ATE1^M)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: expect (OK)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: ^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: ATE1^M^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: OK
Mar  2 11:44:11 OpenWrt local2.info chat[5275]:  -- got it
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: send (AT+CGDCONT=1,"IP","darmowy"^M)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: timeout set to 30 seconds
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: expect (OK)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: ^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: AT+CGDCONT=1,"IP","darmowy"^M^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: OK
Mar  2 11:44:11 OpenWrt local2.info chat[5275]:  -- got it
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: send (ATD*99***1#^M)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: expect (CONNECT)
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: ^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: ATD*99***1#^M^M
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: CONNECT
Mar  2 11:44:11 OpenWrt local2.info chat[5275]:  -- got it
Mar  2 11:44:11 OpenWrt local2.info chat[5275]: send ( ^M)
Mar  2 11:44:11 OpenWrt daemon.debug pppd[5270]: Script USE_APN=darmowy /usr/sbin/chat -t5 -v -E -f /etc/chatscripts/3g.chat finished (pid 5274), status = 0x0
Mar  2 11:44:11 OpenWrt daemon.info pppd[5270]: Serial connection established.
Mar  2 11:44:11 OpenWrt daemon.debug pppd[5270]: using channel 83
Mar  2 11:44:11 OpenWrt daemon.info pppd[5270]: Using interface 3g-HSDPA
Mar  2 11:44:11 OpenWrt daemon.notice pppd[5270]: Connect: 3g-HSDPA <--> /dev/ttyHS2
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0xe43e7457>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: rcvd [LCP ProtRej id=0x0 20 0d 7e 21 06 94 55 ce a8 30 57 ce a8 01 55 ce a8 06 00 00 00 c1 00 00 00 00 00 00 00 b9 00 00 ...]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: rcvd [LCP ConfReq id=0x1 <mru 1600> <auth chap MD5> <magic 0x5efa783b> <asyncmap 0x0> <pcomp> <accomp>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: No auth is possible
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: sent [LCP ConfRej id=0x1 <auth chap MD5> <pcomp> <accomp>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: rcvd [LCP ConfAck id=0x1 <asyncmap 0x0> <magic 0xe43e7457>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: rcvd [LCP ConfReq id=0x2 <mru 1600> <magic 0x5efa783b> <asyncmap 0x0>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: sent [LCP ConfAck id=0x2 <mru 1600> <magic 0x5efa783b> <asyncmap 0x0>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: sent [LCP EchoReq id=0x0 magic=0xe43e7457]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: sent [IPCP ConfReq id=0x1 <addr 192.168.1.1>]
Mar  2 11:44:12 OpenWrt daemon.debug pppd[5270]: rcvd [LCP EchoRep id=0x0 magic=0x5efa783b]
Mar  2 11:44:13 OpenWrt daemon.debug pppd[5270]: sent [LCP EchoReq id=0x1 magic=0xe43e7457]
Mar  2 11:44:13 OpenWrt daemon.debug pppd[5270]: rcvd [LCP EchoRep id=0x1 magic=0x5efa783b]
Mar  2 11:44:13 OpenWrt daemon.debug pppd[5270]: rcvd [LCP TermReq id=0x0 "001b: Normal Termination by NCP"]
Mar  2 11:44:13 OpenWrt daemon.info pppd[5270]: LCP terminated by peer (001b: Normal Termination by NCP)
Mar  2 11:44:13 OpenWrt daemon.debug pppd[5270]: sent [LCP TermAck id=0x0]

No auth is possible?

46

Odp: wr1043nd + icon505m + mac clone wisp

Wielkie dzięki! Noipdefault pomogłow mam 3g-HSPA.

47

Odp: wr1043nd + icon505m + mac clone wisp

Tak, bo nie autoryzujesz się jakoś specjalnie.

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

48 (edytowany przez Szymon_Zy 2012-03-02 13:54:08)

Odp: wr1043nd + icon505m + mac clone wisp

Za to mam małą niespodziankę. Po: ifup wan
dostaję:

udhcpc (v1.15.3) started
Sending discover...
Sending select for 172.23.198.168...
Lease of 172.23.198.168 obtained, lease time 268435455
udhcpc: ifconfig eth0.2 172.23.198.168 netmask 255.255.255.0 broadcast +
udhcpc: setting default routers: 172.23.198.1
udhcpc: setting dns servers: 172.23.198.1
udhcpc: setting dns domain: XXXXXXXXXXX.czest.pl

i nie wraca mi do wiersza poleceń do póki nie wcisnę Return ;-) Interfejs działa, ale system wciąż czeka na wciśnięcie Entera, więc przypuszczam, że simplefailover może nie zadziałać poprawnie. ifdown wan, ifup HSDPA i w lan jest net. ifdown HSDPA, ifup wan (ENTER) i w lan jest net.

WAN mam opisany:

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

AAAAAAAAAAAAAA Nevermind .... udhcpc wywala debug, który jest z poślizgiem i wygląda, że konsola wisi mam złudzenie optyczne. Po ifup wan, pojawia sie prompt, a potem debug.


EDIT:
Wszystko działa poprawnie! SimpleFailOver i 3ginfo (musiałem wyedytować na sztywno nazwę fejsu na 3g-HSDPA). Jednak wersja bez Gargoyle jest lepsza - przynajmniej nie ma niespodzianek powodowanych przez edycję w GUI. Czy Luci też tak mocno ingeruje samo z siebie w pliki konfiguracji?

49

Odp: wr1043nd + icon505m + mac clone wisp

Do 3ginfo przygotowałem już poprawkę na tą okoliczność, żeby rozpoznawało taki przypadek jak Twój.

Gargoyle przypomina bardziej oddzielną dystrybucję z narzuconym schematem ustawień. Luci jest tylko nakładką na uci, przez co jest bardzo niestrawne w ustawieniach, ale obejmuje większość ustawień jakie możesz zrobić.

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