VPN server under Linux problem after change network interface name SOLVED

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
HolzlPaolo
OpenVpn Newbie
Posts: 3
Joined: Wed May 24, 2023 10:23 am

VPN server under Linux problem after change network interface name SOLVED

Post by HolzlPaolo » Wed May 24, 2023 10:35 am

I have a Virtual machine under Virtualbox (Ubuntu 22.04).
It work without problems.
Network interface is enp03s.
After porting into a new Virtualmachine ProxMox is changed interface name from enp03s to ens18.
So network is not functioning.
I have corrected interface name into /etc/network/interfaces from enp03s to ens18.
Rebooting the network is started.
If I try to connect from Client autentication work perfectly and graph show trasferred data.
But from client is no move possible to ping other PC from internal network.
From client using VPN is no more possible to navigate into websites.

The network interface name under Linux require to be chaged in other positions?
Last edited by HolzlPaolo on Thu May 25, 2023 7:52 am, edited 1 time in total.

HolzlPaolo
OpenVpn Newbie
Posts: 3
Joined: Wed May 24, 2023 10:23 am

Re: VPN server under Linux problem after change network interface name

Post by HolzlPaolo » Wed May 24, 2023 3:26 pm

An Other test:

I fixed the grub to the original machine test clone GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
At this point I corrected /etc/network/interfaces by putting eth0 and in fact if I do an ifconfig I see the correct interface.
If I ping other machines, everything is ok, the same if the others ping her.
At this point I should have the same machine running with eth0 and not enp0s3 and without having moved it from Virtualbox.
The result is identical to that after the move, the VPN from the client does the handshake, shows the data transit graph but then it doesn't work.

HolzlPaolo
OpenVpn Newbie
Posts: 3
Joined: Wed May 24, 2023 10:23 am

Re: VPN server under Linux problem after change network interface name SOLVED

Post by HolzlPaolo » Thu May 25, 2023 8:00 am

I have search the old interface name enp0s3
[oconf="Where is present interface name to change?"]
/etc/grep "enp0s3" -r

/etc/ufw/before.rules
containing
# Allow traffic from OpenVPN client to eth0
-A POSTROUTING -s 10.8.0.0/8 -o enp0s3 -j MASQUERADE
[/oconf]

Correct interface name enp0s3 and so I have solved.

Post Reply