Mar
19
SSH VPN on N800
I was at office today and needed to set up a quick and dirti SSH VPN so the attached script came out.
It still needs some work to be done (checks, status management, start & stop, etc.) but it works! :)
Well, actually it wasn't meant to be used on N800. I was using it on my laptop, but after a quick test I found it's working pretty well. So, why not use it?!
Basically you only need to change values for the variables:
REMOTE_USER="maddler" REMOTE_ADDRESS="192.168.1.199" VPN_IP_LOCAL="10.0.0.1" VPN_IP_REMOTE="10.0.0.2"
Have fun!
Comments, Pingbacks:
Nice quick and easy VPN script Maddler. It is simple scripts like these that help make VPN service an enjoyable experience.
You know, every-day's scripts. Sometimes the help more than full sized applications.
Comment from: Andrew Back [Visitor]
· http://carrierdetect.com
Hi Maddler,
Just tried your script on an N800 w/ITOS 2007 Bora to an OpenBSD box. In the script had to change 'gawk' to 'awk', and to eliminate permissions problems ran as root on client and server, Had to remove 'notty' as OpenBSD's pppd doesn't appear to support this, and now get in /var/log/messages on the server:
"Aug 13 21:20:40 arthur pppd[24109]: pppd 2.3.5 started by root, uid 0
Aug 13 21:20:40 arthur pppd[24109]: Failed to open /dev/tty: Device not configured
Aug 13 21:20:40 arthur pppd: Exit."
The man page for pppd suggests that if you omit the tty from the options it will use controlling terminal (incoming ssh?). So imagined it should work. Any ideas?
Thanks,
Andrew
Just tried your script on an N800 w/ITOS 2007 Bora to an OpenBSD box. In the script had to change 'gawk' to 'awk', and to eliminate permissions problems ran as root on client and server, Had to remove 'notty' as OpenBSD's pppd doesn't appear to support this, and now get in /var/log/messages on the server:
"Aug 13 21:20:40 arthur pppd[24109]: pppd 2.3.5 started by root, uid 0
Aug 13 21:20:40 arthur pppd[24109]: Failed to open /dev/tty: Device not configured
Aug 13 21:20:40 arthur pppd: Exit."
The man page for pppd suggests that if you omit the tty from the options it will use controlling terminal (incoming ssh?). So imagined it should work. Any ideas?
Thanks,
Andrew
Comment from: Alex [Visitor]
· http://www.guerillartivism.net
How about ssh -w any:any host.name.com ?
It should be easier now that OpenSSH 4.3+ is out for the N800 and that the tun/tap interface is activated by default... :-)
It should be easier now that OpenSSH 4.3+ is out for the N800 and that the tun/tap interface is activated by default... :-)
This post has 6 feedbacks awaiting moderation...