VyOS 1.2.2
vyos@vyos# show interfaces openvpn openvpn vtun1 { local-address 10.255.1.1 { } local-address 192.0.2.1 { } local-host 172.18.202.10 local-port 1195 mode site-to-site persistent-tunnel protocol udp remote-address 10.255.1.2 remote-host 172.18.201.10 remote-port 1195 shared-secret-key-file /config/auth/openvpn-1.key }
But only the first address makes it to the generated config file
vyos@vyos# cat /opt/vyatta/etc/openvpn/openvpn-vtun1.conf verb 3 status /opt/vyatta/etc/openvpn/status/vtun1.status 30 dev-type tun dev vtun1 ping 10 ping-restart 60 ifconfig 10.255.1.1 10.255.1.2 local 172.18.202.10 lport 1195 rport 1195 remote 172.18.201.10 secret /config/auth/openvpn-1.key persist-tun
VyOS 1.1.7
vyos@vyos# show interfaces openvpn openvpn vtun1 { local-address 10.255.1.1 { } local-address 10.255.2.1 { } local-host 172.18.203.10 local-port 1195 mode site-to-site persistent-tunnel protocol udp remote-address 10.255.1.2 remote-host 172.18.201.10 remote-port 1195 shared-secret-key-file /config/auth/openvpn-1.key }
vyos@vyos# ps fauxww | grep openvpn root 3383 0.0 0.0 23532 1448 ? Ss 21:14 0:00 /usr/sbin/openvpn --daemon openvpn-vtun1 --verb 3 --writepid /var/run/openvpn-vtun1.pid --status /opt/vyatta/etc/openvpn/status/vtun1.status 30 --dev-type tun --dev vtun1 --ping 10 --ping-restart 60 --ifconfig 10.255.1.1 10.255.1.2 --local 172.18.203.10 --lport 1195 --rport 1195 --remote 172.18.201.10 --secret /config/auth/openvpn-1.key --persist-tun