Maddler's Rants 'n' Raves

SSH VPN on N800

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!

Download vpn.sh

Maddler EmailMaemo, Nokia N800Permalink 4 comments

Comments, Pingbacks:

Comment from: Jerry Helsh [Visitor] Email
Nice quick and easy VPN script Maddler. It is simple scripts like these that help make VPN service an enjoyable experience.
PermalinkPermalink 2007-03-28 @ 00:04
Comment from: Maddler [Member] Email
You know, every-day's scripts. Sometimes the help more than full sized applications.
PermalinkPermalink 2007-03-28 @ 00:19
Comment from: Andrew Back [Visitor] Email · 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
PermalinkPermalink 2007-08-14 @ 01:32
Comment from: Alex [Visitor] Email · 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... :-)
PermalinkPermalink 2007-10-17 @ 07:58

This post has 6 feedbacks awaiting moderation...

Leave a comment:

Your email address will not be displayed on this site.
Your URL will be displayed.

Allowed XHTML tags: <p, ul, ol, li, dl, dt, dd, address, blockquote, ins, del, span, bdo, br, em, strong, dfn, code, samp, kdb, var, cite, abbr, acronym, q, sub, sup, tt, i, b, big, small>
(Line breaks become <br />)
(Set cookies for name, email and url)
(Allow users to contact you through a message form (your email will NOT be displayed.))

Categories

Who's Online?

  • Guest Users: 8

XML Feeds

What is RSS?