VPN connected but no traffic through

This forum is for general conversation and user-user networking.

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

Post Reply
jean-paul
OpenVpn Newbie
Posts: 2
Joined: Thu Apr 19, 2012 3:11 pm

VPN connected but no traffic through

Post by jean-paul » Thu Apr 19, 2012 3:19 pm

Hello all,

I have a problem, my openVPN client is connected to the server but all of the traffic doesn't go through the VPN.

I'm using windows 7 64bits and openvpn 2.2.2.

The routing table is

Code: Select all

IPv4 Table de routage
===========================================================================
Itinéraires actifs :
Destination réseau    Masque réseau  Adr. passerelle   Adr. interface Métrique
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.102     26
          0.0.0.0        128.0.0.0     46.246.124.1     46.246.124.2     30
     46.246.124.0    255.255.255.0         On-link      46.246.124.2    286
     46.246.124.2  255.255.255.255         On-link      46.246.124.2    286
   46.246.124.255  255.255.255.255         On-link      46.246.124.2    286
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
        128.0.0.0        128.0.0.0     46.246.124.1     46.246.124.2     30
   178.73.212.234  255.255.255.255      192.168.0.1    192.168.0.102     25
      192.168.0.0    255.255.255.0         On-link     192.168.0.102    281
    192.168.0.102  255.255.255.255         On-link     192.168.0.102    281
    192.168.0.255  255.255.255.255         On-link     192.168.0.102    281
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link     192.168.0.102    281
        224.0.0.0        240.0.0.0         On-link      46.246.124.2    286
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link     192.168.0.102    281
  255.255.255.255  255.255.255.255         On-link      46.246.124.2    286
===========================================================================
Thank you!

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

Re: VPN connected but no traffic through

Post by janjust » Fri Apr 20, 2012 8:35 am

the routing table looks odd.
what is your client config? can you add 'verb 4' to the client config and reconnect, then post the client connect log?

jean-paul
OpenVpn Newbie
Posts: 2
Joined: Thu Apr 19, 2012 3:11 pm

Re: VPN connected but no traffic through

Post by jean-paul » Sat Apr 21, 2012 1:38 pm

Hello,


This is my routing table before connection

Code: Select all

===========================================================================
Itinéraires actifs :
Destination réseau    Masque réseau  Adr. passerelle   Adr. interface Métrique
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.100     20
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
      192.168.0.0    255.255.255.0         On-link     192.168.0.100    276
    192.168.0.100  255.255.255.255         On-link     192.168.0.100    276
    192.168.0.255  255.255.255.255         On-link     192.168.0.100    276
     192.168.56.0    255.255.255.0         On-link      192.168.56.1    276
     192.168.56.1  255.255.255.255         On-link      192.168.56.1    276
   192.168.56.255  255.255.255.255         On-link      192.168.56.1    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link      192.168.56.1    276
        224.0.0.0        240.0.0.0         On-link     192.168.0.100    276
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link      192.168.56.1    276
  255.255.255.255  255.255.255.255         On-link     192.168.0.100    276
===========================================================================

this is after connection

Code: Select all

===========================================================================
Itinéraires actifs :
Destination réseau    Masque réseau  Adr. passerelle   Adr. interface Métrique
          0.0.0.0          0.0.0.0      192.168.0.1    192.168.0.100     20
          0.0.0.0        128.0.0.0     46.246.124.1    46.246.124.23     30
     46.246.124.0    255.255.255.0         On-link     46.246.124.23    286
    46.246.124.23  255.255.255.255         On-link     46.246.124.23    286
   46.246.124.255  255.255.255.255         On-link     46.246.124.23    286
        127.0.0.0        255.0.0.0         On-link         127.0.0.1    306
        127.0.0.1  255.255.255.255         On-link         127.0.0.1    306
  127.255.255.255  255.255.255.255         On-link         127.0.0.1    306
        128.0.0.0        128.0.0.0     46.246.124.1    46.246.124.23     30
   178.73.212.234  255.255.255.255      192.168.0.1    192.168.0.100     20
      192.168.0.0    255.255.255.0         On-link     192.168.0.100    276
    192.168.0.100  255.255.255.255         On-link     192.168.0.100    276
    192.168.0.255  255.255.255.255         On-link     192.168.0.100    276
     192.168.56.0    255.255.255.0         On-link      192.168.56.1    276
     192.168.56.1  255.255.255.255         On-link      192.168.56.1    276
   192.168.56.255  255.255.255.255         On-link      192.168.56.1    276
        224.0.0.0        240.0.0.0         On-link         127.0.0.1    306
        224.0.0.0        240.0.0.0         On-link      192.168.56.1    276
        224.0.0.0        240.0.0.0         On-link     192.168.0.100    276
        224.0.0.0        240.0.0.0         On-link     46.246.124.23    286
  255.255.255.255  255.255.255.255         On-link         127.0.0.1    306
  255.255.255.255  255.255.255.255         On-link      192.168.56.1    276
  255.255.255.255  255.255.255.255         On-link     192.168.0.100    276
  255.255.255.255  255.255.255.255         On-link     46.246.124.23    286
===========================================================================

And this is the connection log

Code: Select all

Sat Apr 21 15:32:37 2012 us=296000 OpenVPN 2.2.2 Win32-MSVC++ [SSL] [LZO2] [PKCS11] built on Dec 15 2011
Sat Apr 21 15:32:41 2012 us=789000 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sat Apr 21 15:32:42 2012 us=366000 LZO compression initialized
Sat Apr 21 15:32:42 2012 us=366000 Control Channel MTU parms [ L:1576 D:140 EF:40 EB:0 ET:0 EL:0 ]
Sat Apr 21 15:32:42 2012 us=382000 Socket Buffers: R=[8192->8192] S=[8192->8192]
Sat Apr 21 15:32:42 2012 us=554000 Data Channel MTU parms [ L:1576 D:1450 EF:44 EB:135 ET:32 EL:0 AF:3/1 ]
Sat Apr 21 15:32:42 2012 us=554000 Local Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_CLIENT,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-client'
Sat Apr 21 15:32:42 2012 us=554000 Expected Remote Options String: 'V4,dev-type tap,link-mtu 1576,tun-mtu 1532,proto TCPv4_SERVER,comp-lzo,cipher BF-CBC,auth SHA1,keysize 128,key-method 2,tls-server'
Sat Apr 21 15:32:42 2012 us=554000 Local Options hash (VER=V4): '31fdf004'
Sat Apr 21 15:32:42 2012 us=554000 Expected Remote Options hash (VER=V4): '3e6d1056'
Sat Apr 21 15:32:42 2012 us=554000 Attempting to establish TCP connection with 178.73.212.234:443
Sat Apr 21 15:32:42 2012 us=600000 TCP connection established with 178.73.212.234:443
Sat Apr 21 15:32:42 2012 us=600000 TCPv4_CLIENT link local: [undef]
Sat Apr 21 15:32:42 2012 us=600000 TCPv4_CLIENT link remote: 178.73.212.234:443
Sat Apr 21 15:32:42 2012 us=647000 TLS: Initial packet from 178.73.212.234:443, sid=082f61f2 33407132
Sat Apr 21 15:32:42 2012 us=647000 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this
Sat Apr 21 15:32:43 2012 us=661000 VERIFY OK: depth=1, /C=SE/ST=CA/L=SanFrancisco/O=Fort-Funston/CN=Fort-Funston_CA/emailAddress=me@myhost.mydomain
Sat Apr 21 15:32:43 2012 us=661000 VERIFY OK: nsCertType=SERVER
Sat Apr 21 15:32:43 2012 us=661000 VERIFY OK: depth=0, /C=SE/ST=CA/L=SanFrancisco/O=Fort-Funston/CN=server/emailAddress=me@myhost.mydomain
Sat Apr 21 15:32:44 2012 us=535000 Data Channel Encrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Apr 21 15:32:44 2012 us=535000 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Apr 21 15:32:44 2012 us=535000 Data Channel Decrypt: Cipher 'BF-CBC' initialized with 128 bit key
Sat Apr 21 15:32:44 2012 us=535000 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authentication
Sat Apr 21 15:32:44 2012 us=535000 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 1024 bit RSA
Sat Apr 21 15:32:44 2012 us=535000 [server] Peer Connection Initiated with 178.73.212.234:443
Sat Apr 21 15:32:46 2012 us=79000 SENT CONTROL [server]: 'PUSH_REQUEST' (status=1)
Sat Apr 21 15:32:46 2012 us=376000 PUSH: Received control message: 'PUSH_REPLY,dhcp-option DNS 80.67.0.2,dhcp-option DNS 91.213.246.2,redirect-gateway def1,route-gateway 46.246.124.1,ping 10,ping-restart 160,ifconfig 46.246.124.23 255.255.255.0'
Sat Apr 21 15:32:46 2012 us=376000 OPTIONS IMPORT: timers and/or timeouts modified
Sat Apr 21 15:32:46 2012 us=376000 OPTIONS IMPORT: --ifconfig/up options modified
Sat Apr 21 15:32:46 2012 us=376000 OPTIONS IMPORT: route options modified
Sat Apr 21 15:32:46 2012 us=376000 OPTIONS IMPORT: route-related options modified
Sat Apr 21 15:32:46 2012 us=376000 OPTIONS IMPORT: --ip-win32 and/or --dhcp-option options modified
Sat Apr 21 15:32:46 2012 us=391000 ROUTE default_gateway=192.168.0.1
Sat Apr 21 15:32:46 2012 us=438000 TAP-WIN32 device [Connexion au réseau local 2] opened: \\.\Global\{5E89B4B9-6E7C-48D5-A362-A91C25914287}.tap
Sat Apr 21 15:32:46 2012 us=438000 TAP-Win32 Driver Version 9.9 
Sat Apr 21 15:32:46 2012 us=438000 TAP-Win32 MTU=1500
Sat Apr 21 15:32:46 2012 us=438000 Notified TAP-Win32 driver to set a DHCP IP/netmask of 46.246.124.23/255.255.255.0 on interface {5E89B4B9-6E7C-48D5-A362-A91C25914287} [DHCP-serv: 46.246.124.0, lease-time: 31536000]
Sat Apr 21 15:32:46 2012 us=438000 DHCP option string: 06085043 00025bd5 f602
Sat Apr 21 15:32:46 2012 us=438000 Successful ARP Flush on interface [32] {5E89B4B9-6E7C-48D5-A362-A91C25914287}
Sat Apr 21 15:32:51 2012 us=87000 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up
Sat Apr 21 15:32:51 2012 us=87000 C:\WINDOWS\system32\route.exe ADD 178.73.212.234 MASK 255.255.255.255 192.168.0.1
Sat Apr 21 15:32:51 2012 us=103000 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=20 and dwForwardType=4
Sat Apr 21 15:32:51 2012 us=103000 Route addition via IPAPI succeeded [adaptive]
Sat Apr 21 15:32:51 2012 us=103000 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 MASK 128.0.0.0 46.246.124.1
Sat Apr 21 15:32:51 2012 us=103000 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sat Apr 21 15:32:51 2012 us=103000 Route addition via IPAPI succeeded [adaptive]
Sat Apr 21 15:32:51 2012 us=103000 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 MASK 128.0.0.0 46.246.124.1
Sat Apr 21 15:32:51 2012 us=118000 ROUTE: CreateIpForwardEntry succeeded with dwForwardMetric1=30 and dwForwardType=4
Sat Apr 21 15:32:51 2012 us=118000 Route addition via IPAPI succeeded [adaptive]
Sat Apr 21 15:32:51 2012 us=118000 Initialization Sequence Completed

Thank you.

Post Reply