Connect Ubuntu 22.04 to VLAN?

I am working from the following article by @hphillips:

https://www.linode.com/community/questions/22397/how-do-i-use-vlan-as-a-private-vpc-with-openvpn

I am running Ubuntu 22.04 and need to know how to create the exact same parameters (10.0.16.0 and 10.0.127.0) (as in the link above) but within netplan.

I can connect to my VPN box (running Openvpn out of the box) and can ssh onto another 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 this specific server isn't working.

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

I have also run tcpdump -i eth1 proto \\icmp -v -e which shows packets are received, but unlike the v20 server which is working, no packets are being returned back.

In short, how can I apply the settings from the original link to Ubuntu 22.04?

1 Reply

"So its definitely connected to the VLAN but for some reason the jump between the OpenVPN box and this specific server isn't working."

This could be something you would want to approach as an SSH connection issue. If you're running a firewall on your Ubuntu 22.04 instance, you may try disabling it and connecting that way.

You should also be able to find error logs from either in /etc/openvpn/ directory or using the following command:

grep VPN /var/log/syslog

When making changes to your network configuration files, you also want to make sure that Network Helper is disabled.

Finally, I suggest reaching out to the OpenVPN community to see if someone there more experienced with the application itself can provide any advice.

Reply

Please enter an answer
Tips:

You can mention users to notify them: @username

You can use Markdown to format your question. For more examples see the Markdown Cheatsheet.

> I’m a blockquote.

I’m a blockquote.

[I'm a link] (https://www.google.com)

I'm a link

**I am bold** I am bold

*I am italicized* I am italicized

Community Code of Conduct