OpenVPN Anleitung für update-resolv-conf

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

    • Aber gern:

      env:

      Spoiler anzeigen
      root@vuuno4kse:~# env
      USER=root
      SHLVL=1
      HOME=/home/root
      PS1=\u@\h:\w\$
      LOGNAME=root
      TERM=xterm
      PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
      SHELL=/bin/sh
      PWD=/home/root
      EDITOR=/bin/vi
      root@vuuno4kse:~#




      VTi Version:
      VTi-Team Image Release v.14.0.3

      Danke für deinen Einsatz.
      VU+ UNO 4K SE (14.*.)
    • Leider auch nicht..

      Spoiler anzeigen
      Thu May 16 20:29:16 2019 SENT CONTROL [vpn]: 'PUSH_REQUEST' (status=1)
      Thu May 16 20:29:16 2019 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 198.18.0.1,dhcp-option DNS 198.18.0.2,rcvbuf 493216,sndbuf 493216,explicit-exit-notify 5,comp-lzo no,route-gateway 172.21.90.1,topology subnet,ping 20,ping-restart 40,ifconfig 172.21.90.201 255.255.254.0,peer-id 2'
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: timers and/or timeouts modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: explicit notify parm(s) modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: LZO parms modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
      Thu May 16 20:29:16 2019 Socket Buffers: R=[131072->327680] S=[131072->327680]
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: --ifconfig/up options modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: route options modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: route-related options modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
      Thu May 16 20:29:16 2019 OPTIONS IMPORT: peer-id set
      Thu May 16 20:29:16 2019 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 IFACE=eth0 HWADDR=00:1d:ec:12:e1:02
      Thu May 16 20:29:16 2019 TUN/TAP device tun0 opened
      Thu May 16 20:29:16 2019 TUN/TAP TX queue length set to 100
      Thu May 16 20:29:16 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
      Thu May 16 20:29:16 2019 /sbin/ip link set dev tun0 up mtu 1500
      Thu May 16 20:29:16 2019 /sbin/ip addr add dev tun0 172.21.90.201/23 broadcast 172.21.91.255
      Thu May 16 20:29:16 2019 /etc/openvpn/update-resolv-conf-BJ tun0 1500 1570 172.21.90.201 255.255.254.0 init
      Thu May 16 20:29:16 2019 WARNING: Failed running command (--up/--down): could not execute external program
      Thu May 16 20:29:16 2019 Exiting due to fatal error




      VPN läuft ja...wie wichtig denkst du wäre es, wenn das nun auch noch klappt?

      :) :)
      VU+ UNO 4K SE (14.*.)
    • #102 gelassen, Neustart:

      Spoiler anzeigen
      root@vuuno4kse:~# ls -la /etc/openvpn
      drwxr-xr-x 3 root root 4096 May 16 09:45 .
      drwxr-xr-x 46 root root 4096 May 16 22:46 ..
      -rw-r--r-- 1 root root 3892 May 16 22:46 LOG.txt
      drwxr-xr-x 2 root root 4096 May 14 19:06 Neues Verzeichnis
      -rw-r--r-- 1 root root 28 May 14 08:50 new.login
      -rw-r--r-- 1 root root 1922 May 16 22:43 openvpnvti.conf
      -rwxrwxrwx 1 root root 2614 May 16 20:26 update-resolv-conf-BJ
      root@vuuno4kse:~#




      und

      Spoiler anzeigen

      root@vuuno4kse:~# file /etc/openvpn/update-resolv-conf-BJ
      -sh: file: not found
      root@vuuno4kse:~#



      Komisch...Datei ist natürlich in dem Ordner...


      Muss mich hinhauen...falls du heute noch Infos brauchst ;) (Bis 23:00 Unr noch on)
      VU+ UNO 4K SE (14.*.)

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von Rapp ()

    • Spoiler anzeigen
      root@vuuno4kse:~# opkg install file
      Installing file (5.22-r0) on root.
      Downloading: file_5.22-r0_armv7ahf-vfp-neon.ipk
      Configuring file.
      root@vuuno4kse:~#
      Broadcast message from root@vuuno4kse (console) (Fri May 17 04:49:45 2019):
      The system is going down for reboot NOW!



      Noch einmal Neustart. Startet noch nicht.

      Spoiler anzeigen
      root@vuuno4kse:~# ls -la /etc/openvpn
      drwxr-xr-x 3 root root 4096 May 16 09:45 .
      drwxr-xr-x 46 root root 4096 May 17 04:50 ..
      -rw-r--r-- 1 root root 3892 May 17 04:54 LOG.txt
      drwxr-xr-x 2 root root 4096 May 14 19:06 Neues Verzeichnis
      -rw-r--r-- 1 root root 28 May 14 08:50 new.login
      -rw-r--r-- 1 root root 1922 May 16 22:43 openvpnvti.conf
      -rwxrwxrwx 1 root root 2614 May 16 20:26 update-resolv-conf-BJ
      root@vuuno4kse:~#


      Spoiler anzeigen
      root@vuuno4kse:~# file /etc/openvpn/update-resolv-conf-BJ
      /etc/openvpn/update-resolv-conf-BJ: Bourne-Again shell script, ASCII text executable
      root@vuuno4kse:~#



      Spoiler anzeigen
      root@vuuno4kse:~# env
      USER=root
      SHLVL=1
      HOME=/home/root
      PS1=\u@\h:\w\$
      LOGNAME=root
      TERM=xterm
      PATH=/usr/local/bin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
      SHELL=/bin/sh
      PWD=/home/root
      EDITOR=/bin/vi
      root@vuuno4kse:~#


      Log:

      Spoiler anzeigen
      Fri May 17 04:54:48 2019 OpenVPN 2.3.6 arm-oe-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Mar 2 2018
      Fri May 17 04:54:48 2019 library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.09
      Fri May 17 04:54:48 2019 WARNING: file 'new.login' is group or others accessible
      Fri May 17 04:54:48 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
      Fri May 17 04:54:48 2019 Socket Buffers: R=[163840->131072] S=[163840->131072]
      Fri May 17 04:54:48 2019 UDPv4 link local: [undef]
      Fri May 17 04:54:48 2019 UDPv4 link remote: [AF_INET]81.171.85.68:1194
      Fri May 17 04:54:48 2019 TLS: Initial packet from [AF_INET]81.171.85.68:1194, sid=cba8abb7 432f0cd8
      Fri May 17 04:54:48 2019 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
      Fri May 17 04:54:48 2019 VERIFY OK: depth=1, C=US, ST=VPN, L=VPN, O=VPN, OU=VPN, CN=VPN, name=VPN, emailAddress=VPN
      Fri May 17 04:54:48 2019 Validating certificate key usage
      Fri May 17 04:54:48 2019 ++ Certificate has key usage 00a0, expects 00a0
      Fri May 17 04:54:48 2019 VERIFY KU OK
      Fri May 17 04:54:48 2019 Validating certificate extended key usage
      Fri May 17 04:54:48 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
      Fri May 17 04:54:48 2019 VERIFY EKU OK
      Fri May 17 04:54:48 2019 VERIFY OK: depth=0, C=US, ST=VPN, L=VPN, O=VPN, OU=VPN, CN=vpn, name=VPN
      Fri May 17 04:54:48 2019 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
      Fri May 17 04:54:48 2019 Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
      Fri May 17 04:54:48 2019 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
      Fri May 17 04:54:48 2019 Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
      Fri May 17 04:54:48 2019 Control Channel: TLSv1, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-SHA, 2048 bit RSA
      Fri May 17 04:54:48 2019 [vpn] Peer Connection Initiated with [AF_INET]81.171.85.68:1194
      Fri May 17 04:54:50 2019 SENT CONTROL [vpn]: 'PUSH_REQUEST' (status=1)
      Fri May 17 04:54:50 2019 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 198.18.0.1,dhcp-option DNS 198.18.0.2,rcvbuf 493216,sndbuf 493216,explicit-exit-notify 5,comp-lzo no,route-gateway 172.21.94.1,topology subnet,ping 20,ping-restart 40,ifconfig 172.21.94.201 255.255.254.0,peer-id 2'
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: timers and/or timeouts modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: explicit notify parm(s) modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: LZO parms modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
      Fri May 17 04:54:50 2019 Socket Buffers: R=[131072->327680] S=[131072->327680]
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: --ifconfig/up options modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: route options modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: route-related options modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
      Fri May 17 04:54:50 2019 OPTIONS IMPORT: peer-id set
      Fri May 17 04:54:50 2019 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 IFACE=eth0 HWADDR=00:1d:ec:12:e1:02
      Fri May 17 04:54:50 2019 TUN/TAP device tun0 opened
      Fri May 17 04:54:50 2019 TUN/TAP TX queue length set to 100
      Fri May 17 04:54:50 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
      Fri May 17 04:54:50 2019 /sbin/ip link set dev tun0 up mtu 1500
      Fri May 17 04:54:50 2019 /sbin/ip addr add dev tun0 172.21.94.201/23 broadcast 172.21.95.255
      Fri May 17 04:54:50 2019 /etc/openvpn/update-resolv-conf-BJ tun0 1500 1570 172.21.94.201 255.255.254.0 init
      Fri May 17 04:54:50 2019 WARNING: Failed running command (--up/--down): could not execute external program
      Fri May 17 04:54:50 2019 Exiting due to fatal error

      VU+ UNO 4K SE (14.*.)

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

    • Sorry, dachte, wäre noch einmal anders.....copy& paste mach ich ja schon mit allem :P :D :



      root@vuuno4kse:~# /etc/openvpn/update-resolv-conf-BJ
      env: can't execute 'bash': No such file or directory
      root@vuuno4kse:~#
      VU+ UNO 4K SE (14.*.)
    • hmm...bash kann nicht ausgeführt werden... Das File ist 100% in dem Ordner... sehr komisch
      VU+ UNO 4K SE (14.*.)

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

    • Die Datei ist im Eimer. Keine Ahnung, wie das passieren konnte.

      Also ein kleiner Extra-Umweg für dich:

      1) Telnet/SSH auf die box
      2) eingeben:

      Quellcode

      1. cd /etc/openvpn; rm -f ./update-resolv-conf-BJ ; wget https://raw.githubusercontent.com/cfdisk/openvpn-update-resolv-conf/master/update-resolv-conf.sh -O ./update-resolv-conf-BJ; chmod +x update-resolv-conf-BJ
      3) nochmal ausprobieren
    • wow...mach ich doch glatt....danke ;)

      root@vuuno4kse:~# cd /etc/openvpn; rm -f ./update-resolv-conf-BJ ; wget update-resolv-conf.sh -O ./update-resolv-conf-BJ; chmod +x update-resolv-conf-BJ
      Connecting to raw.githubusercontent.com (151.101.36.133:443)
      update-resolv-conf-B 100% |***********************************************************************| 2878 0:00:00 ETA


      Spoiler anzeigen
      Sat May 18 20:27:54 2019 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 198.18.0.1,dhcp-option DNS 198.18.0.2,rcvbuf 493216,sndbuf 493216,explicit-exit-notify 5,comp-lzo no,route-gateway 172.21.94.1,topology subnet,ping 20,ping-restart 40,ifconfig 172.21.94.201 255.255.254.0,peer-id 0'
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: timers and/or timeouts modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: explicit notify parm(s) modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: LZO parms modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
      Sat May 18 20:27:54 2019 Socket Buffers: R=[131072->327680] S=[131072->327680]
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: --ifconfig/up options modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: route options modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: route-related options modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
      Sat May 18 20:27:54 2019 OPTIONS IMPORT: peer-id set
      Sat May 18 20:27:54 2019 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 IFACE=eth0 HWADDR=00:1d:ec:12:e1:02
      Sat May 18 20:27:54 2019 TUN/TAP device tun0 opened
      Sat May 18 20:27:54 2019 TUN/TAP TX queue length set to 100
      Sat May 18 20:27:54 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
      Sat May 18 20:27:54 2019 /sbin/ip link set dev tun0 up mtu 1500
      Sat May 18 20:27:54 2019 /sbin/ip addr add dev tun0 172.21.94.201/23 broadcast 172.21.95.255
      Sat May 18 20:27:54 2019 /etc/openvpn/update-resolv-conf-BJ tun0 1500 1570 172.21.94.201 255.255.254.0 init
      env: can't execute 'bash': No such file or directory
      Sat May 18 20:27:54 2019 WARNING: Failed running command (--up/--down): could not execute external program
      Sat May 18 20:27:54 2019 Exiting due to fatal error




      Schade....wie wichtig stufst du das ein, also, wenn es klappt...VPN mit oder ohne?
      VU+ UNO 4K SE (14.*.)
    • Hab die Dateien mal wieder raus gelöscht aus dem Ordner /etc/openvpn

      Überprüfe noch einmal, ob Openvpn 2.3.6 läuft:
      Spoiler anzeigen
      OpenVPN 2.3.6 arm-oe-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Mar 2 2018
      library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.09
      Originally developed by James Yonan
      Copyright (C) 2002-2010 OpenVPN Technologies, Inc. <sales@openvpn.net>
      Compile time defines: enable_crypto=yes enable_crypto_ofb_cfb=yes enable_debug=yes enable_def_auth=yes enable_dependency
      _tracking=no enable_dlopen=unknown enable_dlopen_self=unknown enable_dlopen_self_static=unknown enable_fast_install=yes
      enable_fragment=yes enable_http_proxy=yes enable_iproute2=yes enable_libtool_lock=yes enable_lzo=yes enable_lzo_stub=no
      enable_management=yes enable_multi=yes enable_multihome=yes enable_pam_dlopen=no enable_password_save=yes enable_pedanti
      c=no enable_pf=yes enable_pkcs11=no enable_plugin_auth_pam=no enable_plugin_down_root=yes enable_plugins=yes enable_port
      _share=yes enable_selinux=no enable_server=yes enable_shared=yes enable_shared_with_static_runtimes=no enable_silent_rul
      es=no enable_small=no enable_socks=yes enable_ssl=yes enable_static=yes enable_strict=no enable_strict_options=no enable
      _systemd=no enable_win32_dll=yes enable_x509_alt_username=no with_aix_soname=aix with_broken_putenv=no with_crypto_libra
      ry=openssl with_gnu_ld=yes with_libtool_sysroot=/media/build01/vti-dorie/build/tmp/sysroots/vuzero4k with_mem_check=no w
      ith_plugindir='$(libdir)/openvpn/plugins'

      Läuft.

      IPv6 aus? :
      Spoiler anzeigen
      root@vuuno4kse:~# sysctl -p
      kernel.printk = 4 4 1 7
      net.ipv4.conf.default.rp_filter = 1
      net.ipv4.conf.all.rp_filter = 1
      net.ipv6.conf.all.disable_ipv6 = 1
      root@vuuno4kse:~#

      Ist aus.
      Als nächstes:
      "chmod +x /etc/openvpn/update-resolv-conf-BJ"
      ausgeführt.

      Habe, wie in Post #69 beschrieben, das Zipfile jetzt direkt in den Ordner openvpn via FTP geschoben und dann direkt an der Box via VTI Dateimanager dort das Zipfile entpackt.

      "new login , "openvpnvti.conf" haben Dateiberechtigung "775" (Rechtsklick in Filezilla auf die jeweilige Datei, unter Dateiberechtigungen wird es angezeigt.)

      "update-resolv-conf-BJ" hat nach entpacken "500" (Muss ich das wieder in FileZilla auf 775 seztzen = Numerischen Wert? )

      Log.Datei
      Spoiler anzeigen
      Sun May 19 09:47:27 2019 OpenVPN 2.3.6 arm-oe-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Mar 2 2018
      Sun May 19 09:47:27 2019 library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.09
      Sun May 19 09:47:27 2019 WARNING: file 'new.login' is group or others accessible
      Sun May 19 09:47:27 2019 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
      Sun May 19 09:47:27 2019 Socket Buffers: R=[163840->131072] S=[163840->131072]
      Sun May 19 09:47:27 2019 UDPv4 link local: [undef]
      Sun May 19 09:47:27 2019 UDPv4 link remote: [AF_INET]81.171.85.68:1194
      Sun May 19 09:47:27 2019 TLS: Initial packet from [AF_INET]81.171.85.68:1194, sid=318991cc 03689397
      Sun May 19 09:47:27 2019 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
      Sun May 19 09:47:27 2019 VERIFY OK: depth=1, C=US, ST=VPN, L=VPN, O=VPN, OU=VPN, CN=VPN, name=VPN, emailAddress=VPN
      Sun May 19 09:47:27 2019 Validating certificate key usage
      Sun May 19 09:47:27 2019 ++ Certificate has key usage 00a0, expects 00a0
      Sun May 19 09:47:27 2019 VERIFY KU OK
      Sun May 19 09:47:27 2019 Validating certificate extended key usage
      Sun May 19 09:47:27 2019 ++ Certificate has EKU (str) TLS Web Server Authentication, expects TLS Web Server Authentication
      Sun May 19 09:47:27 2019 VERIFY EKU OK
      Sun May 19 09:47:27 2019 VERIFY OK: depth=0, C=US, ST=VPN, L=VPN, O=VPN, OU=VPN, CN=vpn, name=VPN
      Sun May 19 09:47:27 2019 Data Channel Encrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
      Sun May 19 09:47:27 2019 Data Channel Encrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
      Sun May 19 09:47:27 2019 Data Channel Decrypt: Cipher 'AES-256-CBC' initialized with 256 bit key
      Sun May 19 09:47:27 2019 Data Channel Decrypt: Using 256 bit message hash 'SHA256' for HMAC authentication
      Sun May 19 09:47:27 2019 Control Channel: TLSv1, cipher TLSv1/SSLv3 ECDHE-RSA-AES256-SHA, 2048 bit RSA
      Sun May 19 09:47:27 2019 [vpn] Peer Connection Initiated with [AF_INET]81.171.85.68:1194
      Sun May 19 09:47:30 2019 SENT CONTROL [vpn]: 'PUSH_REQUEST' (status=1)
      Sun May 19 09:47:30 2019 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 198.18.0.1,dhcp-option DNS 198.18.0.2,rcvbuf 493216,sndbuf 493216,explicit-exit-notify 5,comp-lzo no,route-gateway 172.21.92.1,topology subnet,ping 20,ping-restart 40,ifconfig 172.21.92.209 255.255.254.0,peer-id 2'
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: timers and/or timeouts modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: explicit notify parm(s) modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: LZO parms modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
      Sun May 19 09:47:30 2019 Socket Buffers: R=[131072->327680] S=[131072->327680]
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: --ifconfig/up options modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: route options modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: route-related options modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
      Sun May 19 09:47:30 2019 OPTIONS IMPORT: peer-id set
      Sun May 19 09:47:30 2019 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 IFACE=eth0 HWADDR=00:1d:ec:12:e1:02
      Sun May 19 09:47:30 2019 TUN/TAP device tun0 opened
      Sun May 19 09:47:30 2019 TUN/TAP TX queue length set to 100
      Sun May 19 09:47:30 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
      Sun May 19 09:47:30 2019 /sbin/ip link set dev tun0 up mtu 1500
      Sun May 19 09:47:30 2019 /sbin/ip addr add dev tun0 172.21.92.209/23 broadcast 172.21.93.255
      Sun May 19 09:47:30 2019 /etc/openvpn/update-resolv-conf-BJ tun0 1500 1570 172.21.92.209 255.255.254.0 init
      env: can't execute 'bash': No such file or directory
      Sun May 19 09:47:30 2019 WARNING: Failed running command (--up/--down): could not execute external program
      Sun May 19 09:47:30 2019 Exiting due to fatal error

      Mach ich evtl. bei der Rechtevergabe etwas falsch?
      Stehen die Zeilen evtl. in der "openvpnvti.conf" an der falschen Position?
      Vu+ hat kein Passwort...hat es damit zu tun?

      root@vuuno4kse:~# file /etc/openvpn/update-resolv-conf-BJ
      /etc/openvpn/update-resolv-conf-BJ: a /usr/bin/env bash script, ASCII text executable
      root@vuuno4kse:~#

      intodns.com/newshosting.com

      DNS scheint vorhanden zu sein vom Anbieter...
      VU+ UNO 4K SE (14.*.)

      Dieser Beitrag wurde bereits 2 mal editiert, zuletzt von hgdo ()

    • Rapp schrieb:

      Mach ich evtl. bei der Rechtevergabe etwas falsch?
      Stehen die Zeilen evtl. in der "openvpnvti.conf" an der falschen Position?
      Vu+ hat kein Passwort...hat es damit zu tun?
      glaube ich nicht, kann aber nicht schaden: chmod 775 /etc/openvpn/update-resolv-conf-BJ
      nein
      und nein

      Die Fehlermeldung kommt (gerade ausprobiert), wenn shebang oder environment fehlt oder falsch ist.
      Ändere nochmal erste Zeile von #!/usr/bin/env bash
      in

      Shell-Script

      1. #!/bin/sh
      und dann erstmal wieder von hand starten:

      Quellcode

      1. /etc/openvpn/update-resolv-conf-BJ
    • Telnet: chmod 775 /etc/openvpn/update-resolv-conf-BJ


      Danach "#!/bin/sh" geändert in update-resolv-conf-BJ....mit Filezilla in den Ordner geschoben. (etc/openvpn)

      von Hand gestartet:

      /etc/openvpn/update-resolv-conf-BJ



      Spoiler anzeigen
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: timers and/or timeouts modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: explicit notify parm(s) modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: LZO parms modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
      Sun May 19 15:53:30 2019 Socket Buffers: R=[131072->327680] S=[131072->327680]
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: --ifconfig/up options modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: route options modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: route-related options modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
      Sun May 19 15:53:30 2019 OPTIONS IMPORT: peer-id set
      Sun May 19 15:53:30 2019 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 IFACE=eth0 HWADDR=00:1d:ec:12:e1:02
      Sun May 19 15:53:30 2019 TUN/TAP device tun0 opened
      Sun May 19 15:53:30 2019 TUN/TAP TX queue length set to 100
      Sun May 19 15:53:30 2019 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
      Sun May 19 15:53:30 2019 /sbin/ip link set dev tun0 up mtu 1500
      Sun May 19 15:53:30 2019 /sbin/ip addr add dev tun0 172.21.92.209/23 broadcast 172.21.93.255
      Sun May 19 15:53:30 2019 /etc/openvpn/update-resolv-conf-BJ tun0 1500 1570 172.21.92.209 255.255.254.0 init
      nameserver 198.18.0.1
      nameserver 198.18.0.2
      Sun May 19 15:53:31 2019 /sbin/ip route add 81.171.85.68/32 via 192.168.178.1
      Sun May 19 15:53:31 2019 /sbin/ip route add 0.0.0.0/1 via 172.21.92.1
      Sun May 19 15:53:31 2019 /sbin/ip route add 128.0.0.0/1 via 172.21.92.1
      Sun May 19 15:53:31 2019 Initialization Sequence Completed



      :P :P :P :P :P :P :P :P :P :P :P
      VU+ UNO 4K SE (14.*.)

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