Trouble with Xp

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
jon
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 04, 2011 9:41 pm

Trouble with Xp

Post by jon » Thu Aug 04, 2011 11:10 pm

Hello,

I'm trying to figure out the problem in my Vpn configuration for days,
I have configured as OpenVPN server a windows 2008 server and I have configured as OpenVPN client two computers which are both running windows 7.

So far, everything is Ok.

I have also configured as OpenVPN client two computers which are both running windows xp, but the VPN doesn't work.
When the client installed on xp tries to connect to the server, TCP connection and TSL negotiation are Ok, TAP seem correct (it is able to get the TCP-IP configuration from the remote Dhcp server), but i can't even ping the remote server!
At first, client and server, through TAP, exchange only few packets and then nothing, TAP doesn't receive anymore; in one of the two Pcs with xp, this behavior lead to the reset of the connection.
it can't be a bandwidth issue, from the same AP i have been able to connect with my pc with windows 7

Here are my configurations (client configurations are almost the same for win7 and xp):

SERVER

# Configurazione server
# ---------------------
#
# File: server.ovpn
#
dev tap # Dispositivo di rete virtuale TAP
dev-node "TAP-Win32 Adapter V9"
proto tcp-server
ifconfig 128.0.0.220 255.255.255.0 # IP del server VPN
tls-server

# Percorsi dei certificati
#
key "C:\\Program Files (x86)\\OpenVPN\\config\\server.key"
dh "C:\\Program Files (x86)\\OpenVPN\\config\\dh2048.pem"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\server.crt"
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
#
#
local 128.0.0.219 # IP "reale" del server VPN
#
lport 1194 # Porta di ascolto del server
verb 4
#
mode server
#duplicate-cn
management 128.0.0.219 1195
#
tls-auth "C:\\Program Files (x86)\\OpenVPN\\config\\key.txt" 0
#
#
#ifconfig-pool 128.0.0.221 128.0.0.250 # Range di IP da assegnare ai clients
#
#
mssfix 1450
#
# Mantiene il tunnel aperto effettuando dei ping a intervalli regolari
#
push "ping 10"
push "ping-restart 60"
ping 10
ping-restart 120

CLIENT

# Configurazione Client Windows
# -----------------------------
#
# File: client.ovpn
#
remote x.x.x.x
rport 1194 # Porta standard
#
proto tcp-client
tls-client
dev tap
#
#
ca "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\Giovanni_Portatile.crt"
key "C:\\Program Files\\OpenVPN\\config\\Giovanni_Portatile.key"
ns-cert-type server
#
#
tls-auth "C:\\Program Files\\OpenVPN\\config\\key.txt" 1
#
pull
route 128.0.0.0 255.255.255.0 128.0.0.100
#
#
verb 4

Connection log client side

Fri Aug 05 00:46:14 2011 us=687000 Current Parameter Settings:
Fri Aug 05 00:46:14 2011 us=687000 config = 'client.ovpn'
Fri Aug 05 00:46:14 2011 us=687000 mode = 0
Fri Aug 05 00:46:14 2011 us=687000 show_ciphers = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 show_digests = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 show_engines = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 genkey = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 key_pass_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 show_tls_ciphers = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 Connection profiles [default]:
Fri Aug 05 00:46:14 2011 us=687000 proto = tcp-client
Fri Aug 05 00:46:14 2011 us=687000 local = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 local_port = 0
Fri Aug 05 00:46:14 2011 us=687000 remote = 'x.x.x.x'
Fri Aug 05 00:46:14 2011 us=687000 remote_port = 1194
Fri Aug 05 00:46:14 2011 us=687000 remote_float = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 bind_defined = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 bind_local = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 connect_retry_seconds = 5
Fri Aug 05 00:46:14 2011 us=687000 connect_timeout = 10
Fri Aug 05 00:46:14 2011 us=687000 connect_retry_max = 0
Fri Aug 05 00:46:14 2011 us=687000 socks_proxy_server = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 socks_proxy_port = 0
Fri Aug 05 00:46:14 2011 us=687000 socks_proxy_retry = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 Connection profiles END
Fri Aug 05 00:46:14 2011 us=687000 remote_random = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 ipchange = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 dev = 'tap'
Fri Aug 05 00:46:14 2011 us=687000 dev_type = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 dev_node = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 lladdr = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 topology = 1
Fri Aug 05 00:46:14 2011 us=687000 tun_ipv6 = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 ifconfig_local = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 ifconfig_remote_netmask = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 ifconfig_noexec = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 ifconfig_nowarn = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 shaper = 0
Fri Aug 05 00:46:14 2011 us=687000 tun_mtu = 1500
Fri Aug 05 00:46:14 2011 us=687000 tun_mtu_defined = ENABLED
Fri Aug 05 00:46:14 2011 us=687000 link_mtu = 1500
Fri Aug 05 00:46:14 2011 us=687000 link_mtu_defined = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 tun_mtu_extra = 32
Fri Aug 05 00:46:14 2011 us=687000 tun_mtu_extra_defined = ENABLED
Fri Aug 05 00:46:14 2011 us=687000 fragment = 0
Fri Aug 05 00:46:14 2011 us=687000 mtu_discover_type = -1
Fri Aug 05 00:46:14 2011 us=687000 mtu_test = 0
Fri Aug 05 00:46:14 2011 us=687000 mlock = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 keepalive_ping = 0
Fri Aug 05 00:46:14 2011 us=687000 keepalive_timeout = 0
Fri Aug 05 00:46:14 2011 us=687000 inactivity_timeout = 0
Fri Aug 05 00:46:14 2011 us=687000 ping_send_timeout = 0
Fri Aug 05 00:46:14 2011 us=687000 ping_rec_timeout = 0
Fri Aug 05 00:46:14 2011 us=687000 ping_rec_timeout_action = 0
Fri Aug 05 00:46:14 2011 us=687000 ping_timer_remote = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 remap_sigusr1 = 0
Fri Aug 05 00:46:14 2011 us=687000 explicit_exit_notification = 0
Fri Aug 05 00:46:14 2011 us=687000 persist_tun = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 persist_local_ip = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 persist_remote_ip = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 persist_key = DISABLED
Fri Aug 05 00:46:14 2011 us=687000 mssfix = 1450
Fri Aug 05 00:46:14 2011 us=687000 resolve_retry_seconds = 1000000000
Fri Aug 05 00:46:14 2011 us=687000 username = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 groupname = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 chroot_dir = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 cd_dir = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=687000 writepid = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=859000 up_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=859000 down_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=859000 down_pre = DISABLED
Fri Aug 05 00:46:14 2011 us=859000 up_restart = DISABLED
Fri Aug 05 00:46:14 2011 us=859000 up_delay = DISABLED
Fri Aug 05 00:46:14 2011 us=859000 daemon = DISABLED
Fri Aug 05 00:46:14 2011 us=859000 inetd = 0
Fri Aug 05 00:46:14 2011 us=859000 log = DISABLED
Fri Aug 05 00:46:14 2011 us=859000 suppress_timestamps = DISABLED
Fri Aug 05 00:46:14 2011 us=859000 nice = 0
Fri Aug 05 00:46:14 2011 us=859000 verbosity = 4
Fri Aug 05 00:46:14 2011 us=859000 mute = 0
Fri Aug 05 00:46:14 2011 us=859000 gremlin = 0
Fri Aug 05 00:46:14 2011 us=859000 status_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=859000 status_file_version = 1
Fri Aug 05 00:46:14 2011 us=859000 status_file_update_freq = 60
Fri Aug 05 00:46:14 2011 us=859000 occ = ENABLED
Fri Aug 05 00:46:14 2011 us=859000 rcvbuf = 0
Fri Aug 05 00:46:14 2011 us=859000 sndbuf = 0
Fri Aug 05 00:46:14 2011 us=875000 sockflags = 0
Fri Aug 05 00:46:14 2011 us=875000 fast_io = DISABLED
Fri Aug 05 00:46:14 2011 us=875000 lzo = 0
Fri Aug 05 00:46:14 2011 us=875000 route_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 route_default_gateway = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 route_default_metric = 0
Fri Aug 05 00:46:14 2011 us=875000 route_noexec = DISABLED
Fri Aug 05 00:46:14 2011 us=875000 route_delay = 5
Fri Aug 05 00:46:14 2011 us=875000 route_delay_window = 30
Fri Aug 05 00:46:14 2011 us=875000 route_delay_defined = ENABLED
Fri Aug 05 00:46:14 2011 us=875000 route_nopull = DISABLED
Fri Aug 05 00:46:14 2011 us=875000 route_gateway_via_dhcp = DISABLED
Fri Aug 05 00:46:14 2011 us=875000 max_routes = 100
Fri Aug 05 00:46:14 2011 us=875000 allow_pull_fqdn = DISABLED
Fri Aug 05 00:46:14 2011 us=875000 route 128.0.0.0/255.255.255.0/128.0.0.100/nil
Fri Aug 05 00:46:14 2011 us=875000 management_addr = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 management_port = 0
Fri Aug 05 00:46:14 2011 us=875000 management_user_pass = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 management_log_history_cache = 250
Fri Aug 05 00:46:14 2011 us=875000 management_echo_buffer_size = 100
Fri Aug 05 00:46:14 2011 us=875000 management_write_peer_info_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 management_client_user = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 management_client_group = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 management_flags = 0
Fri Aug 05 00:46:14 2011 us=875000 shared_secret_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=875000 key_direction = 2
Fri Aug 05 00:46:14 2011 us=875000 ciphername_defined = ENABLED
Fri Aug 05 00:46:14 2011 us=875000 ciphername = 'BF-CBC'
Fri Aug 05 00:46:14 2011 us=875000 authname_defined = ENABLED
Fri Aug 05 00:46:14 2011 us=875000 authname = 'SHA1'
Fri Aug 05 00:46:14 2011 us=875000 prng_hash = 'SHA1'
Fri Aug 05 00:46:14 2011 us=890000 prng_nonce_secret_len = 16
Fri Aug 05 00:46:14 2011 us=890000 keysize = 0
Fri Aug 05 00:46:14 2011 us=890000 engine = DISABLED
Fri Aug 05 00:46:14 2011 us=890000 replay = ENABLED
Fri Aug 05 00:46:14 2011 us=890000 mute_replay_warnings = DISABLED
Fri Aug 05 00:46:14 2011 us=890000 replay_window = 64
Fri Aug 05 00:46:14 2011 us=890000 replay_time = 15
Fri Aug 05 00:46:14 2011 us=890000 packet_id_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=890000 use_iv = ENABLED
Fri Aug 05 00:46:14 2011 us=890000 test_crypto = DISABLED
Fri Aug 05 00:46:14 2011 us=890000 tls_server = DISABLED
Fri Aug 05 00:46:14 2011 us=890000 tls_client = ENABLED
Fri Aug 05 00:46:14 2011 us=890000 key_method = 2
Fri Aug 05 00:46:14 2011 us=890000 ca_file = 'C:\Programmi\OpenVPN\config\ca.crt'
Fri Aug 05 00:46:14 2011 us=890000 ca_path = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=890000 dh_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=890000 cert_file = 'C:\Programmi\OpenVPN\config\Giovanni_Portatile.crt'
Fri Aug 05 00:46:14 2011 us=906000 priv_key_file = 'C:\Programmi\OpenVPN\config\Giovanni_Portatile.key'
Fri Aug 05 00:46:14 2011 us=906000 pkcs12_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 cryptoapi_cert = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 cipher_list = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 tls_verify = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 tls_export_cert = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 tls_remote = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 crl_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 ns_cert_type = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku[i] = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku[i] = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku[i] = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku[i] = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku[i] = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_ku[i] = 0
Fri Aug 05 00:46:14 2011 us=906000 remote_cert_eku = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=906000 tls_timeout = 2
Fri Aug 05 00:46:14 2011 us=906000 renegotiate_bytes = 0
Fri Aug 05 00:46:14 2011 us=906000 renegotiate_packets = 0
Fri Aug 05 00:46:14 2011 us=906000 renegotiate_seconds = 3600
Fri Aug 05 00:46:14 2011 us=906000 handshake_window = 60
Fri Aug 05 00:46:14 2011 us=906000 transition_window = 3600
Fri Aug 05 00:46:14 2011 us=921000 single_session = DISABLED
Fri Aug 05 00:46:14 2011 us=921000 push_peer_info = DISABLED
Fri Aug 05 00:46:14 2011 us=921000 tls_exit = DISABLED
Fri Aug 05 00:46:14 2011 us=921000 tls_auth_file = 'C:\Programmi\OpenVPN\config\key.txt'
Fri Aug 05 00:46:14 2011 us=921000 server_network = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 server_netmask = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 server_bridge_ip = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 server_bridge_netmask = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 server_bridge_pool_start = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 server_bridge_pool_end = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 ifconfig_pool_defined = DISABLED
Fri Aug 05 00:46:14 2011 us=921000 ifconfig_pool_start = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 ifconfig_pool_end = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=921000 ifconfig_pool_netmask = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=937000 ifconfig_pool_persist_filename = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=937000 ifconfig_pool_persist_refresh_freq = 600
Fri Aug 05 00:46:14 2011 us=937000 n_bcast_buf = 256
Fri Aug 05 00:46:14 2011 us=937000 tcp_queue_limit = 64
Fri Aug 05 00:46:14 2011 us=937000 real_hash_size = 256
Fri Aug 05 00:46:14 2011 us=937000 virtual_hash_size = 256
Fri Aug 05 00:46:14 2011 us=937000 client_connect_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=937000 learn_address_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=937000 client_disconnect_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=937000 client_config_dir = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=937000 ccd_exclusive = DISABLED
Fri Aug 05 00:46:14 2011 us=937000 tmp_dir = 'C:\DOCUME~1\ignoto\IMPOST~1\Temp\'
Fri Aug 05 00:46:14 2011 us=937000 push_ifconfig_defined = DISABLED
Fri Aug 05 00:46:14 2011 us=937000 push_ifconfig_local = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=953000 push_ifconfig_remote_netmask = 0.0.0.0
Fri Aug 05 00:46:14 2011 us=953000 enable_c2c = DISABLED
Fri Aug 05 00:46:14 2011 us=953000 duplicate_cn = DISABLED
Fri Aug 05 00:46:14 2011 us=953000 cf_max = 0
Fri Aug 05 00:46:14 2011 us=953000 cf_per = 0
Fri Aug 05 00:46:14 2011 us=953000 max_clients = 1024
Fri Aug 05 00:46:14 2011 us=953000 max_routes_per_client = 256
Fri Aug 05 00:46:14 2011 us=953000 auth_user_pass_verify_script = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=953000 auth_user_pass_verify_script_via_file = DISABLED
Fri Aug 05 00:46:14 2011 us=953000 ssl_flags = 0
Fri Aug 05 00:46:14 2011 us=953000 client = DISABLED
Fri Aug 05 00:46:14 2011 us=953000 pull = ENABLED
Fri Aug 05 00:46:14 2011 us=953000 auth_user_pass_file = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=953000 show_net_up = DISABLED
Fri Aug 05 00:46:14 2011 us=953000 route_method = 0
Fri Aug 05 00:46:14 2011 us=953000 ip_win32_defined = DISABLED
Fri Aug 05 00:46:14 2011 us=953000 ip_win32_type = 3
Fri Aug 05 00:46:14 2011 us=953000 dhcp_masq_offset = 0
Fri Aug 05 00:46:14 2011 us=953000 dhcp_lease_time = 31536000
Fri Aug 05 00:46:14 2011 us=953000 tap_sleep = 0
Fri Aug 05 00:46:14 2011 us=968000 dhcp_options = DISABLED
Fri Aug 05 00:46:14 2011 us=968000 dhcp_renew = DISABLED
Fri Aug 05 00:46:14 2011 us=968000 dhcp_pre_release = DISABLED
Fri Aug 05 00:46:14 2011 us=968000 dhcp_release = DISABLED
Fri Aug 05 00:46:14 2011 us=968000 domain = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=968000 netbios_scope = '[UNDEF]'
Fri Aug 05 00:46:14 2011 us=968000 netbios_node_type = 0
Fri Aug 05 00:46:14 2011 us=968000 disable_nbt = DISABLED
Fri Aug 05 00:46:14 2011 us=968000 OpenVPN 2.2.1 Win32-MSVC++ [SSL] [LZO2] built on Jul 1 2011
Fri Aug 05 00:46:14 2011 us=968000 WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Fri Aug 05 00:46:14 2011 us=968000 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Fri Aug 05 00:46:15 2011 us=171000 Control Channel Authentication: using 'C:\Programmi\OpenVPN\config\key.txt' as a OpenVPN static key file
Fri Aug 05 00:46:15 2011 us=171000 Outgoing Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Aug 05 00:46:15 2011 us=171000 Incoming Control Channel Authentication: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Aug 05 00:46:15 2011 us=171000 Control Channel MTU parms [ L:1575 D:168 EF:68 EB:0 ET:0 EL:0 ]
Fri Aug 05 00:46:15 2011 us=203000 Socket Buffers: R=[8192->8192] S=[8192->8192]
Fri Aug 05 00:46:15 2011 us=203000 Data Channel MTU parms [ L:1575 D:1450 EF:43 EB:4 ET:32 EL:0 ]
Fri Aug 05 00:46:15 2011 us=203000 Local Options String: 'V4,dev-type tap,link-mtu 1575,tun-mtu 1532,proto TCPv4_CLIENT,keydir 1,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-client'
Fri Aug 05 00:46:15 2011 us=203000 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1575,tun-mtu 1532,proto TCPv4_SERVER,keydir 0,cipher BF-CBC,auth SHA1,keysize 128,tls-auth,key-method 2,tls-server'
Fri Aug 05 00:46:15 2011 us=203000 Local Options hash (VER=V4): '8a6c6b5b'
Fri Aug 05 00:46:15 2011 us=203000 Expected Remote Options hash (VER=V4): '47106f19'
Fri Aug 05 00:46:15 2011 us=203000 Attempting to establish TCP connection with x.x.x.x:1194
Fri Aug 05 00:46:15 2011 us=328000 TCP connection established with x.x.x.x:1194
Fri Aug 05 00:46:15 2011 us=328000 TCPv4_CLIENT link local: [undef]
Fri Aug 05 00:46:15 2011 us=328000 TCPv4_CLIENT link remote: x.x.x.x:1194
Fri Aug 05 00:46:15 2011 us=437000 TLS: Initial packet from x.x.x.x:1194, sid=10519b7e 0130a284
Fri Aug 05 00:46:17 2011 us=125000 VERIFY OK: depth=1, /C=xx/ST=xx/L=xxx/O=xxx/CN=xxx/emailAddress=xxx
Fri Aug 05 00:46:17 2011 us=125000 VERIFY OK: depth=0, /C=xx/ST=xx/L=xxx/O=xxx/CN=xxx/emailAddress=xxx
Fri Aug 05 00:46:20 2011 us=984000 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Aug 05 00:46:20 2011 us=984000 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Aug 05 00:46:20 2011 us=984000 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Fri Aug 05 00:46:20 2011 us=984000 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Fri Aug 05 00:46:20 2011 us=984000 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSA
Fri Aug 05 00:46:20 2011 us=984000 [server] Peer Connection Initiated with x.x.x.x:1194
Fri Aug 05 00:46:23 2011 us=328000 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Fri Aug 05 00:46:23 2011 us=609000 PUSH: Received control message: 'PUSH_REPLY,ping 10,ping-restart 60'
Fri Aug 05 00:46:23 2011 us=609000 OPTIONS IMPORT: timers and/or timeouts modified
Fri Aug 05 00:46:23 2011 us=609000 ROUTE default_gateway=192.168.0.1
Fri Aug 05 00:46:23 2011 us=625000 TAP-WIN32 device [Connessione alla rete locale (LAN) 2] opened: \\.\Global\{1ED9E442-80E5-4E6A-A3EA-8FE311FFA3B3}.tap
Fri Aug 05 00:46:23 2011 us=625000 TAP-Win32 Driver Version 9.8
Fri Aug 05 00:46:23 2011 us=625000 TAP-Win32 MTU=1500
Fri Aug 05 00:46:23 2011 us=625000 Successful ARP Flush on interface [65540] {1ED9E442-80E5-4E6A-A3EA-8FE311FFA3B3}
Fri Aug 05 00:46:28 2011 us=109000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:28 2011 us=109000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:33 2011 us=328000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:33 2011 us=328000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:34 2011 us=140000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:34 2011 us=140000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:35 2011 us=343000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:35 2011 us=343000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:36 2011 us=156000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:36 2011 us=156000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:37 2011 us=250000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:37 2011 us=250000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:38 2011 us=171000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:38 2011 us=171000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:39 2011 us=265000 TEST ROUTES: 0/0 succeeded len=1 ret=0 a=0 u/d=down
Fri Aug 05 00:46:39 2011 us=265000 Route: Waiting for TUN/TAP interface to come up...
Fri Aug 05 00:46:40 2011 us=31000 TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
Fri Aug 05 00:46:40 2011 us=31000 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 255.255.255.0 128.0.0.100
Fri Aug 05 00:46:40 2011 us=31000 Route addition via IPAPI succeeded [adaptive]
Fri Aug 05 00:46:40 2011 us=31000 Initialization Sequence Completed



what coult it be?

Thanks in advance

Jon

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Trouble with Xp

Post by Mimiko » Fri Aug 05, 2011 7:21 am

route 128.0.0.0 255.255.255.0 128.0.0.100
You route traffic for 128/24 to some ip. Where is that ip?

You are using bridging method on server?

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: Trouble with Xp

Post by janjust » Fri Aug 05, 2011 8:54 am

the server address range

Code: Select all

ifconfig 128.0.0.220 255.255.255.0 # IP del server VPN
is illegal in terms of IP addressing; try using e.g.

Code: Select all

server 10.8.0.0 255.255.255.0

jon
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 04, 2011 9:41 pm

Re: Trouble with Xp

Post by jon » Fri Aug 05, 2011 10:52 am

Thanks for replying me

128.0.0.x are assigned inside the private network, using TAP, clients are able to get the ip from the remote dhcp server (both win7 and xp are able to do that), so I don't have to create an another subnet, I think.

I didn't choose this network configuration (128.0.0.x), may be a problem if there is this configuration instead of (for example) 192.168.0.x?

In the server, I set up a bridged connection between TAP and LAN interfaces but maybe this is not necessary because I didn't have to do that in the clients.

when a client is connected, I can see two entries in it's routing table with 0.0.0.0 in the destination coloumn associated with it's two interfaces (I think it is correct).

Thanks again and sorry for my english

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Trouble with Xp

Post by Mimiko » Fri Aug 05, 2011 2:37 pm

128.0.0.0 - 128.255.255.255 - is real IP that is used.

128.0.0.219 - is your servers real IP.
ifconfig 128.0.0.220 255.255.255.0 - you a bridging, so you dont have to set another IP to your bridged adapter. Also, do you have permission to use this real IP?

You can't assign real ip to your vpn clients if you are not internet provider. So you will have to move to routing, break bridge on your server and use "server 10.8.0.0 255.255.255.0".

Also remove
route 128.0.0.0 255.255.255.0 128.0.0.100
from client configuration.

jon
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 04, 2011 9:41 pm

Re: Trouble with Xp

Post by jon » Fri Aug 05, 2011 9:31 pm

if I use the same ip address in "ifconfig..." and "local" i get this error:

"Options error: --local addresses must be distinct from --ifconfig addresses"


So you are telling me that I should assign ips to the client and don't let them to get it from the private dhcp server, ok, do I have to enable the reg value "enable ip routing"? In this way, can i forward with the TAP all the 2 layer data?

I assume you have already configured some servers and clients, if you don't mind, can I ask you to post your typical OpenVPN config files?

thanks for your support

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Trouble with Xp

Post by Mimiko » Sat Aug 06, 2011 7:17 am

See this example http://www.openvpn.net/index.php/open-s ... l#examples.
So you are telling me that I should assign ips to the client and don't let them to get it from the private dhcp server
128.0.0.0 255.255.255.0 - you have a local dhcp that gives this ip addresses?
You server side lan uses addresses from this pool? Have you another gateway to internet with different IP? Describe the server side LAN configuration.

jon
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 04, 2011 9:41 pm

Re: Trouble with Xp

Post by jon » Sun Aug 07, 2011 10:04 am

In the server side LAN, there is a dhcp server which assigns ips to the whole network (except for the server).

I have written another server/client configuration files reading the example:


SERVER

Code: Select all

# Which local IP address should OpenVPN
# listen on? (optional)
local 128.0.0.219

# Which TCP/UDP port should OpenVPN listen on?
# If you want to run multiple OpenVPN instances
# on the same machine, use a different port
# number for each one.  You will need to
# open up this port on your firewall.
port 1194

# TCP or UDP server?
;proto tcp
proto udp

# "dev tun" will create a routed IP tunnel,
# "dev tap" will create an ethernet tunnel.
# Use "dev tap0" if you are ethernet bridging
# and have precreated a tap0 virtual interface
# and bridged it with your ethernet interface.
# If you want to control access policies
# over the VPN, you must create firewall
# rules for the the TUN/TAP interface.
# On non-Windows systems, you can give
# an explicit unit number, such as tun0.
# On Windows, use "dev-node" for this.
# 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 or higher,
# you may need to selectively disable the
# Windows firewall for the TAP adapter.
# Non-Windows systems usually don't need this.
;dev-node MyTap

# SSL/TLS root certificate (ca), certificate
# (cert), and private key (key).  Each client
# and the server must have their own cert and
# key file.  The server and all clients will
# use the same ca file.
#
# See the "easy-rsa" directory for a series
# of scripts for generating RSA certificates
# and private keys.  Remember to use
# a unique Common Name for the server
# and each of the client certificates.
#
# Any X509 key management system can be used.
# OpenVPN can also use a PKCS #12 formatted key file
# (see "pkcs12" directive in man page).
ca "C:\\Program Files (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files (x86)\\OpenVPN\\config\\server.crt"
key "C:\\Program Files (x86)\\OpenVPN\\config\\server.key"  # This file should be kept secret

# Diffie hellman parameters.
# Generate your own with:
#   openssl dhparam -out dh1024.pem 1024
# Substitute 2048 for 1024 if you are using
# 2048 bit keys. 
dh "C:\\Program Files (x86)\\OpenVPN\\config\\dh2048.pem"

# Configure server mode and supply a VPN subnet
# for OpenVPN to draw client addresses from.
# The server will take 10.8.0.1 for itself,
# the rest will be made available to clients.
# Each client will be able to reach the server
# on 10.8.0.1. Comment this line out if you are
# ethernet bridging. See the man page for more info.
server 10.8.0.0 255.255.255.0

# Maintain a record of client <-> virtual IP address
# associations in this file.  If OpenVPN goes down or
# is restarted, reconnecting clients can be assigned
# the same virtual IP address from the pool that was
# previously assigned.
;ifconfig-pool-persist ipp.txt

# Configure server mode for ethernet bridging.
# You must first use your OS's bridging capability
# to bridge the TAP interface with the ethernet
# NIC interface.  Then you must manually set the
# IP/netmask on the bridge interface, here we
# assume 10.8.0.4/255.255.255.0.  Finally we
# must set aside an IP range in this subnet
# (start=10.8.0.50 end=10.8.0.100) to allocate
# to connecting clients.  Leave this line commented
# out unless you are ethernet bridging.
;server-bridge 10.8.0.4 255.255.255.0 10.8.0.50 10.8.0.100

# Push routes to the client to allow it
# to reach other private subnets behind
# the server.  Remember that these
# private subnets will also need
# to know to route the OpenVPN client
# address pool (10.8.0.0/255.255.255.0)
# back to the OpenVPN server.
push "route 128.0.0.0 255.255.255.0"
;push "route 128.0.0.0 255.255.255.0"

# To assign specific IP addresses to specific
# clients or if a connecting client has a private
# subnet behind it that should also have VPN access,
# use the subdirectory "ccd" for client-specific
# configuration files (see man page for more info).

# EXAMPLE: Suppose the client
# having the certificate common name "Thelonious"
# also has a small subnet behind his connecting
# machine, such as 192.168.40.128/255.255.255.248.
# First, uncomment out these lines:
;client-config-dir ccd
;route 192.168.40.128 255.255.255.248
# Then create a file ccd/Thelonious with this line:
#   iroute 192.168.40.128 255.255.255.248
# This will allow Thelonious' private subnet to
# access the VPN.  This example will only work
# if you are routing, not bridging, i.e. you are
# using "dev tun" and "server" directives.

# EXAMPLE: Suppose you want to give
# Thelonious a fixed VPN IP address of 10.9.0.1.
# First uncomment out these lines:
;client-config-dir ccd
;route 10.9.0.0 255.255.255.252
# Then add this line to ccd/Thelonious:
#   ifconfig-push 10.9.0.1 10.9.0.2

# Suppose that you want to enable different
# firewall access policies for different groups
# of clients.  There are two methods:
# (1) Run multiple OpenVPN daemons, one for each
#     group, and firewall the TUN/TAP interface
#     for each group/daemon appropriately.
# (2) (Advanced) Create a script to dynamically
#     modify the firewall in response to access
#     from different clients.  See man
#     page for more info on learn-address script.
;learn-address ./script

# If enabled, this directive will configure
# all clients to redirect their default
# network gateway through the VPN, causing
# all IP traffic such as web browsing and
# and DNS lookups to go through the VPN
# (The OpenVPN server machine may need to NAT
# the TUN/TAP interface to the internet in
# order for this to work properly).
# CAVEAT: May break client's network config if
# client's local DHCP server packets get routed
# through the tunnel.  Solution: make sure
# client's local DHCP server is reachable via
# a more specific route than the default route
# of 0.0.0.0/0.0.0.0.
;push "redirect-gateway"

# Certain Windows-specific network settings
# can be pushed to clients, such as DNS
# or WINS server addresses.  CAVEAT:
# http://openvpn.net/faq.html#dhcpcaveats
push "dhcp-option DNS 10.8.0.1"
;push "dhcp-option WINS 10.8.0.1"

# Uncomment this directive to allow different
# clients to be able to "see" each other.
# By default, clients will only see the server.
# To force clients to only see the server, you
# will also need to appropriately firewall the
# server's TUN/TAP interface.
client-to-client

# Uncomment this directive if multiple clients
# might connect with the same certificate/key
# files or common names.  This is recommended
# only for testing purposes.  For production use,
# each client should have its own certificate/key
# pair.
#
# IF YOU HAVE NOT GENERATED INDIVIDUAL
# CERTIFICATE/KEY PAIRS FOR EACH CLIENT,
# EACH HAVING ITS OWN UNIQUE "COMMON NAME",
# UNCOMMENT THIS LINE OUT.
;duplicate-cn

# The keepalive directive causes ping-like
# messages to be sent back and forth over
# the link so that each side knows when
# the other side has gone down.
# Ping every 10 seconds, assume that remote
# peer is down if no ping received during
# a 120 second time period.
keepalive 10 120

# For extra security beyond that provided
# by SSL/TLS, create an "HMAC firewall"
# to help block DoS attacks and UDP port flooding.
#
# Generate with:
#   openvpn --genkey --secret ta.key
#
# The server and each client must have
# a copy of this key.
# The second parameter should be '0'
# on the server and '1' on the clients.
;tls-auth ta.key 0 # This file is secret

# Select a cryptographic cipher.
# This config item must be copied to
# the client config file as well.
;cipher BF-CBC        # Blowfish (default)
;cipher AES-128-CBC   # AES
;cipher DES-EDE3-CBC  # Triple-DES

# Enable compression on the VPN link.
# If you enable it here, you must also
# enable it in the client config file.
;comp-lzo

# The maximum number of concurrently connected
# clients we want to allow.
;max-clients 100

# It's a good idea to reduce the OpenVPN
# daemon's privileges after initialization.
#
# You can uncomment this out on
# non-Windows systems.
;user nobody
;group nobody

# The persist options will try to avoid
# accessing certain resources on restart
# that may no longer be accessible because
# of the privilege downgrade.
;persist-key
;persist-tun

# Output a short status file showing
# current connections, truncated
# and rewritten every minute.
status openvpn-status.log

# By default, log messages will go to the syslog (or
# on Windows, if running as a service, they will go to
# the "\Program Files\OpenVPN\log" directory).
# Use log or log-append to override this default.
# "log" will truncate the log file on OpenVPN startup,
# while "log-append" will append to it.  Use one
# or the other (but not both).
;log         openvpn.log
;log-append  openvpn.log

# Set the appropriate level of log
# file verbosity.
#
# 0 is silent, except for fatal errors
# 4 is reasonable for general usage
# 5 and 6 can help to debug connection problems
# 9 is extremely verbose
verb 3

# Silence repeating messages.  At most 20
# sequential messages of the same message
# category will be output to the log.
;mute 20
CLIENT

Code: Select all

##############################################
# 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.
remote x.x.x.x 1194
;remote my-server-2 1194

# 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 # retry on connection failures
;http-proxy [proxy server] [proxy port #]

# 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 "C:\\Program Files\\OpenVPN\\config\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\config\\Giovanni_Portatile.crt"
key "C:\\Program Files\\OpenVPN\\config\\Giovanni_Portatile.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

The client get the ip but the virtual interface can't receive any data.

Do I have to remove the bridge in the server and/or in the client?
Do I have to change the value of IpEnableRouting to 1?

Thanks for the patience

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Trouble with Xp

Post by Mimiko » Sun Aug 07, 2011 12:38 pm

Do I have to remove the bridge in the server and/or in the client?
Yes, because you are not bridging.
Do I have to change the value of IpEnableRouting to 1?
Yes. But by default this parameter is st to 1 on server platforms.

jon
OpenVpn Newbie
Posts: 5
Joined: Thu Aug 04, 2011 9:41 pm

Re: Trouble with Xp

Post by jon » Sun Aug 07, 2011 3:41 pm

Nope, in windows server 2008 this value is set to 0, however these configuration files don't work with TAP either; should a client get an ip like 10.8.0.x (a subnet) even if he is connected to the main LAN in bridging mode?

User avatar
Mimiko
Forum Team
Posts: 1564
Joined: Wed Sep 22, 2010 3:18 am

Re: Trouble with Xp

Post by Mimiko » Sun Aug 07, 2011 4:32 pm

Set the IpEnableRouting to 1.

In last configuration I see you use tun. After breaking bridges on server and client, the virtual devices will get ip from 10.8.0.x on server and client. Do you want the client LAN to have access to server's LAN?
should a client get an ip like 10.8.0.x (a subnet) even if he is connected to the main LAN in bridging mode?
If the bridge on client is not removed, after connecting to OpenVPN, bridge will be set to 10.8.0.x and lose connection to LAN.

Post Reply