Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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: / 8

What I need to do ?

client configuration:

dev tap
proto udp
remote 161.53.X.X 1194
resolv-retry infinite

ca ca.crt
cert client.crt
key client.key

ns-cert-type server


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

 # 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 (
 # back to the OpenVPN server.
 push "route"



 keepalive 10 120

 verb 6
share|improve this question
add comment

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.