does anybody have any experience with this ?
Scheme is such:
1. on firs host ( host1 ) I have an ethertap tap0
ifconfig-ured to 10.0.5.1/24
2. that means the traffic will appear as data on
/dev/tap0
3. so we can do something similar to
cat /dev/tap0 > traffic
to get the traffic off
4. why not to transmit the traffic over ssh !
5. on the second computer ( host2 )
ifconfig tap0 10.0.5.2/24 -broadcast
6. and do something similar to
cat traffic > /dev/tap0
7. wow ! VPN !
Problems:
ssh host1 cat /dev/tap0 > /dev/tap0
this is well, thus only one-way connection
in addition after pressing CTRL-C this leaves running
cat /dev/tap0
on the host1, the next attempt
fails within a second with
cat: /dev/tap0: Device or resource busy
Ok, worse problem is in establishing the other direction. The
devices are already open by that cat and are busy. So the simple
case of execution the same command on both sides is:
i. not very good, because there are two ssh connections.
ii. disfunctional :-)
I think this might be quite simplier way of establishing the VPN
than that one described in Linux VPN mini HOWTO ( with ppp )
Software used: ssh-1.2.27, Linux RedHat6.0 v.2.2.5, intel based
mates.
_________________________________________________________________
>>>>>> Tak moudre pravil mates, Boss of the Astrolap. :-) <<<<<<<
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~