OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: cleblhuber on October 19, 2018, 11:49:50 pm

Title: OpenVPN in peer2peer mode
Post by: cleblhuber on October 19, 2018, 11:49:50 pm
dear folks.

i have a problem with the openvpn client in peer2peer mode.
i cannot reach the remote network from the local network, but from the opnsense i can ping the remote network.
the tunnel is up but in the logfile there are messages from route not to be able to add the route. see attachment
days ago the same config worked very well, so i have no idea what i did wrong.  :(

kind regards

Chris
Title: Re: OpenVPN in peer2peer mode
Post by: stargazer on January 21, 2019, 07:27:04 am
I was looking at a similar issue and found this solution, which worked for me.

https://forum.opnsense.org/index.php?topic=11046.msg50463#msg50463

Basically, use a /30 subnet for peer2peer. It appears to get confused and assign two separate /30's. Thus, I had
10.13.46.0/24
and the master was getting 10.13.46.1 & 2, and the client was getting 10.13.46.6 & 7. I set it to
10.13.46.0/30
and now they both have the same subnet and work well.