NetBSD-Users archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: VPN - almost got it
On Wed, Sep 13, 2017 at 8:59 AM, D'Arcy Cain <darcy%netbsd.org@localhost> wrote:
> ifconfig tun0 create
> ifconfig tun0 10.0.0.1 10.0.0.2 netmask 0xfffffffc
> route add 10.0.0.2/32 10.0.0.1 # should this be necessary?
> route add 192.168.215.0/24 10.0.0.2
>
> On the internal machine I do this:
>
> ifconfig tun0 create
> ifconfig tun0 10.0.0.2 10.0.0.1 netmask 0xfffffffc
> route add 10.0.0.1/32 10.0.0.2 # should this be necessary?
> route add 192.168.0.0/24 10.0.0.1
> /usr/bin/ssh -f -w 0:0 queen.vex.net true
Those static routes shouldn't be necessary, the 2 tun interfaces are
in the same subnet so no routing is needed.
Sorry, can't help with the rest, I haven't done this in NetBSD.
Andy
Home |
Main Index |
Thread Index |
Old Index