Problem after Linux Server Upgrade to Bullseye
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Sat Jul 16, 2022 4:44 pm
Problem after Linux Server Upgrade to Bullseye
Hi,
i use openvpn now for any years.
now i have a problem.
my computer (debian bullseye) can connect to debian Buster.
after connect, i can ssh to the Destination
Now i changed the Destination from buster to bullseye.
i copied the whole config
But after succesfull openvpn connect i do not see any ip on the destination
i can not ssh into the destination.
i can not ping to destination 10.0.0.1
i can not ping to destination 192.168.100.110
i use "dev tap" to connect and i have a iptables rule
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 192.168.100.0/24 -j MASQUERADE
From win 10 i can connect over openvpn to Bullseye and see the whole lan eg printers + routers
No Problem.
i dont know, what is different from buster to bullseye ?
i have the same configs.
any idea ?
i use openvpn now for any years.
now i have a problem.
my computer (debian bullseye) can connect to debian Buster.
after connect, i can ssh to the Destination
Now i changed the Destination from buster to bullseye.
i copied the whole config
But after succesfull openvpn connect i do not see any ip on the destination
i can not ssh into the destination.
i can not ping to destination 10.0.0.1
i can not ping to destination 192.168.100.110
i use "dev tap" to connect and i have a iptables rule
iptables -t nat -A POSTROUTING -s 10.0.0.0/24 -d 192.168.100.0/24 -j MASQUERADE
From win 10 i can connect over openvpn to Bullseye and see the whole lan eg printers + routers
No Problem.
i dont know, what is different from buster to bullseye ?
i have the same configs.
any idea ?
Last edited by uweT on Sat Jul 16, 2022 5:02 pm, edited 1 time in total.
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Problem after Linux Server Upgrade to Bullseye
You probably forgot too enable IP Forwarding and then setup iptables.
-
- OpenVpn Newbie
- Posts: 6
- Joined: Sat Jul 16, 2022 4:44 pm
Re: Problem after Linux Server Upgrade to Bullseye
i sure enabled ip forwarding.
normally at minimum i must see / ping the servers ip (without forwarding)
i also tried this:
https://linuxhint.com/enable_ip_forward ... ian_linux/
i found this post from a user having vpn problems on bullseye.
But i dont know, does it belong to my problem
https://blog.emeidi.com/2021/09/19/von- ... problemen/
normally at minimum i must see / ping the servers ip (without forwarding)
Code: Select all
cat /proc/sys/net/ipv4/ip_forward
1
https://linuxhint.com/enable_ip_forward ... ian_linux/
Code: Select all
cat /etc/systemd/network/tun0.network
[Match]
Name=tap0
[Network]
IPForward=ipv4
Code: Select all
cat /etc/systemd/network/tap0.network
[Match]
Name=tap0
[Network]
IPForward=ipv4
i found this post from a user having vpn problems on bullseye.
But i dont know, does it belong to my problem
https://blog.emeidi.com/2021/09/19/von- ... problemen/
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 6
- Joined: Sat Jul 16, 2022 4:44 pm
Re: Problem after Linux Server Upgrade to Bullseye
one additional question.
if i enter ip addr
i have the same mac address on both machines
is it possible my Problem ?
if yes, what can i do ?
if i enter ip addr
i have the same mac address on both machines
Code: Select all
12: tap0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 6a:67:34:c4:fa:ca brd ff:ff:ff:ff:ff:ff
inet 10.0.0.2/24 scope global tap0
Code: Select all
7: tap0: <BROADCAST,MULTICAST,DYNAMIC,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN group default qlen 1000
link/ether 6a:67:34:c4:fa:ca brd ff:ff:ff:ff:ff:ff
inet 10.0.0.1/24 scope global tap0
if yes, what can i do ?
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
Re: Problem after Linux Server Upgrade to Bullseye
Why do both machines have the same MAC address ?
-
- OpenVpn Newbie
- Posts: 6
- Joined: Sat Jul 16, 2022 4:44 pm
Re: Problem after Linux Server Upgrade to Bullseye
It is a copy of my hard disk.
i made a copy of my disc and changed hostname + ip and put all in an other computer.
i tried
i tried
Still the same Mac Adress
i made a copy of my disc and changed hostname + ip and put all in an other computer.
i tried
Code: Select all
apt remove --purge openvpn
apt install openvpn
Code: Select all
ip link delete tap0
openvpn --mktun --dev tap0
-
- OpenVPN Protagonist
- Posts: 11139
- Joined: Fri Jun 03, 2016 1:17 pm
-
- OpenVpn Newbie
- Posts: 6
- Joined: Sat Jul 16, 2022 4:44 pm
Re: Problem after Linux Server Upgrade to Bullseye
Solved.
macchanger installed.
now it works
macchanger installed.
now it works