I have this "old" setup that's working as wanted.. openvpn client connected with danted with polipo proxy server, nextcloud file server and apache server on the same machine. This setup do what I want it to do, is it possible to do with netplan?? Setup below.

Also a the tun interface will added with openvpn

auto lo eth0 eth0:1 iface lo inet loopback

iface eth0 inet dhcp

up ip route add via

iface eth0:1 inet static address netmask broadcast network

post-up ip route add dev eth0 src table admin
post-up ip route add default via dev eth0 table admin
post-up ip rule add from table admin
post-up ip rule add to table admin  
post-down ip rule delete from table admin
post-down ip rule delete to table admin


ip rule 0: from all lookup local 32764: from all to lookup admin 32765: from lookup admin 32766: from all lookup main 32767: from all lookup default

Your Answer

By clicking "Post Your Answer", you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.