On 24/04/17 15:07, David Mehler wrote: > Hello, > > I'm running 2.4 versions of Openvpn on both the server and a windows client. > > I'm wanting to route all traffic through the vpn. I've got this on the server: > > push "redirect-gateway def1 bypass-dhcp" > push "dhcp-option DNS 208.67.222.222" > > The Dns server push is working on the client. Here's the client's ipconfig > /all > > Is there something special I have to do to get this going on win10?
Your client log shows that the client has set the routes required to redirect it's gateway over the VPN. (As Selva stated) Using --server 192.168.0.0 255.255.255.0 is a disaster waiting to happen. I recommend you use the standard 10.8.0.0/24 subnet. As you are running your server on Windows you either have to setup your server side routing correctly or use Windows RAS service to NAT your client packets. See here: https://forums.openvpn.net/viewtopic.php?f=7&t=7806 There are some more related posts in the examples board on the Forum: https://forums.openvpn.net/viewforum.php?f=7 If you prefer to post to the forum for help, please see: https://forums.openvpn.net/viewtopic.php?f=30&t=22603 -- > > Mon Apr 24 09:51:29 2017 SENT CONTROL [openvpn-server]: 'PUSH_REQUEST' > (status=1) > Mon Apr 24 09:51:29 2017 PUSH: Received control message: > 'PUSH_REPLY,redirect-gateway def1 bypass-dhcp,dhcp-option DNS > 208.67.222.222,dhcp-option DNS 208.67.220.220,comp-lzo > no,route-gateway 192.168.0.1,topology subnet,ping 10,ping-restart > 120,ifconfig 192.168.0.2 255.255.255.0,peer-id 0,cipher AES-256-GCM' > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: timers and/or timeouts modified > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: compression parms modified > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: --ifconfig/up options modified > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: route options modified > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: route-related options modified > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: --ip-win32 and/or > --dhcp-option options modified > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: peer-id set > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: adjusting link_mtu to 1625 > Mon Apr 24 09:51:29 2017 OPTIONS IMPORT: data channel crypto options modified > Mon Apr 24 09:51:29 2017 Data Channel Encrypt: Cipher 'AES-256-GCM' > initialized with 256 bit key > Mon Apr 24 09:51:29 2017 Data Channel Decrypt: Cipher 'AES-256-GCM' > initialized with 256 bit key > Mon Apr 24 09:51:29 2017 interactive service msg_channel=0 > Mon Apr 24 09:51:29 2017 ROUTE_GATEWAY 192.168.2.1/255.255.255.0 I=24 > HWADDR=84:1b:5e:97:85:4e > Mon Apr 24 09:51:29 2017 open_tun > Mon Apr 24 09:51:29 2017 TAP-WIN32 device [Ethernet] opened: > \\.\Global\{5D7E8566-0F0D-4622-839F-E28A4D26E86E}.tap > Mon Apr 24 09:51:29 2017 TAP-Windows Driver Version 9.21 > Mon Apr 24 09:51:29 2017 Set TAP-Windows TUN subnet mode > network/local/netmask = 192.168.0.0/192.168.0.2/255.255.255.0 > [SUCCEEDED] > Mon Apr 24 09:51:29 2017 Notified TAP-Windows driver to set a DHCP > IP/netmask of 192.168.0.2/255.255.255.0 on interface > {5D7E8566-0F0D-4622-839F-E28A4D26E86E} [DHCP-serv: 192.168.0.254, > lease-time: 31536000] > Mon Apr 24 09:51:29 2017 Successful ARP Flush on interface [11] > {5D7E8566-0F0D-4622-839F-E28A4D26E86E} > Mon Apr 24 09:51:29 2017 do_ifconfig, tt->did_ifconfig_ipv6_setup=0 > Mon Apr 24 09:51:29 2017 MANAGEMENT: >> STATE:1493041889,ASSIGN_IP,,192.168.0.2,,,, > Mon Apr 24 09:51:34 2017 TEST ROUTES: 1/1 succeeded len=0 ret=1 a=0 u/d=up > Mon Apr 24 09:51:34 2017 C:\WINDOWS\system32\route.exe ADD > xxx.xxx.xxx.xxx MASK 255.255.255.255 192.168.2.1 > Mon Apr 24 09:51:34 2017 env_block: add > PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem > Mon Apr 24 09:51:34 2017 C:\WINDOWS\system32\route.exe ADD 0.0.0.0 > MASK 128.0.0.0 192.168.0.1 > Mon Apr 24 09:51:34 2017 env_block: add > PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem > Mon Apr 24 09:51:34 2017 C:\WINDOWS\system32\route.exe ADD 128.0.0.0 > MASK 128.0.0.0 192.168.0.1 > Mon Apr 24 09:51:34 2017 env_block: add > PATH=C:\WINDOWS\System32;C:\WINDOWS;C:\WINDOWS\System32\Wbem > Mon Apr 24 09:51:34 2017 Initialization Sequence Completed > Mon Apr 24 09:51:34 2017 MANAGEMENT: >> STATE:1493041894,CONNECTED,SUCCESS,192.168.0.2,xxx.xxx.xxx.xxx,1194,, > ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot _______________________________________________ Openvpn-users mailing list Openvpn-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/openvpn-users