Openvpn in Vti image

    Diese Seite verwendet Cookies. Durch die Nutzung unserer Seite erklären Sie sich damit einverstanden, dass wir Cookies setzen. Weitere Informationen

    • Openvpn in Vti image

      Is there ipk package for vti image with openvpn? I can use binaries from vu+ duo image, but tun.ko module wouldn't load... Can anybody advice me how to build aditional kernel modules for this image?
    • >mathais

      Is it possible to have your modified plugin to test ?
      (and a little "how to" to configure)
      Where do you paste keys or server.conf ?

      Thx,

      LbdH from France

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von LbdH ()

    • openvpn ipk?!
      i have make it, try this:
      Dateien
      "Wer schweigt, stimmt nicht immer zu. Er hat nur manchmal keine Lust mit Idioten zu diskutieren."
      Albert Einstein
    • there is no panel. You have to configure manually by files.
      Pustekuchen ist keine Blume.

      Vu+ DUO - 500GB HDD (Samsung EcoGreen F2) - Vu+ DUO - 500GB HDD (Samsung EcoGreen F3)
      Vu+ SOLO - 500GB HDD (WD Mybook Essential 2,5") - Samsung USB DVD Brenner
      DM800 - Abcom IPBox 910 - Opticum HD TS 9600
      Zotac Mag Mini als Medialplayer - Buffalo Drive Station Pro als NAS
    • I am trying to insmod the tun.ko included in this archive:

      openvpn plugin

      I am using the latest VTi "Vu+ Team Image" - V 2.0 - 19.08.2010 OE 1.6

      and i think the kernel is the same used to compile the tun.ko module:


      root@bm750:~# uname -r
      2.6.18-7.3


      but i give this error:

      # modprobe tun
      modprobe: failed to load module tun (/lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko): invalid module format


      and the same with insmod:

      root@bm750:~# insmod /lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko
      insmod: can't insert '/lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko': invalid module format



      Any idea?
      --
      Ciao alez

      Ricevitori: * VDR Box "barbon" style * Dreambox 7000 * Vu+ Duo rev 1.3

      Antenne: * Stab HH120 - Fracarro 120 - Inverto IDLP-001QDF + Feedhorn Channelmaster * Fracarro penta 85
    • The packages from Kpt.Iglo doesn't contain the tun module:


      Quellcode

      1. # ipkg install openvpn_2.0.9_2.1rc20-r0_mipsel.ipk
      2. Installing openvpn (2.0.9+2.1rc20-r0) to root...
      3. Collected errors:
      4. * ERROR: Cannot satisfy the following dependencies for openvpn:
      5. * kernel-module-tun *
      6. * Cannot find package openvpn.
      --
      Ciao alez

      Ricevitori: * VDR Box "barbon" style * Dreambox 7000 * Vu+ Duo rev 1.3

      Antenne: * Stab HH120 - Fracarro 120 - Inverto IDLP-001QDF + Feedhorn Channelmaster * Fracarro penta 85
    • Solved!!!

      when i try to install the ipk packages dowloaded here Openvpn in Vti image

      it doesn't work

      i have tried to install the packages directly by our server:

      update the archives list

      Quellcode

      1. root@bm750:~# ipkg update


      find the right packages

      Quellcode

      1. root@bm750:~# ipkg list | grep openvpn
      2. openvpn - 2.0.9+2.1rc20-r0 - A full-featured SSL VPN solution via tun device.
      3. openvpn-dbg - 2.0.9+2.1rc20-r0 - A full-featured SSL VPN solution via tun device.
      4. openvpn-dev - 2.0.9+2.1rc20-r0 - A full-featured SSL VPN solution via tun device.
      5. openvpn-doc - 2.0.9+2.1rc20-r0 - A full-featured SSL VPN solution via tun device.


      install the needed packages:

      Quellcode

      1. root@bm750:~# ipkg install openvpn openvpn-dbg openvpn-dev openvpn-doc


      rebooted the box, putted the right needed conf and certs:

      configuration file in:

      Quellcode

      1. /etc/openvpn/client.conf


      certs and key in:

      Quellcode

      1. /etc/openvpn/keys/


      manually started openvpn executable (that load the tun module)

      Quellcode

      1. root@bm750:~# openvpn --config /etc/openvpn/client.conf


      in other terminal shell:

      Quellcode

      1. root@bm750:~# ifconfig
      2. eth0 Link encap:Ethernet HWaddr 00:1D:EC:01:58:1B
      3. inet addr:xxx.xxx.xxx.xxx Bcast:xxx.xxx.xxx.255 Mask:255.255.0.0
      4. UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
      5. RX packets:831 errors:0 dropped:0 overruns:0 frame:0
      6. TX packets:669 errors:0 dropped:0 overruns:0 carrier:0
      7. collisions:0 txqueuelen:1000
      8. RX bytes:92489 (90.3 KiB) TX bytes:91948 (89.7 KiB)
      9. Interrupt:16
      10. lo Link encap:Local Loopback
      11. inet addr:127.0.0.1 Mask:255.0.0.0
      12. UP LOOPBACK RUNNING MTU:16436 Metric:1
      13. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      14. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      15. collisions:0 txqueuelen:0
      16. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
      17. tun0 Link encap:UNSPEC HWaddr 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
      18. inet addr:10.x.x.30 P-t-P:10.x.x.29 Mask:255.255.255.255
      19. UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1500 Metric:1
      20. RX packets:0 errors:0 dropped:0 overruns:0 frame:0
      21. TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
      22. collisions:0 txqueuelen:100
      23. RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)
      Alles anzeigen


      and test it with ping to the my openvpn server.

      Quellcode

      1. root@bm750:~# ping 10.x.x.1
      2. PING 10.x.x.1 (10.x.x.1): 56 data bytes
      3. 64 bytes from 10.x.x.1: seq=0 ttl=64 time=3.273 ms
      4. 64 bytes from 10.x.x.1: seq=1 ttl=64 time=2.688 ms
      5. 64 bytes from 10.x.x.1: seq=2 ttl=64 time=2.646 ms





      Now i must find a way to do this automatically at box startup...
      --
      Ciao alez

      Ricevitori: * VDR Box "barbon" style * Dreambox 7000 * Vu+ Duo rev 1.3

      Antenne: * Stab HH120 - Fracarro 120 - Inverto IDLP-001QDF + Feedhorn Channelmaster * Fracarro penta 85
    • Done!

      find the default runlevel:

      Quellcode

      1. root@bm750:/etc/rc2.d# cat /etc/inittab | grep default
      2. # The default runlevel.
      3. id:3:initdefault:


      the default runlevel is 3, i make a SystemV startup link in the runlevel 3 for openvpn service:

      Quellcode

      1. root@bm750:/etc/rc3.d# ln -s /etc/init.d/openvpn /etc/rc3.d/S22openvpn


      now at each reboot the openvpn daemon start automatically, after avahi-daemon:

      Quellcode

      1. root@bm750:~# ls -lh /etc/rc3.d/
      2. lrwxrwxrwx 1 root root 16 Jan 1 1970 S05dbus-1 -> ../init.d/dbus-1
      3. lrwxrwxrwx 1 root root 18 Jan 1 1970 S10dropbear -> ../init.d/dropbear
      4. lrwxrwxrwx 1 root root 22 Jan 1 1970 S20busybox-cron -> ../init.d/busybox-cron
      5. lrwxrwxrwx 1 root root 15 Jan 1 1970 S20inetd -> ../init.d/inetd
      6. lrwxrwxrwx 1 root root 16 Jan 1 1970 S20syslog -> ../init.d/syslog
      7. lrwxrwxrwx 1 root root 16 Jan 1 1970 S20vsftpd -> ../init.d/vsftpd
      8. lrwxrwxrwx 1 root root 16 Jan 1 1970 S21autofs -> ../init.d/autofs
      9. lrwxrwxrwx 1 root root 22 Jan 1 1970 S21avahi-daemon -> ../init.d/avahi-daemon
      10. lrwxrwxrwx 1 root root 19 Oct 1 18:58 S22openvpn -> /etc/init.d/openvpn
      11. lrwxrwxrwx 1 root root 19 Jan 1 1970 S99rmnologin -> ../init.d/rmnologin
      Alles anzeigen
      --
      Ciao alez

      Ricevitori: * VDR Box "barbon" style * Dreambox 7000 * Vu+ Duo rev 1.3

      Antenne: * Stab HH120 - Fracarro 120 - Inverto IDLP-001QDF + Feedhorn Channelmaster * Fracarro penta 85

      Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von alez ()

    • Another way to do the start / stop links automatically (thanks to Piefav)

      Quellcode

      1. update-rc.d openvpn defaults
      --
      Ciao alez

      Ricevitori: * VDR Box "barbon" style * Dreambox 7000 * Vu+ Duo rev 1.3

      Antenne: * Stab HH120 - Fracarro 120 - Inverto IDLP-001QDF + Feedhorn Channelmaster * Fracarro penta 85