Closed TotallyMonica closed 1 month ago
You need a client specific override with CN and set remote network there too
While it wasn't shown before, I do have that already on the server side, again configured as per the documentation
I realized my prior screenshot didn't show the CSO settings, so here's the actual settings
Please, select the proper tunnel in the field "Servers". It solved for me.
Has anyone managed to solve it? I currently have the same problem. Proper tunnel in the field "Servers" i have selected.
Same here:
Warning openvpn_client1 ERROR: FreeBSD route add command failed: external program exited with error status: 1
Notice openvpn_client1 /sbin/route add -net 192.168.5.0 10.100.10.1 255.255.255.0
Notice openvpn_client1 /sbin/route add -net 192.168.5.0 10.100.10.1 255.255.255.0
This issue has been automatically timed-out (after 180 days of inactivity).
For more information about the policies for this repository, please read https://github.com/opnsense/core/blob/master/CONTRIBUTING.md for further details.
If someone wants to step up and work on this issue, just let us know, so we can reopen the issue and assign an owner to it.
Important notices
Before you add a new report, we ask you kindly to acknowledge the following:
Describe the bug
While setting up a site-to-site VPN utilizing OpenVPN, routes were not being properly learned, requiring manual addition through the CLI and/or WebGUI.
To Reproduce
Steps to reproduce the behavior:
ERROR: FreeBSD route add command failed: external program exited with error status: 1
ERROR: FreeBSD route delete command failed: external program exited with error status: 1
Expected behavior
Routes are learned successfully through proper configuration of the OpenVPN server
Describe alternatives you considered
Accessing the CLI on both routers and running
route add $network_in_cidr_format $destination_ovpn_ip_address
completed successfully and correctly, after deleting using the relevant command and using the web GUI it added successfully as well, persisting after rebootsScreenshots
Server configuration:
Server routes learned (Via VPN -> OpenVPN -> Connection Status -> Routes)
Server routes learned (Via System -> Routes -> Status)
Client configuration:
Client routes learned (Via VPN -> OpenVPN -> Connection Status -> Routes)
Client routes learned (Via System -> Routes -> Status)
Relevant log files
Server OpenVPN logs:
Client OpenVPN logs:
Note: Logs have been truncated due to their length. I am willing to provide full logs upon request.
Additional context
This has been performed in a virtual environment on VMware Workstation 16 Pro. Due to everything being virtualized and no sensitive information being used in these, I am willing to provide the configuration used on both the client and server endpoints to facilitate troubleshooting.
Environment
Software version used and hardware type if relevant, e.g.:
OPNsense 24.1.2_1 (amd64). Intel Core i5-1135G7 (each VM has 4 cores) NICs: Intel 82545EM (Emulated through VMware) OpenVPN version: 2.6.9 Server network: 192.168.184.1/24 Client network: 192.168.208.1/24 OpenVPN tunnel network: 10.150.199.0/24