ssh-vpn linux<->openbsd
Peter Stuge
stuge-openssh-unix-dev at cdy.org
Tue Jul 8 02:35:17 EST 2008
On Mon, Jul 07, 2008 at 11:56:07AM +0200, Martin Schröder wrote:
> On Linux:
> sudo ssh -v -f -w 0:1 $OPENBSD true
> sudo /sbin/ifconfig tun0 10.1.1.1 10.1.1.2
> sudo /sbin/route add -net 192.168.17.0 netmask 255.255.255.0 dev tun0
ifconfig and route are out of style. :)
Try this instead:
ip a a 10.1.1.1 peer 10.1.1.2 dev tun0
ip r a 192.168.17.0/24 via 10.1.1.2
> On OBSD:
> sudo ifconfig tun1 10.1.1.2 10.1.1.1 netmask 255.255.255.0
> sudo /sbin/route add 10.0.3.0/24 10.1.1.1
> And add a "pass quick on tun1" to /etc/pf.conf
>
> Then I have:
> - Linux:
> tun0 Link encap:UNSPEC HWaddr
> 00-00-00-00-00-00-00-00-00-00-00-00-00-00-00-00
> inet addr:10.1.1.2 P-t-P:10.1.1.2 Mask:255.255.255.255
^
That's not right, that should be a 1 right there.
//Peter
More information about the openssh-unix-dev
mailing list