Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
General Discussion
»
Route between OpenVPN Delayed
« previous
next »
Print
Pages: [
1
]
Author
Topic: Route between OpenVPN Delayed (Read 1272 times)
wiryono
Newbie
Posts: 3
Karma: 0
Route between OpenVPN Delayed
«
on:
December 26, 2019, 01:48:56 am »
Hi, I have two OpenVPN server that need to communicate together
The first OpenVPN is
User VPN
, the second one is
Site VPN
.
1. The
User VPN
is use by one / many employee on their computer to connect to the VPN network to connect to the offsite device. This is the tunnel settings
IPv4 Tunnel Network:
10.242.50.0/24
IPv4 Local Network:
10.0.0.0/24 - Server behind OPNSense
10.254.1.0/24 - Offsite Router
172.16.0.0/12 - Offsite Server behind Offsite Router
2. The
Site VPN
is use by offsite router, it will pass the traffic request to device (server) behind the offsite router. This is the tunnel settings
IPv4 Tunnel Network:
10.254.1.0/24
IPv4 Remote Network
172.16.0.0/12 - Offsite Server behind Offsite Router
In
Firewall > Rules > OpenVPN
:
Allow
User VPN
to
Site VPN
any port, any gateway, anytime
Allow
User VPN
to
Server IP behind Site VPN
any port, any gateway, anytime
In
Firewall > NAT > Outbound
:
Allow
User VPN
to
Site VPN
NAT address : Interface address, any port
Allow
User VPN
to
Server IP behind Site VPN
NAT address : Interface address, any port
So when my computer connect to the
User VPN
I can connect to the
Server IP behind Site VPN (172.16.0.0/24)
the first connection always failed no response from the server. I need to cancel ( Crtl + C ) then reconnect again and everything is working then. It looks like the VPN only add the routing table when there is connection request, which will failed on first time.
Tested on SSH, and VNC port. HTML port seems ok.
Is this the case ? Is it possible to fixed the VPN route ?
«
Last Edit: December 26, 2019, 01:51:33 am by wiryono
»
Logged
wiryono
Newbie
Posts: 3
Karma: 0
Re: Route between OpenVPN Delayed
«
Reply #1 on:
December 28, 2019, 05:15:47 am »
Apparently the problem is when setting the NAT Address to "
Interface address
" in the Firewall > Nat > Outbound. The firewall is automatically set the translation and sometime it set to the incorrect translation of source address.
I have to put the Site VPN Server IP address which is the one set in the opnsense usually .1/32 and the problem gone.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
General Discussion
»
Route between OpenVPN Delayed