set int openvpn vtun0 vrf my_vrf does nothing:
-
the openvpn process itself listen on 0.0.0.0 (without vrf)
-
connected clients has access to main routing table, not a vrf.
How to verify:
ss -tulipshows0.0.0.0:1194instead of0.0.0.0%my_vrf:1194- do a ping an ip in a vrf and an ip not in vrf through the openvpn:
-
have preconfigured openvpn server on vtun0
-
set vrf name my_vrf table 1000 -
set interfaces openvpn vtun0 vrf my_vrf -
set interfaces openvpn dum0 address description "no vrf" -
set interfaces openvpn dum0 address 10.0.0.100/32 -
set interfaces openvpn dum1 address description "vrf" -
set interfaces openvpn dum1 address 10.0.0.101/32 -
set interfaces openvpn dum1 vrf my_vrf
Then connect to the openvpn server and ping
-
10.0.0.100- ping ok -
10.0.0.101- ping failed