OpenVPN

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

  • That was the idea i mentioned above with create a script. Using it as startscript is a good idea. Does openvpn reconnect if a connection drops?
    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
  • You have to create your script under

    /etc/init.d

    e.g.

    /etc/init.d/OpenVPN.sh

    then create a symlink

    ln -s /etc/init.d/OpenVPN.sh /etc/rc3.d/OopenVPN


    Be carefull about small and capital letters and see that uner init.d the files ends with .sh while under rc3.d it is has no suffix!
    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
  • ln -s /etc/init.d/OpenVPN.sh /etc/rc3.d/OpenVPN


    would be right
    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
  • yes i did it but it doesnt work.I already have file OpenVPN in rc3.d
    inside
    #! /bin/sh
    insmod /lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko
    mkdir /dev/net
    mknod /dev/net/tun c 10 200
    openvpn --config /etc/openvpn/client.conf &
    exit 0

    guys told that problem is that it starting after emulator.
  • first delete the existing file in rc3.d , then create the link above

    also set rights

    chmod 755 /et/init.d/OpenVPN

    so that scripts can be executed.
    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 sorry for stupid questions but I dont have experiens with linux.
    how i create link? wrtite :ln -s /etc/init.d/OpenVPN.sh /etc/rc3.d/OpenVPN ???
    I did that and after I have OpenVPN file in ln -s /etc/init.d/OpenVPN.sh /etc/rc3.d/OpenVPN

    including
    #! /bin/sh
    insmod /lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko
    mkdir /dev/net
    mknod /dev/net/tun c 10 200
    openvpn --config /etc/openvpn/client.conf &
    exit 0

    that file I have to delete?
  • no, then everything shoul be alright.

    Oh nooo

    my mistake!

    ln -s /etc/init.d/OpenVPN.sh /etc/rc3.d/S99OpenVPN

    the S99 was missing!
    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
  • After reboot check with

    lsmod
    -> if tun is loaded

    ls /dev/net
    -> if tun devices exists

    ps
    -> if Openvpn Process exists.
    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
  • root@vuduo ~ # lsmod
    Tainted: P
    isofs 28240 0 - Live 0xc0643000
    cdfs 30496 0 - Live 0xc064d000
    ntfs 294176 0 - Live 0xc0673000
    cifs 279056 0 - Live 0xc06d2000
    usb_storage 79024 0 - Live 0xc065e000
    sata_svw 17616 0 - Live 0xc063d000
    brcmfb 3984 2 - Live 0xc0074000
    dvb_bcm7335 5370224 27 brcmfb, Live 0xc0736000
    dvb_core 99920 1 dvb_bcm7335, Live 0xc010e000
    fb 36640 5 brcmfb, Live 0xc00be000
    procmk 2304 0 - Live 0xc0076000
    snd_pcm 74528 1 dvb_bcm7335, Live 0xc00d8000
    snd_timer 24080 1 snd_pcm, Live 0xc00b7000
    snd_page_alloc 8912 1 snd_pcm, Live 0xc0094000
    snd 53424 3 dvb_bcm7335,snd_pcm,snd_timer, Live 0xc00a8000
    soundcore 9488 1 snd, Live 0xc008a000
    firmware_class 10304 0 - Live 0xc0086000
    i2c_core 19552 0 - Live 0xc008e000
    evdev 9536 1 - Live 0xc0079000
    input 24688 4 dvb_bcm7335,evdev, Live 0xc007e000

    root@vuduo ~ # ls /dev/net
    ls: /dev/net: No such file or directory

    root@vuduo ~ # ps
    PID USER VSZ STAT COMMAND
    1 root 2320 S init [3]
    2 root 0 SW [migration/0]
    3 root 0 SWN [ksoftirqd/0]
    4 root 0 SW [migration/1]
    5 root 0 SWN [ksoftirqd/1]
    6 root 0 SW< [events/0]
    7 root 0 SW< [events/1]
    8 root 0 SW< [khelper]
    9 root 0 SW< [kthread]
    10 root 0 SW< [kblockd/0]
    11 root 0 SW< [kblockd/1]
    12 root 0 SW< [khubd]
    13 root 0 SW [pdflush]
    14 root 0 SW [pdflush]
    15 root 0 SW< [kswapd0]
    16 root 0 SW< [aio/0]
    17 root 0 SW< [aio/1]
    18 root 0 SW< [ata/0]
    19 root 0 SW< [ata/1]
    20 root 0 SW< [ata_aux]
    21 root 0 SW [mtdblockd]
    22 root 0 SWN [jffs2_gcd_mtd0]
    92 root 0 SW [sched]
    93 root 0 SW [sched_low]
    94 root 0 SW [sched_high]
    95 root 0 SW [sched_idle]
    136 root 0 SW [lcd]
    137 root 0 SW [sc0]
    138 root 0 SW [sc1]
    154 root 0 SW< [scsi_eh_0]
    155 root 0 SW< [scsi_eh_1]
    167 root 0 SW< [cifsoplockd]
    168 root 0 SW< [cifsdnotifyd]
    177 root 0 SW [kcdfsd]
    235 root 5420 S nmbd -D
    237 root 8556 S smbd -D
    269 root 8556 S smbd -D
    286 root 18164 S /usr/bin/mgcamd
    287 root 3572 S /usr/sbin/dropbear -r /etc/dropbear/dropbear_rsa_host
    298 root 2748 S /usr/sbin/crond -c /etc/cron/crontabs
    311 messageb 3708 S /usr/bin/dbus-daemon --system
    317 root 2796 S /usr/sbin/inetd
    322 root 2812 S /sbin/syslogd -n -C64 -m 20
    324 root 2748 S /sbin/klogd -n
    335 root 2816 S telnetd
    337 root 3452 S -sh
    344 avahi 5872 S avahi-daemon: running [vuduo.local]
    345 avahi 5872 S avahi-daemon: chroot helper
    349 root 2748 S /bin/sh /usr/bin/enigma2.sh
    352 root 92780 S /usr/bin/enigma2
    358 root 0 SW [kdvb-ca-0:7]
    359 root 0 SW [ci_kthread]
    369 root 0 SW [kdvb-fe-0]
    377 root 3452 R ps
  • It seems the startup script is not executed.

    try

    /etc/init.d/OpenVPN.sh

    And than try the three commands again.
    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
  • You have forgotten to make it executable

    chmod 755 /etc/init.d/OpenVPN.sh

    and then try

    /etc/init.d/OpenVPN.sh

    again.
    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
  • no I didnt forget Ichecked it before in ttmc in atributes after I use your waychmod 755 /etc/init.d/OpenVPN.sh
    but still same situation.
    OpenVPN.sh is it file in notepad renamed for OpenVPN.sh and include
    #! /bin/sh
    insmod /lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko
    mkdir /dev/net
    mknod /dev/net/tun c 10 200
    openvpn --config /etc/openvpn/client.conf &
    exit 0
  • Maybe this helps. Edit your script like follows:

    #! /bin/sh
    /sbin/insmod /lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko
    /bin/mkdir /dev/net
    /bin/mknod /dev/net/tun c 10 200
    /var/sbin/openvp --config /etc/openvpn/client.conf &
    exit 0
    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
  • #! /bin/sh
    /sbin/insmod /lib/modules/2.6.18-7.3/kernel/drivers/net/tun.ko
    /bin/mkdir /dev/net
    /bin/mknod /dev/net/tun c 10 200
    /var/sbin/openvpn --config /etc/openvpn/client.conf &
    exit 0

    root@vuduo ~ # /etc/init.d/OpenVPN.sh
    -sh: /etc/init.d/OpenVPN.sh: not found
    :(
  • can you post

    ls -la /etc/init.d/OpenVPN.sh
    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