I built a few controllers and edge servers using Ubuntu 22.04 LTS (latest updates as of this date) minimal install.
Through the help of another site (https://www.linuxbabe.com/ubuntu/set-up ... vpn-server), I adapted the install (it was missing some small and big steps), and I will share here:
This is the apt install command needed before installing on Ubuntu 22.04 LTS minimal:
Code: Select all
apt -y install make gcc binutils gzip libreadline-dev libssl-dev libncurses5-dev libncursesw5-dev libpthread-stubs0-dev
Code: Select all
echo "[Unit]" > /etc/systemd/system/softether-vpnserver.service
echo "Description=SoftEther VPN server" >> /etc/systemd/system/softether-vpnserver.service
echo "After=network-online.target" >> /etc/systemd/system/softether-vpnserver.service
echo "After=dbus.service" >> /etc/systemd/system/softether-vpnserver.service
echo "" >> /etc/systemd/system/softether-vpnserver.service
echo "[Service]" >> /etc/systemd/system/softether-vpnserver.service
echo "Type=forking" >> /etc/systemd/system/softether-vpnserver.service
echo "ExecStart=/opt/softether/vpnserver/vpnserver start" >> /etc/systemd/system/softether-vpnserver.service
echo 'ExecReload=/bin/kill -HUP $MAINPID' >> /etc/systemd/system/softether-vpnserver.service
echo "" >> /etc/systemd/system/softether-vpnserver.service
echo "[Install]" >> /etc/systemd/system/softether-vpnserver.service
echo "WantedBy=multi-user.target" >> /etc/systemd/system/softether-vpnserver.service
Code: Select all
systemctl enable softether-vpnserver
Code: Select all
systemctl start softether-vpnserver
Code: Select all
systemctl status softether-vpnserver
Code: Select all
ss -tulpan | grep vpnserver
How to create a sample yaml file for local bridges:
Code: Select all
echo "network:" > /etc/netplan/localbridges.yaml
echo " ethernets:" >> /etc/netplan/localbridges.yaml
echo " ens224:" >> /etc/netplan/localbridges.yaml
echo " link-local: []" >> /etc/netplan/localbridges.yaml
echo " ens193:" >> /etc/netplan/localbridges.yaml
echo " link-local: []" >> /etc/netplan/localbridges.yaml
echo " ens161:" >> /etc/netplan/localbridges.yaml
echo " link-local: []" >> /etc/netplan/localbridges.yaml
echo " ens256:" >> /etc/netplan/localbridges.yaml
echo " link-local: []" >> /etc/netplan/localbridges.yaml
echo "# ens225:" >> /etc/netplan/localbridges.yaml
echo "# link-local: []" >> /etc/netplan/localbridges.yaml
echo " version: 2" >> /etc/netplan/localbridges.yaml
The link-local: [] setting is disabling ipv4 and ipv6 for that interface (which is what you want for bridged interfaces)
Code: Select all
netplan generate