OpenVPN iroute in CSC seems to have no effect

From pfSense Documentation
Jump to: navigation, search

When configuring a site-to-site PKI (SSL) OpenVPN setup, an iroute statement must be added for the client subnet on the Client Specific Overrides tab set for the client certificate's common name.

First, ensure that the common name matches and that the internal route is being learned/added as it should be. OpenVPN's log verbosity may need increased (i.e. "verb 10" in the custom options) to see if this is working. On Status > OpenVPN the internal routing for the OpenVPN server may also be viewed while the client is connected.

Also, for each network that needs an iroute statement, the server definition must also have the same network(s) listed as Remote Networks or as route statements in the advanced options box.

For example:

Server1 custom options:

push "route a.a.a.0";
route b.b.b.0;

Client Specific Overrides for Common Name: client1 Custom options:

iroute b.b.b.0;

client1 custom options:

(blank -- no route statements needed)

Every iroute needs a corresponding route. The route' entries are for the OS to know that the subnet(s) should be routed to OpenVPN from at the OS level. The iroute statements are internal to OpenVPN, so it knows which network goes to which client based on its certificate.

See Also: