Cannot Change Default Route After Successful VPN Connection
Posted: Thu Sep 03, 2009 12:30 pm
Hello,
I am having some troubles with trying to change the default route of the client computer after a successful VPN connection. I have looked up some suggestions including "route-delay 20" and that doesn't work either. "Send all traffic over VPN connection" is checked. The same configuration works on Windows computers. Any help would be greatly appreciated. I am running Snow Leopard.
Server configuration:
I am having some troubles with trying to change the default route of the client computer after a successful VPN connection. I have looked up some suggestions including "route-delay 20" and that doesn't work either. "Send all traffic over VPN connection" is checked. The same configuration works on Windows computers. Any help would be greatly appreciated. I am running Snow Leopard.
Server configuration:
Code: Select all
Client configuration:
mode server
tls-server
local 192.168.0.1
port 443
proto tcp-server
dev tap0
ca ca.crt
cert server.crt
key server.key
dh dh2048.pem
client-to-client
duplicate-cn
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3
push "redirect-gateway bypass-dhcp"
Code: Select all
Log file when connecting:
client
dev tap
proto tcp-client
remote <hostname> 443
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client.crt
key client.key
comp-lzo
verb 3
Code: Select all
Thu Sep 3 10:27:36 2009: WARNING: No server certificate verification method has been enabled. See http://openvpn.net/howto.html#mitm for more info.
Thu Sep 3 10:27:36 2009: NOTE: the current --script-security setting may allow this configuration to call user-defined scripts
Thu Sep 3 10:27:36 2009: LZO compression initialized
Thu Sep 3 10:27:37 2009: Attempting to establish TCP connection with <hostname>:443 [nonblock]
Thu Sep 3 10:27:38 2009: TCP connection established with <hostname>:443
Thu Sep 3 10:27:38 2009: TCPv4_CLIENT link local: [undef]
Thu Sep 3 10:27:38 2009: TCPv4_CLIENT link remote: <hostname>:443
Thu Sep 3 10:27:39 2009: [<hostname>] Peer Connection Initiated with <hostname>:443
Thu Sep 3 10:27:40 2009: TUN/TAP device /dev/tap0 opened
Thu Sep 3 10:27:40 2009: /Applications/Viscosity.app/Contents/Resources/dnsup.py tap0 1500 1576 init
Thu Sep 3 10:27:40 2009: NOTE: unable to redirect default gateway -- VPN gateway parameter (--route-gateway or --ifconfig) is missing
Thu Sep 3 10:27:40 2009: Initialization Sequence Completed
Thu Sep 3 10:27:41 2009: write to TUN/TAP : Input/output error (code=5)