Ostatnio: nigdy

Darmowe galerie dla serwisów aukcyjnych

NAS: D-link DNS-320 with ffp v0.5 and VPN

[PREV: Installation of the Fonz fun_plug 0.5 for D-Link DNS-320 ]

*) Sync with http://ffp.wolf-u.li/

cd /ffp/pkg/
rsync -av --delete wolf-u.li::ffp/additional .

Follow: http://nas-tweaks.net/82/installing-and-uninstalling-packages-and-activation-and-deactivation-of-daemons-in-fonz-fun_plug/

*) Install OpenVPN 2.2.1-2

root@NAS:/mnt/HD/HD_a2/ffp/pkg# funpkg -i additional/net-misc/openvpn-2.2.1-2.tgz
Installing package openvpn-2.2.1-2 ...
[pkgsrc]

*) Create a TUN device

mkdir /dev/net
mknod /dev/net/tun c 10 200

*) Load TUN device at every reboot

**) First find the correct tun.ko module

find / -name tun.ko -print

/mnt/HD/HD_a2/ffp/lib/modules/kernel/2.6.22.7/tun.ko

/mnt/HD/HD_a2/ffp/lib/modules/kernel/2.6.12.6-arm1/tun.ko

/mnt/HD/HD_a2/ffp/lib/modules/kernel/2.6.22.18/drivers/net/tun.ko

or download tun.ko from http://nas-tweaks.net/257/precompiled-kernel-modules-for-the-d-link-dns-320-and-dns-325/

**) Check your kernel version

uname -r

2.6.22.18

**) Load correct version module to NAS

insmod /mnt/HD/HD_a2/ffp/lib/modules/kernel/2.6.22.18/drivers/net/tun.ko
lsmod |grep tun

Module Size Used by Not tainted

tun 9088 0

*) Start the simplest VPN on server side

openvpn --dev tun1 --ifconfig 10.9.8.1 10.9.8.2

OpenVPN 2.2.1 arm-unknown-linux-uclibc [SSL] [LZO2] [EPOLL] [eurephia] built on Aug 10 2011

IMPORTANT: OpenVPN's default port number is now 1194, based on an official port number assignment by IANA. OpenVPN 2.0-beta16 and earlier used 5000 as the default port.

NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables

******* WARNING *******: all encryption and authentication features disabled – all data will be tunnelled as cleartext

TUN/TAP device tun1 opened

/ffp/sbin/ifconfig tun1 10.9.8.1 pointopoint 10.9.8.2 mtu 1500

UDPv4 link local (bound): [undef]:1194

UDPv4 link remote: [undef]

"CTRL + C" to break/stop operation or connect to this server by this on client PC:

openvpn --remote SERVER_IP --dev tun1 --ifconfig 10.9.8.2 10.9.8.1

On server additional logs:

Peer Connection Initiated with 93.154.145.194:62623

Initialization Sequence Completed

Peer Connection Initiated with 93.154.145.194:62734

Tun module is in use:

lsmod

Module Size Used by Not tainted

tun 9088 1

*) Test the simplest VPN

Ping from client to server

ping 10.9.8.1

Odpowiedź z 10.9.8.1: bajtów=32 czas=223ms TTL=64

Odpowiedź z 10.9.8.1: bajtów=32 czas=462ms TTL=64

Odpowiedź z 10.9.8.1: bajtów=32 czas=152ms TTL=64

Odpowiedź z 10.9.8.1: bajtów=32 czas=291ms TTL=64

This method is perfect only to test a possibility of VPN point-to-point connection.

Next step is use static-key or certification.

Thanks for:

http://wiki.debian.org/OpenVPN

http://forum.dsmg600.info/viewtopic.php?id=1495

Know problems:

Dodaj komentarz

Dodajesz komentarz anonimowo. Zaloguj się.

Dodajesz komentarz anonimowo. Aby komentować pod własnym pseudonimem włącz profil publiczny w ustawieniach.

Autor:
Treść:

Aby przesłać formularz, musisz mieć włączony w przeglądarce Javascript. Jeżeli nie masz, przepisz wspak tekst 4pj7vv6zsx:

Wykop

Korzystanie z serwisu oznacza akceptację Regulaminu. Copyright – 1999-2017 INTERIA.PL , wszystkie prawa zastrzeżone.