Temat: problem z konfiguracja openvpn na wrt160nl

Witam. Mam problem z uruchomieniem openvpn. Robie wszystko zgodnie z instrukcja http://eko.one.pl/?p=openwrt-openvpn. Wszystko jest ok do momentu wydania komendy:

/etc/init.d/openvpn-startup start

Dostaję wtedy komunikat:

openvpn: can't load library 'libssl.so.0.9.8'
brctl: iface tap0: No such device
ifconfig: SIOCSIFADDR: No such device

Co mogę z tym zrobić?

2

Odp: problem z konfiguracja openvpn na wrt160nl

nie jest zainstalowany pakiet libopenssl

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

3

Odp: problem z konfiguracja openvpn na wrt160nl

Witam, troche sie nie odzywałem - praca. Probowałem doinstalowac ten pakiet ale mialem komunikat o braku miejsca. W między czasie pojawiła się nowa wersja systemu, wiec zmieniłem go na nowszy. Nie instalowalem tego wszystkiego co zainstalowalem poprzednio, żeby mieć miejsce na ten pakiet. Jednak pojawił się inny problem. Postepując tak jak w opisie http://eko.one.pl/?p=openwrt-openvpn, tym razem doszedłem do momentu:

Włączenie odpowiedniej sekcji konfiguracji

    # mkdir -p /etc/openvpn/
    # uci set openvpn.myvpn=openvpn

Po tej komendzie mam komunikat:

uci: Entry not found

Jak sobie z tym poradzić?

4

Odp: problem z konfiguracja openvpn na wrt160nl

Zainstalować openvpn smile

Brakuje Ci pliku /etc/config/openvpn, a on właśnie pochodzi z pakietu openvpn. uci nie znajduje go i buntuje się przy ustawieniu opcji...

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

5

Odp: problem z konfiguracja openvpn na wrt160nl

O sorry za głupie pytanie nie zauważyłem komunikatu że sie nie zainstalowało hmm Ale juz jest ok dzięki za szybką odpowiedź

6

Odp: problem z konfiguracja openvpn na wrt160nl

Znowu po dluzszej przewie wracam do problemu.
Po wydaniu komendy "/etc/init.d/openvpn-startup start" dostaje takie cos:

Fri Sep 17 13:05:13 2010 Note: Cannot open TUN/TAP dev /dev/net/tun: No such file or directory (errno=2)
Fri Sep 17 13:05:13 2010 Note: Attempting fallback to kernel 2.2 TUN/TAP interface
Fri Sep 17 13:05:13 2010 Cannot open TUN/TAP dev /dev/tap0: No such file or directory (errno=2)
Fri Sep 17 13:05:13 2010 Exiting
brctl: iface tap0: No such device
ifconfig: SIOCSIFADDR: No such device

Co znowu jest nie tak hmm

7

Odp: problem z konfiguracja openvpn na wrt160nl

opkg install kmod-tun?

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

8

Odp: problem z konfiguracja openvpn na wrt160nl

Mam ta paczke zainstalowana

9

Odp: problem z konfiguracja openvpn na wrt160nl

A masz załadowany moduł tun? (lsmod) Bo drze się o brak urządzeń.

PS. Nie masz pomyłki w konfigu? tun zamiast tun0  gdzieś?

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

10

Odp: problem z konfiguracja openvpn na wrt160nl

Z tego co widze to nie jest zaladowany.

To co zwróciło lsmod:

Module                  Size  Used by    Not tainted
fuse                   46256  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        4704  1 nf_nat_ftp
ipt_MASQUERADE           992  2
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       7392  6 iptable_nat,nf_nat
nf_defrag_ipv4           624  1 nf_conntrack_ipv4
nf_conntrack           37776 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
pppoe                   8304  0
pppox                   1216  1 pppoe
ipt_REJECT              1680  2
xt_TCPMSS               2560  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               8480  4 iptable_nat,iptable_raw,iptable_mangle,iptable_filter
xt_tcpudp               1760 11
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
ppp_async               6400  0
ppp_generic            18848  3 pppoe,pppox,ppp_async
slhc                    4176  1 ppp_generic
vfat                    7696  0
fat                    42256  1 vfat
ext4                  206240  0
ath9k                  85856  0
ath9k_common            1920  1 ath9k
ath9k_hw              214528  2 ath9k,ath9k_common
ath                      880  3 ath9k,ath9k_common,ath9k_hw
nls_iso8859_1           2832  0
nls_cp437               4368  0
mac80211              190640  2 ath9k,ath9k_common
crc16                    976  1 ext4
crc_ccitt                976  1 ppp_async
cfg80211              116384  3 ath9k,ath9k_common,mac80211
compat_firmware_class     5168  0
compat                   432  0
arc4                     816  2
aes_generic            30256  3
deflate                 1360  0
ecb                     1328  2
cbc                     2016  0
usb_storage            31920  0
ehci_hcd               31120  0
sd_mod                 21600  0
ext2                   42256  0
ext3                   91296  0
jbd                    31392  1 ext3
jbd2                   36416  1 ext4
usbcore                97440  3 usb_storage,ehci_hcd
scsi_mod               68160  2 usb_storage,sd_mod
nls_base                4800  5 vfat,fat,nls_iso8859_1,nls_cp437,usbcore
mbcache                 3920  1 ext4
leds_gpio               1456  0
button_hotplug          2560  0
gpio_buttons            1968  0
input_polldev           1360  1 gpio_buttons
input_core             16896  4 button_hotplug,gpio_buttons,input_polldev


Jak moge ten modul dodac?

11

Odp: problem z konfiguracja openvpn na wrt160nl

Pokaż wynik dmesg po wykonaniu insmod tun - może się nie chce załadować bo wersja jajka się nie zgadza.

ZTE F601 GPON - Xiaomi Mi Router 3G - Orange Pi PC2

12

Odp: problem z konfiguracja openvpn na wrt160nl

Linux version 2.6.32.9 (cezary@eko.one.pl) (gcc version 4.3.3 (GCC) ) #9 Wed Mar 24 21:53:06 CET 2010
prom: fw_arg0=00000009, fw_arg1=a1f67fb0, fw_arg2=a1f68470, fw_arg3=00000008
MyLoader: sysp=aaaa5554, boardp=aaaa5554, parts=aaaa5554
bootconsole [early0] enabled
CPU revision is: 00019374 (MIPS 24Kc)
Atheros AR9130 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
On node 0 totalpages: 8192
free_area_init_node: node 0, pgdat 802bf5c0, node_mem_map 81000000
  Normal zone: 64 pages used for memmap
  Normal zone: 0 pages reserved
  Normal zone: 8128 pages, LIFO batch:0
Built 1 zonelists in Zone order, mobility grouping on.  Total pages: 8128
Kernel command line: rootfstype=squashfs,yaffs,jffs2 noinitrd console=ttyS0,115200 board=WRT160NL
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: 29396k/32768k available (2038k kernel code, 3372k reserved, 393k 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 Linksys WRT160NL
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 Mar 15 2010 22:44: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
Atheros AR71xx SPI Controller driver version 0.2.4
m25p80 spi0.0: mx25l6405d (8192 Kbytes)
spi0.0: searching for MyLoader partition table at offset 0x10000
spi0.0: searching for MyLoader partition table at offset 0x20000
spi0.0: searching for MyLoader partition table at offset 0x30000
spi0.0: searching for MyLoader partition table at offset 0x40000
spi0.0: no MyLoader partition table found
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
6 wrt160nl partitions found on MTD device spi0.0
Creating 6 MTD partitions on "spi0.0":
0x000000000000-0x000000040000 : "u-boot"
0x000000040000-0x000000180000 : "kernel"
0x000000180000-0x0000007e0000 : "rootfs"
mtd: partition "rootfs" set to be root filesystem
mtd: partition "rootfs_data" created automatically, ofs=400000, len=3E0000
0x000000400000-0x0000007e0000 : "rootfs_data"
0x0000007e0000-0x0000007f0000 : "nvram"
0x0000007f0000-0x000000800000 : "art"
0x000000040000-0x0000007e0000 : "firmware"
ag71xx_mdio: probed
eth0: Atheros AG71xx at 0xb9000000, irq 4
Registering RTL8306SD switch with Chip ID: 0x5988, version: 0x0000
eth0: connected to PHY at ag71xx-mdio:00 [uid=00008306, driver=Realtek RTL8306S]
eth1: Atheros AG71xx at 0xba000000, irq 5
eth1: connected to PHY at ag71xx-mdio:04 [uid=00008306, driver=Realtek RTL8306S]
Atheros AR71xx hardware watchdog driver version 0.1.0
ar71xx-wdt: timeout=15 secs (max=21)
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 ...
gpio-buttons driver version 0.1.2
input: gpio-buttons as /devices/platform/gpio-buttons/input/input0
Button Hotplug driver version 0.3.1
Registered led device: wrt160nl:blue:power
Registered led device: wrt160nl:amber:wps
Registered led device: wrt160nl:blue:wps
Registered led device: wrt160nl:blue:wlan
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
SCSI subsystem initialized
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
ext4: Unknown symbol crc16
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
Initializing USB Mass Storage driver...
usbcore: registered new interface driver usb-storage
USB Mass Storage support registered.
mini_fo: using base directory: /
mini_fo: using storage directory: /overlay
eth0: link down
device eth0 entered promiscuous mode
Generic kernel compatibility enabled based on linux-next next-20100113
ar71xx: pll_reg 0xb8050014: 0x13000a44
eth0: link up (100Mbps/Full duplex)
br-lan: port 1(eth0) entering forwarding state
cfg80211: Calling CRDA to update world regulatory domain
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
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)
phy0: Selected rate control algorithm 'ath9k_rate_control'
phy0: Atheros AR9100 MAC/BB Rev:0 AR2122 RF Rev:a2 mem=0xb80c0000, irq=2
PPP generic driver version 2.4.2
ip_tables: (C) 2000-2006 Netfilter Core Team
NET: Registered protocol family 24
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.
fuse init (API version 7.13)
eth1: link down
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx: pll_reg 0xb8050018: 0x13000a44
eth1: link up (100Mbps/Full duplex)
device wlan0 left promiscuous mode
br-lan: port 2(wlan0) entering disabled state
device wlan0 entered promiscuous mode
br-lan: port 2(wlan0) entering forwarding state
ar71xx-wdt: enabling watchdog timer

13

Odp: problem z konfiguracja openvpn na wrt160nl

Nic nie ma, ciekawe...
A powinno być albo:

tun: Universal TUN/TAP device driver, 1.6
tun: (C) 1999-2004 Max Krasnyansky <maxk@qualcomm.com>

albo "unresolved symbol".

ZTE F601 GPON - Xiaomi Mi Router 3G - Orange Pi PC2