OVPN configuration on Trunas Scale stopped working

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
Swyx
OpenVpn Newbie
Posts: 2
Joined: Mon May 23, 2022 11:13 am

OVPN configuration on Trunas Scale stopped working

Post by Swyx » Mon May 23, 2022 11:25 am

Hi all,

I recently built and set up my OVPN server and everything was working well until sunday...

My configuration :
Frontal FW/Router is a mikrotik
My Trunas Scale / OVPN server is 10.0.0.10 on the 10.0.0.0/24
The OVPN server is operating in 10.0.60.0/24 subnet
I have a DynDns working properly.

I assume that I have my Certs+CA right because it was previously working.
I rebooted the server on saturday, this might be the cause.

On my mikrotic, NAT is opened for TCP 1194
On my Trunas

here is the OVPN server config
Server 10.0.060.0
Port 1194
TCP
TUN
Subnet

Parameters
push "route 10.0.0.0 255.255.255.0"
push "redirect-gateway def1 bypass-dhcp"
server 10.0.60.0 255.255.255.0
push "dhcp-option DNS 8.8.8.8"
duplicate-cn

a static route is created to 10.0.60.0/24 with 10.0.0.10 as gateway

I followed this tutorial
https://www.youtube.com/watch?v=YEkfW4aC9Rk

I added this rule to my iptables as Scale does not have tunables
iptables -t nat -A POSTROUTING -s 10.0.60.0/24 -o enp40s0 -j MASQUERADE

------------------------------

here is what is happening.
The VPN connection starts as normal, no error.
- I can't navigate the wab
- I cant ping my trunas or any other device

after 60 seconds, the VPN reconnects as he is not receiving any keep-alive packets.

What am I missing, should I add another rule on my frontal Firewall?

Swyx
OpenVpn Newbie
Posts: 2
Joined: Mon May 23, 2022 11:13 am

Re: OVPN configuration on Trunas Scale stopped working

Post by Swyx » Mon May 23, 2022 11:34 am

Ok SOLVED
removed the /24 to my static route and everything is magic....

Post Reply