OpenVPN Anleitung für update-resolv-conf

    This site uses cookies. By continuing to browse this site, you are agreeing to our Cookie Policy.

    • @ Banana Joe
      Hab das neue File mal geladen und getestet. Vielen Dank.
      Folgend meine Ergebnisse... die mich doch etwas verwirren!!!

      log.txt
      Display Spoiler
      Fri Oct 13 21:24:16 2017 OpenVPN 2.3.6 arm-oe-linux-gnueabi [SSL (OpenSSL)] [LZO] [EPOLL] [MH] [IPv6] built on Nov 18 2016
      Fri Oct 13 21:24:16 2017 library versions: OpenSSL 1.0.2a 19 Mar 2015, LZO 2.09
      Fri Oct 13 21:24:16 2017 WARNING: file 'login.txt' is group or others accessible
      Fri Oct 13 21:24:16 2017 NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
      Fri Oct 13 21:24:16 2017 Socket Buffers: R=[163840->131072] S=[163840->131072]
      Fri Oct 13 21:24:21 2017 UDPv4 link local: [undef]
      Fri Oct 13 21:24:21 2017 UDPv4 link remote: [AF_INET]209.99.60.34:1194
      Fri Oct 13 21:24:21 2017 TLS: Initial packet from [AF_INET]209.99.60.34:1194, sid=4c3b563f bae4326d
      Fri Oct 13 21:24:21 2017 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
      Fri Oct 13 21:24:21 2017 VERIFY OK: depth=1, C=KY, ST=GrandCayman, L=GeorgeTown, O=GoldenFrog-Inc, CN=GoldenFrog-Inc CA, emailAddress=admin@goldenfrog.com
      Fri Oct 13 21:24:21 2017 VERIFY X509NAME OK: C=KY, ST=GrandCayman, L=GeorgeTown, O=GoldenFrog-Inc, CN=ch1.vyprvpn.com, emailAddress=admin@goldenfrog.com
      Fri Oct 13 21:24:21 2017 VERIFY OK: depth=0, C=KY, ST=GrandCayman, L=GeorgeTown, O=GoldenFrog-Inc, CN=ch1.vyprvpn.com, emailAddress=admin@goldenfrog.com
      Fri Oct 13 21:24:22 2017 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
      Fri Oct 13 21:24:22 2017 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
      Fri Oct 13 21:24:22 2017 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
      Fri Oct 13 21:24:22 2017 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
      Fri Oct 13 21:24:22 2017 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
      Fri Oct 13 21:24:22 2017 [ch1.vyprvpn.com] Peer Connection Initiated with [AF_INET]209.99.60.34:1194
      Fri Oct 13 21:24:24 2017 SENT CONTROL [ch1.vyprvpn.com]: 'PUSH_REQUEST' (status=1)
      Fri Oct 13 21:24:24 2017 PUSH: Received control message: 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS 10.2.34.1,explicit-exit-notify 5,rcvbuf 524288,route-gateway 10.2.34.1,topology subnet,ping 10,ping-restart 60,ifconfig 10.2.34.123 255.255.255.0'
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: timers and/or timeouts modified
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: explicit notify parm(s) modified
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: --sndbuf/--rcvbuf options modified
      Fri Oct 13 21:24:24 2017 Socket Buffers: R=[131072->327680] S=[131072->131072]
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: --ifconfig/up options modified
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: route options modified
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: route-related options modified
      Fri Oct 13 21:24:24 2017 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
      Fri Oct 13 21:24:24 2017 ROUTE_GATEWAY 192.168.178.1/255.255.255.0 IFACE=eth0 HWADDR=00:1d:ec:0f:e2:cc
      Fri Oct 13 21:24:24 2017 TUN/TAP device tun0 opened
      Fri Oct 13 21:24:24 2017 TUN/TAP TX queue length set to 100
      Fri Oct 13 21:24:24 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0
      Fri Oct 13 21:24:24 2017 /sbin/ip link set dev tun0 up mtu 1500
      Fri Oct 13 21:24:24 2017 /sbin/ip addr add dev tun0 10.2.34.123/24 broadcast 10.2.34.255
      Fri Oct 13 21:24:24 2017 /etc/openvpn/update-resolv-conf-BJ tun0 1500 1542 10.2.34.123 255.255.255.0 init
      nameserver 10.2.34.1
      Fri Oct 13 21:24:24 2017 /sbin/ip route add 209.99.60.34/32 via 192.168.178.1
      Fri Oct 13 21:24:24 2017 /sbin/ip route add 0.0.0.0/1 via 10.2.34.1
      Fri Oct 13 21:24:24 2017 /sbin/ip route add 128.0.0.0/1 via 10.2.34.1
      Fri Oct 13 21:24:24 2017 Initialization Sequence Completed


      cat /etc/resolv.conf
      Display Spoiler
      #
      # macOS Notice
      #
      # This file is not consulted for DNS hostname resolution, address
      # resolution, or the DNS query routing mechanism used by most
      # processes on this system.
      #
      # To view the DNS configuration used by this system, use:
      # scutil --dns
      #
      # SEE ALSO
      # dns-sd(1), scutil(8)
      #
      # This file is automatically generated.
      #
      domain fritz.box
      nameserver 192.168.178.1
      nameserver fd00::e228:6dff:fe48:b95e

      nslookup abc.de
      Display Spoiler
      Server:192.168.178.1
      Address: 192.168.178.1#53

      Non-authoritative answer:
      Name: abc.de
      Address: 194.49.7.145

      Vielleicht kannst du etwas Licht ins Dunkel bringen!
      Gruß Frank
      VU+ UNO 4K DVB-C
      LG OLED 55C7D

      The post was edited 1 time, last by hgdo ().

    • bash: opkg: command not found

      Konnte übrigens das chmod +x /etc/openvpn/update-resolv-conf-BJ auch nicht ausführen.

      Hab es manuell auf 755 gesetzt.


      Ich hab das Gefühl, ich mache irgendwo einen Fehler...
      VU+ UNO 4K DVB-C
      LG OLED 55C7D

      The post was edited 1 time, last by Framat ().

    • Ich Depp! Muss natürlich als Root auf die Box ...


      resolvconf

      Display Spoiler
      root@vuuno4k:~# resolvconf
      Usage: resolvconf [options]

      Inform the system about any DNS updates.

      Options:
      -a $INTERFACE Add DNS information to the specified interface
      (DNS supplied via stdin in resolv.conf format)
      -m metric Give the added DNS information a metric
      -p Mark the interface as private
      -d $INTERFACE Delete DNS information from the specified interface
      -f Ignore non existant interfaces
      -I Init the state dir
      -u Run updates from our current DNS information
      -l [$PATTERN] Show DNS information, optionally from interfaces
      that match the specified pattern
      -i [$PATTERN] Show interfaces that have supplied DNS information
      optionally from interfaces that match the specified
      pattern
      -v [$PATTERN] echo NEWDOMAIN, NEWSEARCH and NEWNS variables to
      the console
      -h Show this help cruft




      cat /etc/resolv.conf

      Display Spoiler
      root@vuuno4k:~# cat /etc/resolv.conf
      # Generated by resolvconf
      domain fritz.box
      nameserver 10.2.34.1
      nameserver 8.8.8.8
      nameserver 192.168.178.1



      nslookup abc.de

      Display Spoiler
      root@vuuno4k:~# nslookup abc.de
      Server: 10.2.34.1
      Address 1: 10.2.34.1

      Name: abc.de
      Address 1: 194.49.7.145 mail.abc.de



      Wobei mich die ip194.49.7.145 irritiert.
      VU+ UNO 4K DVB-C
      LG OLED 55C7D

      The post was edited 1 time, last by Framat ().

    • Hi ,
      habe auch nach Anleitung alles zum laufen gebracht.
      Habe ein Octagon mit Openatv 6.1.
      in der LOG habe ich ein Fehler drin stehen :

      Thu Oct 19 13:31:27 2017 us=788817 /etc/openvpn/update-resolv-conf tun0 1500 1609 10.3.2.251 255.255.255.0 init
      /etc/openvpn/update-resolv-conf: line 85: -a: command not found

      Ignoreiren ?
    • Banana Joe wrote:

      Nein, da fehlt bei dir offenbar das resolvconf Tool. Bei VTI heißt das Paket openresolv
      Schau mal, ob du das nachinstallierren kannst.
      Danke für den Tip,
      Hab Paket Paket openresolv_3.5.2-r0_all.ipk nachinstalliert und siehe da es läuft .
      bin happy
      Thu Oct 19 19:55:28 2017 us=149134 /etc/openvpn/update-resolv-conf tun0 1500 1609 10.1.209.241 255.255.255.0 init
      nameserver 31.204.150.153
      nameserver 178.162.209.143
    • Hallo,

      erst mal vielen Dank für die Anleitung und den Download! Super, daran denkt ein 0815 User nie, so wie ich auch. Danke an @grazzor der mich hier her geroutet hat.

      Ich habe alles so eingerichtet, wie beschrieben. Es scheint auch zu funktionieren, glaube ich.
      cat /etc/resolv.conf liefert folgendes

      domain fritzbox

      nameserver 78.46.223.24
      nameserver 162.242.211.137
      nameserver 192.X.X.X

      kann das so passen? der letzte aufgeführte nameserver ist meine Fritzbox.
      "Wozu Socken, sie schaffen nur Löcher"
      A. Einstein

      Kein Support via E-Mail! No email support!

      The post was edited 1 time, last by Stan2017 ().

    • Echt? Òla sag blos, ich habe wieder alles richtig gemacht :D

      Cool! :happy3:
      "Wozu Socken, sie schaffen nur Löcher"
      A. Einstein

      Kein Support via E-Mail! No email support!