1

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Rozszyłem przedłużkę USB i pod linie zasilające podpiąłem 5V zasilacz tak aby +5V poszło do modemu. GDN zostawiłem z routera. Od 8h działa i nie zerwał połączenia.

Czy mogę gdzieś w logach zobaczyć moment przepinania się modemu w innego BTS'a ?

2

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Jest to 842ND

3

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Mam zasilacz 1000mA do routera, czy jak wymienię zasilacz na większy to będzie OK?

Czy muszę osobno zasilić sam modem np. rozszyć przedłużkę USB i na linie zasilania podpiąć osobny zasilacz 5V ?

4

(6 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,

Mam Gargoyle 1.5.8.4 by osby. Włożony modem E3131 z karta Play i kartę microSD.

Router nawiązuje połączenie, jest widoczna karta microSD. Po 4-5 minutach następuje "odpięcie" modemu USB i nie zostaje wznowione połączenie. "reboot" powoduje, że wszystko wraca do normy ale tylko na kilka maksymalnie kilkanaście minut.

Modem jest wpięty od razu do USB. Nie ma hub'a USB.

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.03
S:  Manufacturer=Linux 3.3.8 ehci_hcd
S:  Product=Generic Platform EHCI 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#=  3 Spd=480  MxCh= 0
D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
P:  Vendor=12d1 ProdID=1506 Rev= 1.02
S:  Manufacturer=HUAWEI
S:  Product=HUAWEI Mobile
C:* #Ifs= 6 Cfg#= 1 Atr=80 MxPwr=500mA
I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=01 Driver=option
E:  Ad=81(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=82(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= 1 Cls=ff(vend.) Sub=02 Prot=16 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
I:  If#= 1 Alt= 1 #EPs= 3 Cls=ff(vend.) Sub=02 Prot=16 Driver=(none)
E:  Ad=83(I) Atr=03(Int.) MxPS=  64 Ivl=2ms
E:  Ad=84(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=ff(vend.) Sub=02 Prot=03 Driver=option
E:  Ad=85(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=03(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 3 Alt= 0 #EPs= 2 Cls=ff(vend.) Sub=02 Prot=02 Driver=option
E:  Ad=86(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=04(O) Atr=02(Bulk) MxPS= 512 Ivl=4ms
I:* If#= 4 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=05(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=87(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
I:* If#= 5 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
E:  Ad=06(O) Atr=02(Bulk) MxPS= 512 Ivl=0ms
E:  Ad=88(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.440000] usb 1-1: USB disconnect, device number 3
Dec 15 21:06:48 gargoyle daemon.notice pppd[2623]: Modem hangup
Dec 15 21:06:48 gargoyle daemon.info pppd[2623]: Connect time 5.2 minutes.
Dec 15 21:06:48 gargoyle daemon.info pppd[2623]: Sent 127321 bytes, received 117035 bytes.
Dec 15 21:06:48 gargoyle daemon.notice pppd[2623]: Connection terminated.
Dec 15 21:06:48 gargoyle kern.err kernel: [  398.450000] option: option_instat_callback: error -143
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.450000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.460000] option 1-1:1.0: device disconnected
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.460000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.470000] option 1-1:1.2: device disconnected
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.480000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.490000] option 1-1:1.3: device disconnected
Dec 15 21:06:48 gargoyle kern.notice kernel: [  398.510000] sd 3:0:0:0: [sda] Synchronizing SCSI cache
Dec 15 21:06:48 gargoyle kern.info kernel: [  398.510000] sd 3:0:0:0: [sda]  Result: hostbyte=0x01 driverbyte=0x00
Dec 15 21:06:48 gargoyle daemon.notice netifd: Interface 'wan' has lost the connection
Dec 15 21:06:49 gargoyle daemon.info pppd[2623]: Terminating on signal 15
Dec 15 21:06:49 gargoyle daemon.info pppd[2623]: Exit.
Dec 15 21:06:49 gargoyle daemon.notice netifd: Interface 'wan' is now down
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.230000] usb 1-1: new high-speed USB device number 4 using ehci-platform
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.380000] option 1-1:1.0: GSM modem (1-port) converter detected
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.390000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.390000] option 1-1:1.2: GSM modem (1-port) converter detected
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.400000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.410000] option 1-1:1.3: GSM modem (1-port) converter detected
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.410000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.440000] scsi4 : usb-storage 1-1:1.4
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.440000] scsi5 : usb-storage 1-1:1.5
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.530000] usb 1-1: USB disconnect, device number 4
Dec 15 21:06:49 gargoyle kern.err kernel: [  399.540000] option: option_instat_callback: error -143
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.540000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.550000] option 1-1:1.0: device disconnected
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.560000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.570000] option 1-1:1.2: device disconnected
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.570000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Dec 15 21:06:49 gargoyle kern.info kernel: [  399.580000] option 1-1:1.3: device disconnected
Dec 15 21:06:50 gargoyle kern.info kernel: [  399.890000] usb 1-1: new high-speed USB device number 5 using ehci-platform
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.040000] option 1-1:1.0: GSM modem (1-port) converter detected
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.050000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.050000] option 1-1:1.2: GSM modem (1-port) converter detected
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.060000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.070000] option 1-1:1.3: GSM modem (1-port) converter detected
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.070000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.090000] scsi6 : usb-storage 1-1:1.4
Dec 15 21:06:50 gargoyle kern.info kernel: [  400.090000] scsi7 : usb-storage 1-1:1.5
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.090000] scsi 6:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.110000] scsi 7:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.120000] sd 7:0:0:0: [sdb] 15278080 512-byte logical blocks: (7.82 GB/7.28 GiB)
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.140000] sd 7:0:0:0: [sdb] Write Protect is off
Dec 15 21:06:51 gargoyle kern.debug kernel: [  401.140000] sd 7:0:0:0: [sdb] Mode Sense: 0f 00 00 00
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.140000] sd 7:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.160000] usb 1-1: USB disconnect, device number 5
Dec 15 21:06:51 gargoyle kern.err kernel: [  401.160000] option: option_instat_callback: error -143
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.170000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.180000] option 1-1:1.0: device disconnected
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.180000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.190000] option 1-1:1.2: device disconnected
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.190000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.200000] option 1-1:1.3: device disconnected
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.230000] sd 7:0:0:0: [sdb] Attached SCSI removable disk
Dec 15 21:06:51 gargoyle kern.notice kernel: [  401.240000] sd 7:0:0:0: [sdb] Synchronizing SCSI cache
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.240000] sd 7:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
Dec 15 21:06:51 gargoyle kern.info kernel: [  401.550000] usb 1-1: new high-speed USB device number 6 using ehci-platform
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.700000] option 1-1:1.0: GSM modem (1-port) converter detected
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.710000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.710000] option 1-1:1.2: GSM modem (1-port) converter detected
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.720000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.730000] option 1-1:1.3: GSM modem (1-port) converter detected
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.730000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.750000] scsi8 : usb-storage 1-1:1.4
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.750000] scsi9 : usb-storage 1-1:1.5
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.920000] usb 1-1: USB disconnect, device number 6
Dec 15 21:06:52 gargoyle kern.err kernel: [  401.930000] option: option_instat_callback: error -143
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.940000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.940000] option 1-1:1.0: device disconnected
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.950000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.960000] option 1-1:1.2: device disconnected
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.960000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Dec 15 21:06:52 gargoyle kern.info kernel: [  401.970000] option 1-1:1.3: device disconnected
Dec 15 21:06:52 gargoyle kern.err kernel: [  401.990000] Buffer I/O error on device sda1, logical block 557056
Dec 15 21:06:52 gargoyle kern.warn kernel: [  401.990000] lost page write due to I/O error on sda1
Dec 15 21:06:52 gargoyle kern.err kernel: [  402.000000] JBD2: I/O error detected when updating journal superblock for sda1-8.
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.270000] usb 1-1: new high-speed USB device number 7 using ehci-platform
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.420000] option 1-1:1.0: GSM modem (1-port) converter detected
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.430000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB0
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.430000] option 1-1:1.2: GSM modem (1-port) converter detected
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.440000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB1
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.450000] option 1-1:1.3: GSM modem (1-port) converter detected
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.450000] usb 1-1: GSM modem (1-port) converter now attached to ttyUSB2
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.470000] scsi10 : usb-storage 1-1:1.4
Dec 15 21:06:52 gargoyle kern.info kernel: [  402.470000] scsi11 : usb-storage 1-1:1.5
Dec 15 21:06:53 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)
Dec 15 21:06:53 gargoyle kern.notice kernel: [  403.470000] scsi 10:0:0:0: CD-ROM            HUAWEI   Mass Storage     2.31 PQ: 0 ANSI: 2
Dec 15 21:06:53 gargoyle kern.notice kernel: [  403.480000] scsi 11:0:0:0: Direct-Access     HUAWEI   SD Storage       2.31 PQ: 0 ANSI: 2
Dec 15 21:06:53 gargoyle kern.notice kernel: [  403.490000] sd 11:0:0:0: [sdb] 15278080 512-byte logical blocks: (7.82 GB/7.28 GiB)
Dec 15 21:06:53 gargoyle kern.notice kernel: [  403.520000] sd 11:0:0:0: [sdb] Write Protect is off
Dec 15 21:06:53 gargoyle kern.debug kernel: [  403.520000] sd 11:0:0:0: [sdb] Mode Sense: 0f 00 00 00
Dec 15 21:06:53 gargoyle kern.notice kernel: [  403.520000] sd 11:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
Dec 15 21:06:53 gargoyle kern.info kernel: [  403.540000]  sdb: sdb1 sdb2
Dec 15 21:06:53 gargoyle kern.notice kernel: [  403.570000] sd 11:0:0:0: [sdb] Attached SCSI removable disk
Dec 15 21:06:54 gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:54 gargoyle user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:54 gargoyle user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:55 gargoyle user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:55 gargoyle user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:55 gargoyle user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:56 gargoyle daemon.notice netifd: Interface 'wan' is now down
Dec 15 21:06:58 gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:58 gargoyle user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:58 gargoyle user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:59 gargoyle user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:59 gargoyle user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:06:59 gargoyle user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:00 gargoyle daemon.notice netifd: wan (4329): Can't open device /dev/ttyUSB0.
Dec 15 21:07:00 gargoyle daemon.notice netifd: Interface 'wan' is now down
Dec 15 21:07:03 gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:03 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)
Dec 15 21:07:03 gargoyle user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:04 gargoyle user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:04 gargoyle user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:04 gargoyle user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:05 gargoyle user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:05 gargoyle daemon.notice netifd: Interface 'wan' is now down
Dec 15 21:07:07 gargoyle user.notice usb-modeswitch: 1-1:1.0: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:07 gargoyle user.notice usb-modeswitch: 1-1:1.1: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:08 gargoyle user.notice usb-modeswitch: 1-1:1.2: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:08 gargoyle user.notice usb-modeswitch: 1-1:1.3: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:09 gargoyle user.notice usb-modeswitch: 1-1:1.4: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:09 gargoyle user.notice usb-modeswitch: 1-1:1.5: Manufacturer=HUAWEI Product=HUAWEI_Mobile Serial=?
Dec 15 21:07:09 gargoyle kern.warn kernel: [  419.640000] head: sending ioctl 540d to a partition!
Dec 15 21:07:09 gargoyle kern.warn kernel: [  419.640000] head: sending ioctl 540d to a partition!
Dec 15 21:07:10 gargoyle daemon.notice netifd: wan (5217): Trying to set mode
Dec 15 21:07:10 gargoyle kern.warn kernel: [  420.080000] disktype: sending ioctl 5305 to a partition!
Dec 15 21:07:10 gargoyle kern.warn kernel: [  420.090000] disktype: sending ioctl 5305 to a partition!
Dec 15 21:07:11 gargoyle kern.info kernel: [  421.100000] EXT4-fs (sdb1): recovery complete
Dec 15 21:07:11 gargoyle kern.info kernel: [  421.110000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
Dec 15 21:07:11 gargoyle kern.warn kernel: [  421.250000] head: sending ioctl 540d to a partition!
Dec 15 21:07:11 gargoyle kern.warn kernel: [  421.260000] head: sending ioctl 540d to a partition!
Dec 15 21:07:12 gargoyle kern.warn kernel: [  421.900000] disktype: sending ioctl 5305 to a partition!
Dec 15 21:07:12 gargoyle kern.warn kernel: [  421.910000] disktype: sending ioctl 5305 to a partition!
Dec 15 21:07:12 gargoyle kern.info kernel: [  422.010000] EXT4-fs (sdb1): mounted filesystem with ordered data mode. Opts: (null)
Dec 15 21:07:12 gargoyle daemon.notice pppd[5503]: pppd 2.4.5 started by root, uid 0
Dec 15 21:07:12 gargoyle kern.warn kernel: [  422.170000] disktype: sending ioctl 5305 to a partition!
Dec 15 21:07:12 gargoyle kern.warn kernel: [  422.170000] disktype: sending ioctl 5305 to a partition!
Dec 15 21:07:12 gargoyle kern.info kernel: [  422.230000] Adding 381944k swap on /dev/sdb2.  Priority:-2 extents:1 across:381944k 
Dec 15 21:07:13 gargoyle local2.info chat[5513]: abort on (BUSY)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: abort on (NO CARRIER)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: abort on (ERROR)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: report (CONNECT)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: timeout set to 10 seconds
Dec 15 21:07:13 gargoyle local2.info chat[5513]: send (AT&F^M)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: expect (OK)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: AT&F^M^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: OK
Dec 15 21:07:13 gargoyle local2.info chat[5513]:  -- got it
Dec 15 21:07:13 gargoyle local2.info chat[5513]: send (ATE1^M)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: expect (OK)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: ^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: ATE1^M^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: OK
Dec 15 21:07:13 gargoyle local2.info chat[5513]:  -- got it
Dec 15 21:07:13 gargoyle local2.info chat[5513]: send (AT+CGDCONT=1,"IP","internet"^M)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: timeout set to 30 seconds
Dec 15 21:07:13 gargoyle local2.info chat[5513]: expect (OK)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: ^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: AT+CGDCONT=1,"IP","internet"^M^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: OK
Dec 15 21:07:13 gargoyle local2.info chat[5513]:  -- got it
Dec 15 21:07:13 gargoyle local2.info chat[5513]: send (ATD*99***1#^M)
Dec 15 21:07:13 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: expect (CONNECT)
Dec 15 21:07:13 gargoyle local2.info chat[5513]: ^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: ATD*99***1#^M^M
Dec 15 21:07:13 gargoyle local2.info chat[5513]: CONNECT
Dec 15 21:07:13 gargoyle local2.info chat[5513]:  -- got it
Dec 15 21:07:13 gargoyle local2.info chat[5513]: send ( ^M)
Dec 15 21:07:13 gargoyle daemon.info pppd[5503]: Serial connection established.
Dec 15 21:07:13 gargoyle daemon.info pppd[5503]: Using interface 3g-wan
Dec 15 21:07:13 gargoyle daemon.notice pppd[5503]: Connect: 3g-wan <--> /dev/ttyUSB0
Dec 15 21:07:15 gargoyle kern.info kernel: [  424.980000] usb 1-1: USB disconnect, device number 7
Dec 15 21:07:15 gargoyle daemon.notice pppd[5503]: Modem hangup
Dec 15 21:07:15 gargoyle daemon.notice pppd[5503]: Connection terminated.
Dec 15 21:07:15 gargoyle kern.err kernel: [  424.990000] option: option_instat_callback: error -143
Dec 15 21:07:15 gargoyle kern.info kernel: [  424.990000] option1 ttyUSB0: GSM modem (1-port) converter now disconnected from ttyUSB0
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.000000] option 1-1:1.0: device disconnected
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.000000] option1 ttyUSB1: GSM modem (1-port) converter now disconnected from ttyUSB1
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.010000] option 1-1:1.2: device disconnected
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.020000] option1 ttyUSB2: GSM modem (1-port) converter now disconnected from ttyUSB2
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.030000] option 1-1:1.3: device disconnected
Dec 15 21:07:15 gargoyle kern.notice kernel: [  425.040000] sd 11:0:0:0: [sdb] Synchronizing SCSI cache
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.040000] sd 11:0:0:0: [sdb]  Result: hostbyte=0x01 driverbyte=0x00
Dec 15 21:07:15 gargoyle daemon.info pppd[5503]: Exit.
Dec 15 21:07:15 gargoyle daemon.notice netifd: Interface 'wan' is now down
Dec 15 21:07:15 gargoyle kern.info kernel: [  425.340000] usb 1-1: new high-speed USB device number 8 using ehci-platform
Dec 15 21:07:15 gargoyle kern.err kernel: [  425.500000] hub 1-0:1.0: unable to enumerate USB device on port 1
Dec 15 21:07:24 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)
Dec 15 21:07:34 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)
Dec 15 21:07:44 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)
Dec 15 21:07:54 gargoyle daemon.err openvpn(custom_config)[3360]: write UDPv4 []: Network is unreachable (code=128)

Proszę o pomoc co może być nie tak.

5

(2 odpowiedzi, napisanych Oprogramowanie / Software)

Już rozłożyłem stanowisko do testowania. Wyczyszczę jutro i zobaczę co to dało.

Z innego klienta łączę się do sieci VPN bez problemu - o to chodziło?.

Router wygląda, że też się łączy - na tun0 przydzieliło mu prawidłowe ip 6.6.7.45

Niestety nie mam wglądu do logów serwera VPN, więc nie wiem czy rzeczywiście się router podłącza.

6

(2 odpowiedzi, napisanych Oprogramowanie / Software)

Witam,

TL-WR842ND skonfigurowałem tak aby pracował jako bridge client, wszystko działa ok. Chcę teraz skonfigurować OpenVPN'a i mam z tym problem. OpenVPN startuje i niby wszystko jest OK ale nie mogę z innego klienta pingować TL-WR842ND. Podejrzewam, że mam źle skonfigurowany firewall. Będe wdzięczny za pomoc jak poprawnie skonfigurować openvpn'a z bridge client.

network:

config interface 'loopback'
        option ifname 'lo'
        option proto 'static'
        option ipaddr '127.0.0.1'
        option netmask '255.0.0.0'

config interface 'lan'
        option ifname 'eth0'
        option type 'bridge'
        option proto 'static'
        option netmask '255.255.255.0'
        option ipaddr '192.168.0.1'

config interface 'wan'
        option ifname 'eth1'
        option proto 'dhcp'
        option type 'bridge'

config switch
        option name 'eth0'
        option reset '1'
        option enable_vlan '1'

config switch_vlan
        option device 'eth0'
        option vlan '1'
        option ports '0 1 2 3 4'

config interface 'wwan'
        option proto 'dhcp'

config interface 'stabridge'
        option proto 'relay'
        list network 'lan'
        list network 'wwan'
        option ipaddr '192.168.1.134'

wireless:

config wifi-device 'radio0'
        option type 'mac80211'
        option macaddr 'f8:d1:11:70:5e:7a'
        option hwmode '11ng'
        option htmode 'HT20'
        list ht_capab 'SHORT-GI-20'
        list ht_capab 'SHORT-GI-40'
        list ht_capab 'TX-STBC'
        list ht_capab 'RX-STBC1'
        list ht_capab 'DSSS_CCK-40'
        option disabled '0'
        option channel '6'
        option txpower '20'
        option country 'US'

config wifi-iface
        option network 'wwan'
        option ssid 'TP-LINK_C33CDC'
        option encryption 'psk2'
        option device 'radio0'
        option mode 'sta'
        option bssid 'F8:D1:11:4E:72:9A'
        option key 'xxxx'

dhcp:

config dnsmasq
        option domainneeded '1'
        option boguspriv '1'
        option filterwin2k '0'
        option localise_queries '1'
        option rebind_protection '1'
        option rebind_localhost '1'
        option local '/lan/'
        option domain 'lan'
        option expandhosts '1'
        option nonegcache '0'
        option authoritative '1'
        option readethers '1'
        option leasefile '/tmp/dhcp.leases'
        option resolvfile '/tmp/resolv.conf.auto'

config dhcp 'lan'
        option interface 'lan'
        option start '100'
        option limit '150'
        option leasetime '12h'
        option ignore '1'

config dhcp 'wan'
        option interface 'wan'
        option ignore '1'

firewall:

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

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

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

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-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'
        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 _name 'openvpn'
        option src 'stabridge'
        option target 'ACCEPT'
        option proto 'udp'
        option dest_port '1194'

firewall.user:

iptables -I OUTPUT -o tap+ -j ACCEPT
iptables -I INPUT -i tap+ -j ACCEPT
iptables -I FORWARD -o tap+ -j ACCEPT
iptables -I FORWARD -i tap+ -j ACCEPT
iptables -I OUTPUT -o tap+ -j ACCEPT
iptables -I INPUT -i tap+ -j ACCEPT
iptables -I FORWARD -o tap+ -j ACCEPT
iptables -I FORWARD -i tap+ -j ACCEPT
iptables -I OUTPUT -o tap+ -j ACCEPT
iptables -I INPUT -i tap+ -j ACCEPT
iptables -I FORWARD -o tap+ -j ACCEPT
iptables -I FORWARD -i tap+ -j ACCEPT
iptables -I OUTPUT -o tap+ -j ACCEPT
iptables -I INPUT -i tap+ -j ACCEPT
iptables -I FORWARD -o tap+ -j ACCEPT
iptables -I FORWARD -i tap+ -j ACCEPT

po uruchomieniu openvpn'a:

Tue Aug 21 21:01:06 2012 OpenVPN 2.2.2 mips-openwrt-linux [SSL] [LZO2] [EPOLL] built on May 31 2012
Tue Aug 21 21:01:06 2012 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.
Tue Aug 21 21:01:06 2012 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Tue Aug 21 21:01:06 2012 WARNING: file '/etc/openvpn/keys/client011.key' is group or others accessible
Tue Aug 21 21:01:06 2012 Control Channel MTU parms [ L:1557 D:138 EF:38 EB:0 ET:0 EL:0 ]
Tue Aug 21 21:01:06 2012 Socket Buffers: R=[163840->131072] S=[163840->131072]
Tue Aug 21 21:01:06 2012 Data Channel MTU parms [ L:1557 D:1450 EF:57 EB:4 ET:0 EL:0 ]
Tue Aug 21 21:01:06 2012 UDPv4 link local: [undef]
Tue Aug 21 21:01:06 2012 UDPv4 link remote: xx.xxx.xxx.xxx:xxxx
Tue Aug 21 21:01:06 2012 TLS: Initial packet from xx.xxx.xxx.xxx:xxxx, sid=02d6e6be 96c60c32
Tue Aug 21 21:01:06 2012 VERIFY OK: depth=1, /C=PL/ST=Poland/L=Katowice/O=net.xxx.org/CN=ca/emailAddress=ca@xxx.pl
Tue Aug 21 21:01:06 2012 VERIFY OK: depth=0, /C=PL/ST=Poland/O=net.xxx.org/CN=vpnser/emailAddress=vpnser@xxx.pl
Tue Aug 21 21:01:07 2012 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Tue Aug 21 21:01:07 2012 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 21 21:01:07 2012 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit key
Tue Aug 21 21:01:07 2012 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Tue Aug 21 21:01:07 2012 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Tue Aug 21 21:01:07 2012 [vpnser] Peer Connection Initiated with xx.xxx.xxx.xxx:xxxx
Tue Aug 21 21:01:09 2012 SENT CONTROL [vpnser]: 'PUSH_REQUEST' (status=1)
Tue Aug 21 21:01:09 2012 PUSH: Received control message: 'PUSH_REPLY,route 6.6.7.0 255.255.255.0,topology net30,ping 10,ping-restart 120,ifconfig 6.6.7.45 6.6.7.46'
Tue Aug 21 21:01:09 2012 OPTIONS IMPORT: timers and/or timeouts modified
Tue Aug 21 21:01:09 2012 OPTIONS IMPORT: --ifconfig/up options modified
Tue Aug 21 21:01:09 2012 OPTIONS IMPORT: route options modified
Tue Aug 21 21:01:09 2012 TUN/TAP device tun0 opened
Tue Aug 21 21:01:09 2012 TUN/TAP TX queue length set to 100
Tue Aug 21 21:01:09 2012 /sbin/ifconfig tun0 6.6.7.45 pointopoint 6.6.7.46 mtu 1500
Tue Aug 21 21:01:09 2012 /sbin/route add -net 6.6.7.0 netmask 255.255.255.0 gw 6.6.7.46
Tue Aug 21 21:01:09 2012 Initialization Sequence Completed