Opened 5 years ago

Closed 23 months ago

#90 closed Bug / Defect (duplicate)

server side route statements are affected by 'topology subnet'

Reported by: janjust Owned by:
Priority: minor Milestone:
Component: Configuration Version: 2.1.4
Severity: Not set (if unsure, select this one) Keywords: topology subnet


The sample config

proto udp
port 1194
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh1024.pem

works without any issues. If I add

topology subnet

I get

OpenVPN ROUTE: OpenVPN needs a gateway parameter for a
--route option and no default was specified by either
--route-gateway or --ifconfig options
OpenVPN ROUTE: failed to parse/resolve route for

The same happens if you switch from 'dev tun' to 'dev tap'.
This is (at the very least) confusing to server admins.

A work around is to use


in this case but it is a pity that the VPN server IP needs to be explicitly mentioned. Perhaps a special keyword would help, e.g.

route vpn_server_ip

Similar things are true for 'iroute' statements

Change History (3)

comment:1 Changed 2 years ago by samuli

Can this be reproduced on recent openvpn versions also?

comment:2 Changed 2 years ago by samuli

  • Keywords topology subnet added

comment:3 Changed 23 months ago by cron2

  • Resolution set to duplicate
  • Status changed from new to closed

Duplicate of #55, closing this one.

Note: See TracTickets for help on using tickets.