Dear forum,
I'm sorry for posting a further thread about this topic, but this is about problems using a different approach to achieve the same result. As I posted in thread Thread ppp-via-ssh-freebsd-ppp-linux-pppd.93634 I recently tried to establish a ancient "poor-mans-vpn" via
Consulting ssh(1) I'm now trying to set up a network tunnel using the -w switch. On freebsd I'm using the following code sequence to log into the linux remote system:
Both tun0 devices are set up correctly on both sides but aren't exhibiting any ip.
Logged into the linux mashine the tun0 device is set up via
on freebsd side the network interface tun0 is set up using:
On both sides, the tun-devices having now an ip-address and a routing table entry. But sending ping requests aren't responded independently from the direction.
Using on both sides freebsd or linux mashines and setting the network up using os-specific commands, everything works. Hence the configuration seems to be ok on both. But why freebsd and linux aren't communicating via the tunnel and what can I do to fix this problem?
Many thanks and best regards
Paule
I'm sorry for posting a further thread about this topic, but this is about problems using a different approach to achieve the same result. As I posted in thread Thread ppp-via-ssh-freebsd-ppp-linux-pppd.93634 I recently tried to establish a ancient "poor-mans-vpn" via
ssh
and ppp
from freebsd-14 to linux. I gave up this method as the following seems much easier.Consulting ssh(1) I'm now trying to set up a network tunnel using the -w switch. On freebsd I'm using the following code sequence to log into the linux remote system:
Code:
su root
ssh -w 0:0 -i /path/to/key-on-remote root@remotehost
Both tun0 devices are set up correctly on both sides but aren't exhibiting any ip.
Logged into the linux mashine the tun0 device is set up via
Code:
ip link set tun0 up
ip addr add 172.16.1.2/32 peer 172.16.1.1 dev tun0
on freebsd side the network interface tun0 is set up using:
Code:
ifconfig tun0 172.16.1.1/32 172.16.1.2
On both sides, the tun-devices having now an ip-address and a routing table entry. But sending ping requests aren't responded independently from the direction.
Using on both sides freebsd or linux mashines and setting the network up using os-specific commands, everything works. Hence the configuration seems to be ok on both. But why freebsd and linux aren't communicating via the tunnel and what can I do to fix this problem?
Many thanks and best regards
Paule