I am working from the following article:
https://www.linode.com/community/questions/22397/how-do-i-use-vlan-as-a-private-vpc-with-openvpn
Which advises amending /etc/network/if-up.d/
and /etc/network/if-down.d/
to generate manual routes from the VPN box to the local network.
I do have files in these folders - an ethtool
file which could be stopping my openvpn
file?? (I have created the openvpn (x2 files) and set 751 as the permissions but to no success)
However I am running Ubuntu 22.04 and I'm not sure if these files operate the same. For example, I see that 22.04 doesn't use network-interfaces any more.
Basically I can connect to my VPN box (running Openvpn out of the box (linode)) and can ssh onto my other vlan connected boxes and ping the 22.04 box. So its definitely connected to the VLAN but for some reason the jump between the OpenVPN box and the server isn't working. I'm trying to rule out 22.04 being the issue.
I suspect I may need to adjust my netplan yaml settings such as here:
https://www.nixcraft.com/t/add-a-persistent-static-route-on-ubuntu-22-04-jammy/4339 - but am not sure what they would be? My config follows the same as the linode community question in that I am operating under 10.0.16.0/24
for servers and 10.0.127.0/24
for my VPN.
I have now setup a 2nd yaml file as per the instructions here: https://www.linode.com/community/questions/22510/how-do-i-configure-netplan-openvpn-vlan which looks like this:
network:
version: 2
renderer: networkd
ethernets:
eth1:
dhcp4: no
dhcp6: no
addresses:
- 10.0.16.3/24
routes:
- to: 10.0.127.0/24
via: 10.0.16.1
And also run tcpdump -i eth1 proto \\icmp -v -e
which shows packets are received, but unlike a v20 server which is working, no packets are being returned back.