computer-fan
Goto Top

OpenVPN für Win als PPTP-Client (VPN-Clinet) konfigurieren, wie muß die vpn.ovpn Kofiguratiosdatei lauten?

Hallo,

ich möchte anstatt des Windows-PPTP-VPN-Client gern OpenVPN unter Windows nutzten.

Wie muß die Konfigurationsdatei leiten für den OpenVPN-Client?

Meine OpenVPN-Client-Datei client.ovpn sieht bis jetzt so aus:
Code:
  1. Specify that we are a client and that we
  2. will be pulling certain config file directives
  3. from the server.
client

  1. Use the same setting as you are using on
  2. the server.
  3. On most systems, the VPN will not function
  4. unless you partially or fully disable
  5. the firewall for the TUN/TAP interface.
;dev tap
dev tun

remote 192.168.0.1
proto udp
comp-lzo
persist-tun
persist-key
ping-timer-rem
ping-restart 60
tun-mtu 1500
fragment 1300
mssfix
verb 3
Code-Ende.

Daten den VPN-Server:
- PPTP-Server
- keine Verschlüsselung der Daten
- Benutzername und Kenwort benötigt

Was muß ich in der Datei ändern damit es funktioniert?

Mit dem Windows-VPN-Client kann ich mich ohne Probleme auf den PPTP-Server verbinden.

Danke.

Content-Key: 87590

Url: https://administrator.de/contentid/87590

Printed on: April 18, 2024 at 04:04 o'clock

Member: Jere
Jere May 14, 2008 at 14:28:55 (UTC)
Goto Top
default template:

#============================================================================#
# Specify the Hostname or the IP, the port and the protocol (tcp or udp)     #
# to reach the OpenVPN Server.                                               #
# The Hostname can be a dynamic FQDN such as a DynDNS one.                   #
#============================================================================#

remote zeroshell.example.com 1194
proto tcp


#============================================================================#
# You must specify this parameter if you want the Username and Password      #
# request to appear. Comment it if you only use X.509 Authentication.        #
#============================================================================#

auth-user-pass


#============================================================================#
# You need to specify the file which contains the certificate (PEM format)   #
# of the Certification Authority that signed the OpenVPN server certificate. #
# You can export it by clicking the hyperlink CA on the login page of        #
# ZeroShell.                                                                 #
# Notice that you need to specify this parameter also if you use             #
# "Password Only" Authentication.                                            # 
#============================================================================#

ca CA.pem


#============================================================================#
# If you want to use the Client X.509 Authentication you must specify        #
# a client certificate and the related private key in pem format.            #
# You can merge both in the same file.                                       #
#============================================================================#

;cert client.pem
;key  client.pem


#============================================================================#
# You should not need to change these settings.                              #
#============================================================================#

comp-lzo
verb 3
mute 20
resolv-retry infinite
nobind
client
dev tap
persist-key
persist-tun

Quelle
http://www.zeroshell.net/eng/download/zeroshell.ovpn
und
http://www.zeroshell.net/eng/openvpn-client/#OpenVPN-Configuration-File
Member: Computer-Fan
Computer-Fan May 14, 2008 at 17:51:06 (UTC)
Goto Top
Hi,

was muß ich auskommentiern oder wie umändern damit ich keine Verschlüsselung habe bei PPTP für den Datenverkehr, das bietet der PPTP-Server nicht an.

Gruß.
Member: Jere
Jere May 14, 2008 at 18:01:20 (UTC)
Goto Top
Hi,
gern geschehen!

Wenn ich dein Zeugs ergooglen kann, kannst du es auch.

Viel Glück!
J
Mitglied: 9299
9299 May 15, 2008 at 04:07:07 (UTC)
Goto Top
Openvpn nutzt kein PPTP sondern ist ein SSL-VPN. Du brauchst also einen OpenVPN Server und einen Client.
Eine Server Konfiguration sieht etwa so aus.

###Beginn###


#Ich bin der Server
mode server
tls-server

#Port und Protokoll festlegen
proto udp
port 1194

#den Win32 Tap Adapter auswählen
dev tap
dev-node TAP-VPN


#Verschlüsselung
dh C:\\Programme\\openvpn\\easy-rsa\\keys\\dh1024.pem
ca C:\\Programme\\openvpn\\easy-rsa\\keys\\ca.crt
key C:\\Programme\\openvpn\\easy-rsa\\keys\\server1.key
cert C:\\Programme\\openvpn\\easy-rsa\\keys\\server1.crt

#Verwaltung der IP-Adressen
#IP und Subnetz des Servers anpassen
ifconfig 192.168.10.200 255.255.255.0

  1. der Client erhält eine IP aus diesen Bereich
ifconfig-pool 192.168.10.201 192.168.10.210
;ifconfig-noexec


#damit sich die Clients untereinander sehen können
client-to-client

#Wiederverbinden, falls die Verbindung unterbrochen wurde
float

#Resistenter gegen Verbindungsfehler machen
ping 10
ping-restart 180
ping-timer-rem
push "ping 10"
push "ping-restart 180"
push "ping-timer-rem"

#Im Fall von verschiedenen Versionen
tun-mtu 1500
tun-mtu-extra 32

  1. Log-Protokoll
verb 4
mute 50

#Dienst
;daemon

#Route übergeben
push "route-gateway 192.168.10.200"
push "route 192.168.1.0 255.255.255.0"
push "dhcp-option DNS 192.168.1.252"


###Ende###

Die IP Adressen sollten nicht die selben sein wie die in deinem Netz. Zusätzlich musst du Routing aktivieren. Wenn du Routing und Ras an hast , da ja PPTP läuft sollte das der Fall sein , ist Routing automatisch an.

Eine Client Konfig sieht etwa so aus.


###Beginn###


  1. Specify that we are a client and that we
  2. will be pulling certain config file directives
  3. from the server.
client

  1. Use the same setting as you are using on
  2. the server.
  3. On most systems, the VPN will not function
  4. unless you partially or fully disable
  5. the firewall for the TUN/TAP interface.
dev tap
;dev tun

  1. Windows needs the TAP-Win32 adapter name
  2. from the Network Connections panel
  3. if you have more than one. On XP SP2,
  4. you may need to disable the firewall
  5. for the TAP adapter.
;dev-node MyTap

  1. Are we connecting to a TCP or
  2. UDP server? Use the same setting as
  3. on the server.
;proto tcp
proto udp

  1. The hostname/IP and port of the server.
  2. You can have multiple remote entries
  3. to load balance between the servers.
remote dyndns-name-meines-netzes 1194

  1. Choose a random host from the remote
  2. list for load-balancing. Otherwise
  3. try hosts in the order specified.
;remote-random

  1. Keep trying indefinitely to resolve the
  2. host name of the OpenVPN server. Very useful
  3. on machines which are not permanently connected
  4. to the internet such as laptops.
resolv-retry infinite

  1. Most clients don't need to bind to
  2. a specific local port number.
nobind

  1. Downgrade privileges after initialization (non-Windows only)
;user nobody
;group nobody

  1. Try to preserve some state across restarts.
persist-key
persist-tun

  1. If you are connecting through an
  2. HTTP proxy to reach the actual OpenVPN
  3. server, put the proxy server/IP and
  4. port number here. See the man page
  5. if your proxy server requires
  6. authentication.
;http-proxy-retry # retry on connection failures
;http-proxy [proxy server] [proxy port #]
;ifconfig 10.7.0.6 255.255.255.0

  1. Wireless networks often produce a lot
  2. of duplicate packets. Set this flag
  3. to silence duplicate packet warnings.
;mute-replay-warnings

  1. SSL/TLS parms.
  2. See the server config file for more
  3. description. It's best to use
  4. a separate .crt/.key file pair
  5. for each client. A single ca
  6. file can be used for all clients.
ca ca.crt
cert client.crt
key client.key

  1. Verify server certificate by checking
  2. that the certicate has the nsCertType
  3. field set to "server". This is an
  4. important precaution to protect against
  5. a potential attack discussed here:
  6. http://openvpn.net/howto.html#mitm
#
  1. To use this feature, you will need to generate
  2. your server certificates with the nsCertType
  3. field set to "server". The build-key-server
  4. script in the easy-rsa folder will do this.
ns-cert-type server

  1. If a tls-auth key is used on the server
  2. then every client must also have the key.
;tls-auth ta.key 1

  1. Select a cryptographic cipher.
  2. If the cipher option is used on the server
  3. then you must also specify it here.
;cipher x

  1. Enable compression on the VPN link.
  2. Don't enable this unless it is also
  3. enabled in the server config file.
;comp-lzo

  1. Set log file verbosity.
verb 3

  1. Silence repeating messages
;mute 20

  1. Route empfangen
pull

###Ende###

Dazu musst du noch für jeden Client ein Zertifikat erstellen oder dir reicht die Authentifizierung per Kennwort.
Wie das geht ist auf den Seiten von OpenVPN.org gut beschrieben.
Member: Computer-Fan
Computer-Fan May 15, 2008 at 06:31:12 (UTC)
Goto Top
Hallo,

Openvpn nutzt kein PPTP sondern ist ein
SSL-VPN. Du brauchst also einen OpenVPN
Server und einen Client.
Eine Server Konfiguration sieht etwa so
aus.

den PPTP-VPN-Server kann ich nicht ändern, daher muß ich einen PPTP-Client nutzten.
Sehe ich es also richtig das OpenVPN gar kein PPTP beherscht?
Dann kann ich OpenVPN als Client nicht nutzten dafür.

Danke für die Info, hat mir Zeitgespart was zu versuchen was nicht geht.

Danke face-smile .