OpenVPN route missing
Posted
by
dajuric
on Super User
See other posts from Super User
or by dajuric
Published on 2013-06-26T16:15:13Z
Indexed on
2013/06/26
16:23 UTC
Read the original article
Hit count: 267
I can connect to an OpenVPN server from Windows without any problems.
But when I try to connect from Ubuntu 12.04 (start OpenVPN) I receive the following:
OpenVPN needs a gateway parameter for a --route option and no default was specified by either --route-gateway or --ifconfig options
SERVER IP: 161.53.X.X internal network: 10.0.0.0 / 8
What I need to do ?
client configuration:
client
dev tap
proto udp
remote 161.53.X.X 1194
resolv-retry infinite
nobind
ca ca.crt
cert client.crt
key client.key
ns-cert-type server
comp-lzo
verb 3 server conf:
local 161.53.X.X
port 1194
proto udp
dev tap
dev-node OpenVPN
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
# DHCP leases addresses to clients
server-bridge
# 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 10.0.0.1 255.255.0.0"
client-to-client
duplicate-cn
keepalive 10 120
comp-lzo
verb 6
© Super User or respective owner