I have set-up the OpenVPN server inside ROS for management purposes.
I have two WAN: WAN1 (10.0.1.1/24) and WAN2 (10.0.2.1/24).
The connection to OVPN works only from WAN2.
I’ve noticed that the OVPN connection isn’t marked from mangle.. can be because the interface is created dynamically? In the attached image is the selected (blue background) connection.
WAN1 has route with distance 20 and WAN2 has route with distance 1.
WAN1 is only a failover connection and i need the vpn connection when WAN2 fails.
The mangle roules are:
/ip firewall mangle
add action=accept chain=prerouting comment="Accept WAN1" dst-address=\
10.0.1.0/24
add action=accept chain=prerouting comment="Accept WAN2" dst-address=\
10.0.2.0/24
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=WAN1 new-connection-mark=WAN1 passthrough=yes
add action=mark-connection chain=prerouting connection-mark=no-mark \
in-interface=WAN2 new-connection-mark=WAN2 passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN1 in-interface=\
bridge new-routing-mark=WAN1-mark passthrough=yes
add action=mark-routing chain=prerouting connection-mark=WAN2 in-interface=\
bridge new-routing-mark=WAN2-mark passthrough=yes
add action=mark-connection chain=forward in-interface=WAN1 \
new-connection-mark=WAN1
add action=mark-connection chain=forward in-interface=WAN2 \
new-connection-mark=WAN2
Can OVPN connection works from multiple WAN ?
