Someone corrects me if 'im wrong but i guess you can't. You need to create a bridge between your tun device (tun0) on the gateway and the iface that is connected to your 172.16.43.0/24 network (nic2).
The ssh command to use on your laptop is: ssh -w0:0 [EMAIL PROTECTED] (run it as root user to make sure it works or give the correct permissions to tun to the user who runs it) then if the bridge is up you should be able to ping a host on the 172.16.43.0/24 network from your laptop. On 8/15/06, Didier Wiroth <[EMAIL PROTECTED]> wrote: > > Hello, > > I've read the ssh man and found the "ssh-based virtual private networks" > section. > I've set the sshd_config of the vpn server to "PermitTunnel yes" > I'm a little bit lost in my config ... and I tried for hours without > success to configure a tunnel. > > My config is the following: > wireless lan network: 192.168.0.0/24 > wireless laptop has following address: 192.168.0.11 > > gateway (this should be the vpn server!!!) has three NICs. > nic1: 192.168.0.1 (connected to the wireless network) > nic2: 172.16.43.1 (connected to the 172.16.43.0/24 internal network) > nic3: pppoe dsl connection (ip via dhcp from internet provider) > > Assuming I have "not" yet created any tun devices: > How do I create a vpn from host 192.168.0.11 to the 172.16.43.0/24 network > with a ssh (tunnel device, using "ssh -f -w ...")? (the gateway address > 192.168.0.1 should be the vpn server) > > Many many thanks !!! > Didier