26

Odp: problem z openVPN na Gargoyle

odinstalowałem moduły:

root@OpenWrt:~# opkg remove kmod-leds-gpio
Removing package kmod-leds-gpio from root...
root@OpenWrt:~# opkg remove kmod-input-gpio-buttons
Removing package kmod-input-gpio-buttons from root...
root@OpenWrt:~#

no i efekt smile

USB Mass Storage support registered.
fuse init (API version 7.13)
CPU 0 Unable to handle kernel paging request at virtual address 00000006, epc == 801dafc5, ra == 801e37f8
Oops[#1]:
Cpu 0
$ 0   : 00000000 0046f621 801dafc5 03ff0000
$ 4   : 819f3780 00000000 00000000 00000000
$ 8   : 00000001 802c20d8 2d56b8d3 afc5459c
$12   : 819d9b40 00000011 819d9e20 00460000
$16   : 819f3780 80305808 819f3834 80305828
$20   : 81ade400 00000000 00000000 802c20e8
$24   : 00000001 80a23611
$28   : 819d8000 819d9c58 00000001 801e37f8
Hi    : 00000122
Lo    : 00118073
epc   : 801dafc5 0x801dafc5
    Not tainted
ra    : 801e37f8 0x801e37f8
Status: 1000dc03    KERNEL EXL IE
Cause : 00800008
BadVA : 00000006
PrId  : 00019374 (MIPS 24Kc)
Modules linked in: fuse usb_storage nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ehci_hcd sd_mod pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ext2 ext3 jbd tun ppp_async ppp_generic slhc vfat fat ext4 jbd2 ath9k ath9k_common ath9k_hw ath nls_iso8859_1 nls_cp437 mac80211 usbcore scsi_mod nls_base mbcache crc16 crc_ccitt cfg80211 compat_firmware_class compat arc4 aes_generic deflate ecb cbc leds_gpio button_hotplug gpio_buttons input_polldev input_core
Process openvpn (pid: 1111, threadinfo=819d8000, task=81b7fae8, tls=00000000)
Stack : 81b00780 819e6d20 819e6d20 801e0cd8 00000011 819f3780 80305808 801e3464
        00000000 81b7fae8 00000000 00000000 819f3780 801ec328 00000018 00000000
        819d9c70 800e9c78 00100100 00200200 00000001 ffff9986 802c20d8 802c20dc
        802c20f4 802c0000 00000040 801ec428 81ade724 c0a80164 81b00780 ffff9986
        802c20f4 00000040 00000000 0000012c 802c20d8 ffff9988 80300000 801ecb94
        ...
Call Trace:[<801e0cd8>] 0x801e0cd8
[<801e3464>] 0x801e3464
[<801ec328>] 0x801ec328
[<800e9c78>] 0x800e9c78
[<801ec428>] 0x801ec428
[<801ecb94>] 0x801ecb94
[<80213458>] 0x80213458
[<80212c74>] 0x80212c74
[<8008295c>] 0x8008295c
[<80082a3c>] 0x80082a3c
[<801ecce4>] 0x801ecce4
[<80975ce0>] 0x80975ce0
[<800d9058>] 0x800d9058
[<800925a4>] 0x800925a4
[<80072ae4>] 0x80072ae4
[<800d9ca0>] 0x800d9ca0
[<800d9e58>] 0x800d9e58
[<800e8f74>] 0x800e8f74
[<80062544>] 0x80062544
[<80082070>] 0x80082070


Code: 0060  27bd  ff98 <8fa3> 007c  8fa2  0078  afb2  0060
Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Fatal exception in interrupt
Rebooting in 3 seconds..

TL-WR1043ND + Gargoyle PL || WRT54GL

27

Odp: problem z openVPN na Gargoyle

Coś się ładnie wykłada. Teraz tak jakby pamięci mu brakowało.

PS. wyinstalowałeś, ale nie wywaliłeś modułów z pamięci. zobacz listę modułów.

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

28

Odp: problem z openVPN na Gargoyle

root@OpenWrt:~# lsmod
Module                  Size  Used by    Not tainted
fuse                   46080  0
usb_storage            32720  0
nf_nat_tftp              432  0
nf_conntrack_tftp       2400  1 nf_nat_tftp
nf_nat_irc               816  0
nf_conntrack_irc        2512  1 nf_nat_irc
nf_nat_ftp              1328  0
nf_conntrack_ftp        4640  1 nf_nat_ftp
ipt_MASQUERADE           992  1
iptable_nat             2256  1
nf_nat                 10160  5 nf_nat_tftp,nf_nat_irc,nf_nat_ftp,ipt_MASQUERADE,iptable_nat
xt_NOTRACK               544  0
iptable_raw              656  1
xt_state                 768  3
nf_conntrack_ipv4       7376  6 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           37744 12 nf_nat_tftp,nf_conntrack_tftp,nf_nat_irc,nf_conntrack_irc,nf_nat_ftp,nf_conntrack_ftp,ipt_MASQUERADE,iptable_nat,nf_nat,xt_NOTRACK,xt_state,nf_conntrack_ipv4
ehci_hcd               31456  0
sd_mod                 21616  0
pppoe                   8304  0
pppox                   1216  1 pppoe
ipt_REJECT              1680  2
xt_TCPMSS               1856  2
ipt_LOG                 4176  0
xt_comment               464  0
xt_multiport            1792  0
xt_mac                   576  0
xt_limit                1008  1
iptable_mangle           992  0
iptable_filter           768  1
ip_tables               8544  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1760  6
x_tables                9296 13 ipt_MASQUERADE,iptable_nat,xt_NOTRACK,xt_state,ipt_REJECT,xt_TCPMSS,ipt_LOG,xt_comment,xt_multiport,xt_mac,xt_limit,ip_tables,xt_tcpudp
ext2                   42224  0
ext3                   91248  0
jbd                    31376  1 ext3
tun                    10048  2
ppp_async               6400  0
ppp_generic            18848  3 pppoe,pppox,ppp_async
slhc                    4160  1 ppp_generic
vfat                    7712  0
fat                    42496  1 vfat
ext4                  210400  0
jbd2                   36544  1 ext4
ath9k                  78272  0
ath9k_common            1136  1 ath9k
ath9k_hw              255152  2 ath9k,ath9k_common
ath                    11712  3 ath9k,ath9k_common,ath9k_hw
nls_iso8859_1           2832  0
nls_cp437               4368  0
mac80211              193824  1 ath9k
usbcore                97520  3 usb_storage,ehci_hcd
scsi_mod               68224  2 usb_storage,sd_mod
nls_base                4800  5 vfat,fat,nls_iso8859_1,nls_cp437,usbcore
mbcache                 3920  1 ext4
crc16                    976  1 ext4
crc_ccitt                976  1 ppp_async
cfg80211              113472  2 ath9k,mac80211
compat_firmware_class     4672  0
compat                  1776  1 cfg80211
arc4                     816  2
aes_generic            30256  0
deflate                 1360  0
ecb                     1328  2
cbc                     2016  0
leds_gpio               1456  0
button_hotplug          2576  0
gpio_buttons            2128  0
input_polldev           1360  1 gpio_buttons
input_core             17056  4 button_hotplug,gpio_buttons,input_polldev

TL-WR1043ND + Gargoyle PL || WRT54GL

29

Odp: problem z openVPN na Gargoyle

zrobic rmmod na
gpio_buttons
leds_gpio
??

TL-WR1043ND + Gargoyle PL || WRT54GL

30

Odp: problem z openVPN na Gargoyle

gpio_buttons nadal masz...

I jeszcze parę rzeczy - tftp, ext2/ext3/ext4/vfat itd jak nie używasz tego.

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

31

Odp: problem z openVPN na Gargoyle

U-Boot 1.1.4 (Nov 17 2009 - 11:56:26)

AP83 (ar9100) U-boot 0.0.11
DRAM:
sri
32 MB
id read 0x100000ff
flash size 8MB, sector count = 128
Flash:  8 MB
Using default environment

In:    serial
Out:   serial
Err:   serial
Net:   ag7100_enet_initialize...
No valid address in Flash. Using fixed address
: cfg1 0xf cfg2 0x7114
eth0: 00:03:7f:09:0b:ad
eth0 up
eth0
Autobooting in 1 seconds## Booting image at bf020000 ...
   Uncompressing Kernel Image ... OK

Starting kernel ...

Linux version 2.6.32.25 (cezary@eko.one.pl) (gcc version 4.3.3 (GCC) ) #37 Wed Nov 24 15:37:44 CET 2010
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9132 rev 2, CPU:400.000 MHz, AHB:200.000 MHz, DDR:400.000 MHz
Determined physical RAM map:
memory: 02000000 @ 00000000 (usable)
Initrd not found or empty - disabling initrd
Zone PFN ranges:
  Normal   0x00000000 -> 0x00002000
Movable zone start PFN for each node
early_node_map[1] active PFN ranges
    0: 0x00000000 -> 0x00002000
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=TL-WR1043ND
PID hash table entries: 128 (order: -3, 512 bytes)
Dentry cache hash table entries: 4096 (order: 2, 16384 bytes)
Inode-cache hash table entries: 2048 (order: 1, 8192 bytes)
Primary instruction cache 64kB, VIPT, 4-way, linesize 32 bytes.
Primary data cache 32kB, 4-way, VIPT, cache aliases, linesize 32 bytes
Writing ErrCtl register=00000000
Readback ErrCtl register=00000000
Memory: 29356k/32768k available (2067k kernel code, 3412k reserved, 390k data, 152k init, 0k highmem)
SLUB: Genslabs=7, HWalign=32, Order=0-3, MinObjects=0, CPUs=1, Nodes=1
Hierarchical RCU implementation.
NR_IRQS:56
Calibrating delay loop... 266.24 BogoMIPS (lpj=1331200)
Mount-cache hash table entries: 512
NET: Registered protocol family 16
MIPS: machine is TP-LINK TL-WR1043ND
bio: create slab <bio-0> at 0
Switching to clocksource MIPS
NET: Registered protocol family 2
IP route cache hash table entries: 1024 (order: 0, 4096 bytes)
TCP established hash table entries: 1024 (order: 1, 8192 bytes)
TCP bind hash table entries: 1024 (order: 0, 4096 bytes)
TCP: Hash tables configured (established 1024 bind 1024)
TCP reno registered
NET: Registered protocol family 1
squashfs: version 4.0 (2009/01/31) Phillip Lougher
Registering mini_fo version $Id$
JFFS2 version 2.2. (NAND) (SUMMARY)  Š 2001-2006 Red Hat, Inc.
yaffs Nov 13 2010 09:51:54 Installing.
msgmni has been set to 57
io scheduler noop registered
io scheduler deadline registered (default)
Serial: 8250/16550 driver, 1 ports, IRQ sharing disabled
serial8250.0: ttyS0 at MMIO 0x18020000 (irq = 11) is a 16550A
console [ttyS0] enabled, bootconsole disabled
console [ttyS0] enabled, bootconsole disabled
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: s25sl064a (8192 Kbytes)
Searching for RedBoot partition table in spi0.0 at offset 0x7e0000
Searching for RedBoot partition table in spi0.0 at offset 0x7f0000
No RedBoot partition table detected in spi0.0
spi0.0: no WRT160NL signature found
Creating 5 MTD partitions on "spi0.0":
0x000000000000-0x000000020000 : "u-boot"
0x000000020000-0x000000160000 : "kernel"
0x000000160000-0x0000007f0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=420000, len=3D0000
0x000000420000-0x0000007f0000 : "rootfs_data"
0x0000007f0000-0x000000800000 : "art"
0x000000020000-0x0000007f0000 : "firmware"
Realtek RTL8366RB ethernet switch driver version 0.2.2
rtl8366rb rtl8366rb: using GPIO pins 18 (SDA) and 19 (SCK)
rtl8366rb rtl8366rb: RTL5937 ver. 3 chip found
rtl8366rb: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Atheros AR71xx hardware watchdog driver version 0.1.0
TCP westwood registered
NET: Registered protocol family 17
802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
All bugs added by David S. Miller <davem@redhat.com>
VFS: Mounted root (squashfs filesystem) readonly on device 31:2.
Freeing unused kernel memory: 152k freed
Please be patient, while OpenWrt loads ...
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
eth0: link up (1000Mbps/Full duplex)
- preinit -
Registered led device: tl-wr1043nd:green:usb
Registered led device: tl-wr1043nd:green:system
Registered led device: tl-wr1043nd:green:qss
Registered led device: tl-wr1043nd:green:wlan
Press the [f] key and hit [enter] to enter failsafe mode
- regular preinit -
switching to jffs2
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
- init -
eth0: link down

Please press Enter to activate this console. eth0: link up (1000Mbps/Full duplex)
Compat-wireless backport release: compat-wireless-2010-10-14-7-gab01eca
Backport based on wireless-testing.git master-2010-10-19
device eth0.1 entered promiscuous mode
device eth0 entered promiscuous mode
br-lan: port 1(eth0.1) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
cfg80211: World regulatory domain updated:
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (2457000 KHz - 2482000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (2474000 KHz - 2494000 KHz @ 20000 KHz), (300 mBi, 2000 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
ieee80211 phy0: Atheros AR9100 MAC/BB Rev:0 AR2133 RF Rev:a2 mem=0xb80c0000, irq=2
cfg80211: Calling CRDA for country: US
cfg80211: Regulatory domain changed to country: US
    (start_freq - end_freq @ bandwidth), (max_antenna_gain, max_eirp)
    (2402000 KHz - 2472000 KHz @ 40000 KHz), (300 mBi, 2700 mBm)
    (5170000 KHz - 5250000 KHz @ 40000 KHz), (300 mBi, 1700 mBm)
    (5250000 KHz - 5330000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5490000 KHz - 5600000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5650000 KHz - 5710000 KHz @ 40000 KHz), (300 mBi, 2000 mBm)
    (5735000 KHz - 5835000 KHz @ 40000 KHz), (300 mBi, 3000 mBm)
PPP generic driver version 2.4.2
tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
ehci_hcd: USB 2.0 'Enhanced' Host Controller (EHCI) Driver
ar71xx-ehci ar71xx-ehci: Atheros AR91xx built-in EHCI controller
ar71xx-ehci ar71xx-ehci: new USB bus registered, assigned bus number 1
ar71xx-ehci ar71xx-ehci: irq 3, io mem 0x1b000000
ar71xx-ehci ar71xx-ehci: USB 2.0 started, EHCI 1.00
usb usb1: configuration #1 chosen from 1 choice
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 1 port detected
nf_conntrack version 0.5.0 (461 buckets, 1844 max)
CONFIG_NF_CT_ACCT is deprecated and will be removed soon. Please use
nf_conntrack.acct=1 kernel parameter, acct=1 nf_conntrack module option or
sysctl net.netfilter.nf_conntrack_acct=1 to enable it.
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
fuse init (API version 7.13)


Kernel unaligned instruction access[#1]:
Cpu 0
$ 0   : 00000000 0046f63a 801d0806 03ff0000
$ 4   : 819fbb40 00000000 00000000 00000000
$ 8   : 00000001 802c20d8 00000010 08060001
$12   : 08000604 0000002a 80a2de20 000100ff
$16   : 819fbb40 80305808 819fbbf4 80305828
$20   : 8090cc00 00000000 00000000 802c20e8
$24   : 00000010 81a9f42a
$28   : 80a2c000 80a2dc58 00000001 801e37f8
Hi    : 0000000f
Lo    : 000ff9d4
epc   : 801d0806 0x801d0806
    Not tainted
ra    : 801e37f8 0x801e37f8
Status: 1000dc03    KERNEL EXL IE
Cause : 10800010
BadVA : 801d0806
PrId  : 00019374 (MIPS 24Kc)
Modules linked in: fuse usb_storage nf_nat_tftp nf_conntrack_tftp nf_nat_irc nf_conntrack_irc nf_nat_ftp nf_conntrack_ftp ipt_MASQUERADE iptable_nat nf_nat xt_NOTRACK iptable_raw xt_state nf_conntrack_ipv4 nf_defrag_ipv4 nf_conntrack ehci_hcd sd_mod pppoe pppox ipt_REJECT xt_TCPMSS ipt_LOG xt_comment xt_multiport xt_mac xt_limit iptable_mangle iptable_filter ip_tables xt_tcpudp x_tables ext2 ext3 jbd tun ppp_async ppp_generic slhc vfat fat ext4 jbd2 ath9k ath9k_common ath9k_hw ath nls_iso8859_1 nls_cp437 mac80211 usbcore scsi_mod nls_base mbcache crc16 crc_ccitt cfg80211 compat_firmware_class compat arc4 aes_generic deflate ecb cbc leds_gpio button_hotplug gpio_buttons input_polldev input_core
Process openvpn (pid: 1112, threadinfo=80a2c000, task=808f28c8, tls=00000000)
Stack : 808db870 80a2dd34 00000011 80988d50 81a6ac00 819fbb40 80305808 801e3464
        00000000 c0a80164 00000000 00000000 819fbb40 801ec328 00000000 00000000
        00000000 00000000 00000000 00000000 00000001 ffffa376 802c20d8 802c20dc
        802c20f4 802c0000 00000040 801ec428 c0d86000 81bf6144 00000000 809865fc
        802c20f4 00000040 00000000 0000012c 802c20d8 ffffa378 80300000 801ecb94
        ...
Call Trace:[<801e3464>] 0x801e3464
[<801ec328>] 0x801ec328
[<801ec428>] 0x801ec428
[<809865fc>] 0x809865fc
[<801ecb94>] 0x801ecb94
[<8008295c>] 0x8008295c
[<80082a3c>] 0x80082a3c
[<801ecce4>] 0x801ecce4
[<808bdce0>] 0x808bdce0
[<800d9058>] 0x800d9058
[<80213368>] 0x80213368
[<801e59b4>] 0x801e59b4
[<800925a4>] 0x800925a4
[<801ec428>] 0x801ec428
[<801ecb94>] 0x801ecb94
[<800d9ca0>] 0x800d9ca0
[<8008295c>] 0x8008295c
[<800d9e58>] 0x800d9e58
[<80062544>] 0x80062544
[<80082070>] 0x80082070


Code: 0024afbf  002cafa0  0018afa0 <001c0c07> 3fbd0080  80211040  00070040  88210c06  98458e04
Disabling lock debugging due to kernel taint
Kernel panic - not syncing: Fatal exception in interrupt
Rebooting in 3 seconds..

Czyli wywalać dalej jakieś moduły?

TL-WR1043ND + Gargoyle PL || WRT54GL

32

Odp: problem z openVPN na Gargoyle

leds_gpio button_hotplug gpio_buttons nadal to masz...

Nie ma sensu - coś wyraźnie mu nie pasuje. Poczekaj, przekompiluję Ci gagroyle i openvpn do niego.

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

33

Odp: problem z openVPN na Gargoyle

Dzięki smile

TL-WR1043ND + Gargoyle PL || WRT54GL

34

Odp: problem z openVPN na Gargoyle

http://ecco.selfip.net/test/x/

Zrób upgrade gargoyle, a potem zainstaluj te pakiety ode mnie. Koniecznie ode mnie, nie z repo openwrt. Jak czegoś brakuje to mów.

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

35

Odp: problem z openVPN na Gargoyle

Wielkie dzięki.
Dzisiaj mogę już z tym nie dać rady.
Pokombinuję jutro i dam znać smile

TL-WR1043ND + Gargoyle PL || WRT54GL

36

Odp: problem z openVPN na Gargoyle

Problem rozwiązany smile
Znaczy nawiązuje połączenie bez problemu tyle, że nie chce mi przyznać potem DHCP adresu IP. Przy ustawionym IP ręcznie ping na router nie wraca hmm

Mon Nov 29 11:03:16 2010 OpenVPN 2.1.1 i686-pc-mingw32 [SSL] [LZO2] [PKCS11] built on Dec 11 2009
Mon Nov 29 11:03:16 2010 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Mon Nov 29 11:03:16 2010 Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Nov 29 11:03:16 2010 Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Nov 29 11:03:16 2010 Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Mon Nov 29 11:03:16 2010 Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Mon Nov 29 11:03:16 2010 TAP-WIN32 device [Local Area Connection 5] opened: \\.\Global\{27FDA97C-5B82-4CB0-8655-0E5881B9BA6F}.tap
Mon Nov 29 11:03:16 2010 TAP-Win32 Driver Version 9.6
Mon Nov 29 11:03:16 2010 TAP-Win32 MTU=1500
Mon Nov 29 11:03:16 2010 NOTE: FlushIpNetTable failed on interface [29] {27FDA97C-5B82-4CB0-8655-0E5881B9BA6F} (status=5) : Access is denied. 
Mon Nov 29 11:03:16 2010 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:4 ET:32 EL:0 ]
Mon Nov 29 11:03:16 2010 Local Options hash (VER=V4): '8b888ddc'
Mon Nov 29 11:03:16 2010 Expected Remote Options hash (VER=V4): '8b888ddc'
Mon Nov 29 11:03:16 2010 Socket Buffers: R=[8192->8192] S=[8192->8192]
Mon Nov 29 11:03:16 2010 UDPv4 link local: [undef]
Mon Nov 29 11:03:16 2010 UDPv4 link remote: 87.205.142.80:1194
Mon Nov 29 11:03:30 2010 Peer Connection Initiated with 87.205.142.80:1194
Mon Nov 29 11:03:36 2010 TEST ROUTES: 0/0 succeeded len=-1 ret=1 a=0 u/d=up
Mon Nov 29 11:03:36 2010 Initialization Sequence Completed

TL-WR1043ND + Gargoyle PL || WRT54GL

37

Odp: problem z openVPN na Gargoyle

Inne wersje openssl w gargoyle i openwrt.

Weź przykładowe konfiguracje (statyczne) i sprawdź. Zakładam że teraz to tylko sprawa konfiguracji po prostu.

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

38

Odp: problem z openVPN na Gargoyle

Znaczy co mam zrobić bo nie kumam:/

TL-WR1043ND + Gargoyle PL || WRT54GL

39

Odp: problem z openVPN na Gargoyle

Przypisać na stałe adresy ip interfejsom i zobaczyć czy pingi działają. Jak nie to masz problem gdzieś na firewallach.

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

40

Odp: problem z openVPN na Gargoyle

problem jest tego typu że tap0 nie pojawia mi się na początku na liście interfejsów.
Jak zrobię /etc/init.d/openvpn-startup start
to się pojawia i potem bez problemu się łączę po openVPN.


Kombinuje dalej.

BusyBox v1.15.3 (2010-11-23 21:49:02 CET) built-in shell (ash)
Enter 'help' for a list of built-in commands.

  _______                     ________        __
|       |.-----.-----.-----.|  |  |  |.----.|  |_
|   -   ||  _  |  -__|     ||  |  |  ||   _||   _|
|_______||   __|_____|__|__||________||__|  |____|
          |__| W I R E L E S S   F R E E D O M
Backfire (10.03.x, latest version. Always.) -------
  * 1/3 shot Kahlua    In a shot glass, layer Kahlua
  * 1/3 shot Bailey's  on the bottom, then Bailey's,
  * 1/3 shot Vodka     then Vodka.
----------( by obsy, http://eko.one.pl/ )----------
root@Gargoyle:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:9372 (9.1 KiB)

eth0      Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:393 errors:0 dropped:0 overruns:0 frame:0
          TX packets:112 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:97843 (95.5 KiB)  TX bytes:21149 (20.6 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:27 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:9480 (9.2 KiB)

eth0.2    Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:291 errors:0 dropped:0 overruns:0 frame:0
          TX packets:84 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:60866 (59.4 KiB)  TX bytes:10626 (10.3 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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

root@Gargoyle:~# /etc/init.d/openvpn-startup start
openvpn-startup starting
Mon Nov 29 11:41:37 2010 Note: Cannot ioctl TUNSETIFF tap0: Device or resource busy (errno=16)
Mon Nov 29 11:41:37 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Mon Nov 29 11:41:37 2010 Cannot open TUN/TAP dev /dev/tap0: No such file or directory (errno=2)
Mon Nov 29 11:41:37 2010 Exiting
openvpn-starting started
root@Gargoyle:~# /etc/init.d/openvpn-startup start
openvpn-startup starting
Mon Nov 29 11:41:42 2010 Note: Cannot ioctl TUNSETIFF tap0: Device or resource busy (errno=16)
Mon Nov 29 11:41:42 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Mon Nov 29 11:41:42 2010 Cannot open TUN/TAP dev /dev/tap0: No such file or directory (errno=2)
Mon Nov 29 11:41:42 2010 Exiting
device tap0 is already a member of a bridge; can't enslave it to bridge br-lan.
openvpn-starting started
root@Gargoyle:~# ifconfig
br-lan    Link encap:Ethernet  HWaddr 82:DC:5C:65:2A:F7
          inet addr:192.168.2.1  Bcast:192.168.2.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:600 errors:0 dropped:0 overruns:0 frame:0
          TX packets:401 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:130264 (127.2 KiB)  TX bytes:124988 (122.0 KiB)

eth0      Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1436 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1095 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:411722 (402.0 KiB)  TX bytes:313802 (306.4 KiB)
          Interrupt:4

eth0.1    Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:315 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:87064 (85.0 KiB)

eth0.2    Link encap:Ethernet  HWaddr 94:0C:6D:AC:51:1A
          inet addr:192.168.1.100  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1334 errors:0 dropped:0 overruns:0 frame:0
          TX packets:779 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:360143 (351.7 KiB)  TX bytes:225695 (220.4 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:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)

tap0      Link encap:Ethernet  HWaddr 82:DC:5C:65:2A:F7
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:801 errors:0 dropped:0 overruns:0 frame:0
          TX packets:366 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          RX bytes:182026 (177.7 KiB)  TX bytes:112662 (110.0 KiB)

TL-WR1043ND + Gargoyle PL || WRT54GL

41

Odp: problem z openVPN na Gargoyle

Tak, bo przecież openvpn-startup go robi. Możesz ręcznie umieścić interfejsy w /etc/config/network i podnosić to przy starcie systemu. Takie rozwiązanie gdzieś na forum openwrt.org widziałem.

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

42

Odp: problem z openVPN na Gargoyle

wychodzi na to że nie dałem
/etc/init.d/openvpn-startup enable
:]

Tylko że ping dalej nie lata.
Mam przyznane IP z TP-linka.

TL-WR1043ND + Gargoyle PL || WRT54GL

43

Odp: problem z openVPN na Gargoyle

To już firewall. Jak masz polityki zobione? Wpuszczasz wszystko? zapuść jakiś tcpdump i zobacz czy w ogóle dochodzą do routera.

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

44

Odp: problem z openVPN na Gargoyle

dobra.. ja już Ci nie marudzę bo to jest chyba na tyle proste że sobie poradzę. Zajmie mi to chwilę pewnie;-)
Komputery w sieci się widzą. Podłączony normalnie i via openvpn. Czyli tak jak mówisz coś z firewall'em.

Dzięki wielkie za pomoc:)

TL-WR1043ND + Gargoyle PL || WRT54GL

45

Odp: problem z openVPN na Gargoyle

Nie ma sprawy.

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

46

Odp: problem z openVPN na Gargoyle

witam,

niestety mam podobny problem, ale na OpenWrt Backfire 10.03.x (r24158) ,TP-Link TL-WR1043ND. Restart przy próbie połączenia klienta z serwerem.

instalacja wg tutoriala, niestety tap0 nie pojawia sie po uruchomieniu skryptu (ani przy boot ani manualnie), wiec dodałem w network:

config interface tap0
        option ifname "tap0"

i firewall

config 'zone'
        option 'name' 'tap0'
        option 'input' 'ACCEPT'
        option 'output' 'ACCEPT'
        option 'forward' 'ACCEPT'
        option 'masq' '1'

po tych operacjach tap0 pojawia sie, ale nadal restarty.


logread:

Dec  7 01:15:04 OpenWrt daemon.warn openvpn(myvpn)[2016]: NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: Static Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: Static Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: Static Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: Static Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: Socket Buffers: R=[112640->131072] S=[112640->131072]
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: TUN/TAP device tap0 opened
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: TUN/TAP TX queue length set to 100
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:4 ET:32 EL:0 ]
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: UDPv4 link local (bound): [undef]:1194
Dec  7 01:15:04 OpenWrt daemon.notice openvpn(myvpn)[2016]: UDPv4 link remote: [undef]


log z klienta:

Tue Dec 07 00:25:36 2010 UDPv4 link remote: 89.76.97.10:1194
Tue Dec 07 00:26:39 2010 read UDPv4: Connection reset by peer (WSAECONNRESET) (code=10054)

i restart routera.

próbowałem odinstalowywać różne pakiety. hmm jakoś nie mam na tą nocną godzinę pomysłu sad co sprawdzić?

47

Odp: problem z openVPN na Gargoyle

Zainstalować moduły z tego samego źródła co obraz.

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

48

Odp: problem z openVPN na Gargoyle

hmm, nie zmieniałem nic w opkg.conf, wiec z samej teorii nie instalowałem nic z innego źródła.

49

Odp: problem z openVPN na Gargoyle

Skąd masz firmware? jeżeli ode mnie to zainstalowałeś moduły z openwrt.org

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

50

Odp: problem z openVPN na Gargoyle

sądząc z tego co napisałeś, rozumiem, że nic nie rozumiem smile

...moduły są z openwrt, i openvpn też jest z openwrt.org. jedyna zmiana jaka zaszla to nowy obraz r24263 z 5.12.2010, ale jaki to ma wpływ na moduły i na openvpn? hmm