Page 1 of 1

openvpnAS and multiple public ip

Posted: Fri Oct 16, 2020 11:49 pm
by spagno
Hi all,
I run a openvpnas instance in my apu2 which is also my home router. 2 vpn connections are enough for me and I really like openvpnas because i can manage users and download configuration directly using the web so it's the solution i want to run.

In my setup I have multiple public IP which are used to nat resources inside my network. To do that I have to create different routing table, adding ip rules and mark the packets. Here the problem: it seems that the default openvpnas iptables rule match something about other interfaces and can't mark the packets from the other public ip interfaces and it breaks the NATs. Is there a way to run specific iptables rules BEFORE the openvpnas ones?

regards