Check alle échte Black Friday-deals Ook zo moe van nepaanbiedingen? Wij laten alleen échte deals zien

OpenVPN werkt niet achter een proxy

Pagina: 1
Acties:

  • ad6922
  • Registratie: Mei 2010
  • Laatst online: 30-08 15:52
Ik heb een server thuis staan die ik via OpenVPN vanaf het werk wil bereiken. OP het werk moet ik langs een proxy server. OpenVPN heeft daar moeite mee, want nadat eerst een connectie lijkt gelegd wordt in de volgende seconde aangegeven dat authenticatie benodigd is.

Ik heb het in de client als volgt ingevuld:
http-proxy xx.xx.xx.xx 8080 file ntlm

en dan heb ik een apart bestandje "file" het volgende ingevuld:
line1: de gebruikersnaam
line2: het wachtwoord

IK heb eerder al een post gezien dat je mogelijk proxifier moet gebruiken om dit op te lossen maar daar wil ik in eerste instantie nog niet mee werken om te voorkomen dat ik problemen krijg met alledaags gebruik van mijn werkgerelateerde applicaties.

Zie bijgaand de configuration file en logging. Iemand goede ideeen?

CLIENT CONFIGURATION FILE:

##############################################
# Sample client-side OpenVPN 2.0 config file #
# for connecting to multi-client server. #
# #
# This configuration can be used by multiple #
# clients, however each client should have #
# its own cert and key files. #
# #
# On Windows, you might want to rename this #
# file so it has a .ovpn extension #
##############################################

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

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

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

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

# The hostname/IP and port of the server.
# You can have multiple remote entries
# to load balance between the servers.
#
port 443
remote myserver.dnsalias.com

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

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

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

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

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

# If you are connecting through an
# HTTP proxy to reach the actual OpenVPN
# server, put the proxy server/IP and
# port number here. See the man page
# if your proxy server requires
# authentication.
http-proxy-retry
http-proxy-option VERSION 1.0
http-proxy-option AGENT "compatible; firefox; E680I ver 20050502"
http-proxy proxy.company.local 8080 file ntlm

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

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

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

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

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

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

# Set log file verbosity.
verb 3

# Silence repeating messages
;mute 20

LOG FILE WHEN TRYING TO CONNECT:
Tue May 18 21:01:08 2010 OpenVPN 2.0.9 Win32-MinGW [SSL] [LZO] built on Oct 1 2006
Tue May 18 21:01:09 2010 Control Channel MTU parms [ L:1543 D:140 EF:40 EB:0 ET:0 EL:0 ]
Tue May 18 21:01:09 2010 Data Channel MTU parms [ L:1543 D:1450 EF:43 EB:4 ET:0 EL:0 ]
Tue May 18 21:01:09 2010 Local Options hash (VER=V4): 'db02a8f8'
Tue May 18 21:01:09 2010 Expected Remote Options hash (VER=V4): '7e068940'
Tue May 18 21:01:09 2010 Attempting to establish TCP connection with xx.xx.xxx.x:8080
Tue May 18 21:01:09 2010 TCP connection established with xx.xx.xxx.x:8080
Tue May 18 21:01:09 2010 Send to HTTP proxy: 'CONNECT myserver.dnsalias.com:443 HTTP/1.0'
Tue May 18 21:01:09 2010 Attempting NTLM Proxy-Authorization phase 1
Tue May 18 21:01:11 2010 HTTP proxy returned: 'HTTP/1.1 407 Proxy Authentication Required ( Access is denied. )'
Tue May 18 21:01:11 2010 Proxy requires authentication
Tue May 18 21:01:11 2010 HTTP proxy returned: 'Via: 1.1 SP0513'
Tue May 18 21:01:11 2010 HTTP proxy returned: 'Proxy-Authenticate: NTLM TlRMTVNTUAACAAAAAAAAADgAAAACAgACnyaKn+s4BngAAAAAAAAAAAAAAAA4AAAABQLODgAAAA8='
Tue May 18 21:01:11 2010 auth string: 'TlRMTVNTUAACAAAAAAAAADgAAAACAgACnyaKn+s4BngAAAAAAAAAAAAAAAA4AAAABQLODgAAAA8='
Tue May 18 21:01:11 2010 Received NTLM Proxy-Authorization phase 2 response
Tue May 18 21:01:16 2010 recv_line: TCP port read timeout expired
Tue May 18 21:01:16 2010 Send to HTTP proxy: 'CONNECT myserver.dnsalias.com:443 HTTP/1.0'
Tue May 18 21:01:17 2010 Send to HTTP proxy: 'Host: myserver.dnsalias.com'
Tue May 18 21:01:17 2010 Attempting NTLM Proxy-Authorization phase 3
Tue May 18 21:01:17 2010 Send to HTTP proxy: 'Proxy-Authorization: NTLM TlRMTVNTUAADAAAAAAAAAF4AAAAYABgAQAAAAAAAAABeAAAABgAGAFgAAAAAAAAAXgAAAAAAAABeAAAAAgIAAP/Zlw4uZTfVCPkMQtAbQOjzexUScWU0aXVhczMwMQ=='
Tue May 18 21:01:19 2010 HTTP proxy returned: 'HTTP/1.1 200 Connection established'
Tue May 18 21:01:21 2010 TCPv4_CLIENT link local: [undef]
Tue May 18 21:01:21 2010 TCPv4_CLIENT link remote: xx.xx.xxx.x:8080
Tue May 18 21:01:21 2010 Connection reset, restarting [0]
Tue May 18 21:01:21 2010 TCP/UDP: Closing socket
Tue May 18 21:01:21 2010 SIGUSR1[soft,connection-reset] received, process restarting
Tue May 18 21:01:21 2010 Restart pause, 5 second(s)
Tue May 18 21:01:26 2010 Re-using SSL/TLS context
Tue May 18 21:01:26 2010 Control Channel MTU parms [ L:1543 D:140 EF:40 EB:0 ET:0 EL:0 ]
Tue May 18 21:01:26 2010 Data Channel MTU parms [ L:1543 D:1450 EF:43 EB:4 ET:0 EL:0 ]
Tue May 18 21:01:26 2010 Local Options hash (VER=V4): 'db02a8f8'
Tue May 18 21:01:26 2010 Expected Remote Options hash (VER=V4): '7e068940'
Tue May 18 21:01:26 2010 Attempting to establish TCP connection with xx.xx.xxx.x:8080
Tue May 18 21:01:26 2010 TCP connection established with xx.xx.xxx.x:8080
Tue May 18 21:01:26 2010 Send to HTTP proxy: 'CONNECT myserver.dnsalias.com:443 HTTP/1.0'
Tue May 18 21:01:26 2010 Attempting NTLM Proxy-Authorization phase 1