Linux VPN

Ben Beeson beesond001 at hawaii.rr.com
Thu Apr 26 22:11:07 PDT 2001


Jessee,

	I used to run a short one-liner crontab that did just that....  I
haven't rebuilt it yet since I replaced my motherboard, but it went something
like this....

                   /sbin/ifconfig | grep -2 eth0  | grep inet  |  gawk -F:
                     '{print $2 }'  |  gawk -F" " '{print $1}'    | /bin/mail -s
'IP address' (address to send to)

Stick this in a crontab to run once every few hours and it will email the
ipaddress you need....   There may be a way to then chop this IP address out of
the message and send it to the firewall also.  How to do that will
probably depend on the particular firewall you use. 

Good luck,

Ben 



On Thu, 26 Apr 2001, you wrote:
> Warren,
> 
> Thanks for the tip.  I will look into it.  Have you tried this method?
> Also, for Roadrunner networks, do you know of a way to let the distant-end
> firewall now your ip address if it is not known in advance or if it changes
> due to a dhcp lease expiration?
> 
> The only way I can think of doing this is having both firewalls post their
> ip's on a statically addressed web server or something and have either
> firewall grab the ip off of that.  Then I would have to use PERL to parse
> the web page and get the ip from it.  Is there another way to accomplish
> this?
> 
> on 4/26/01 12:35 AM, Warren Togami at warren at togami.com wrote:
> 
> > Whoops.  I just remembered it uses normal TCP/IP to encapsulate PPP to
> > encapsulate SSH.  It has been over 2 years since I've read that document.  I
> > suppose this isn't the most efficient way, but I haven't found any other
> > free method.
> > 
> > ----- Original Message -----
> > From: "Warren Togami" <warren at togami.com>
> > To: "Linux & Unix Advocates & Users" <luau at list.luau.hi.net>
> > Sent: Thursday, April 26, 2001 12:31 AM
> > Subject: [luau] Re: Linux VPN
> > 
> > 
> >> One low cost and effective method is using an SSH tunnel for your VPN
> >> routing.  This document describes SSH VPN with PPP, but it can easily be
> >> adapted for Roadrunner.
> >> http://www.linuxdoc.org/HOWTO/VPN-HOWTO.html
> > 
> > 
> > 
> > ---
> > You are currently subscribed to luau as: jessmani at yahoo.com
> > To unsubscribe send a blank email to $subst('Email.Unsub')
> 
> 
> 
> _________________________________________________________
> 
> Do You Yahoo!?
> 
> Get your free @yahoo.com address at http://mail.yahoo.com
> 
> 
> 
> 
> ---
> You are currently subscribed to luau as: beesond001 at hawaii.rr.com
> To unsubscribe send a blank email to $subst('Email.Unsub')



More information about the LUAU mailing list