[OpenVPN home] [Date Prev] [Date Index] [Date Next]
[OpenVPN mailing lists] [Thread Prev] [Thread Index] [Thread Next]
Google
 
Web openvpn.net

Re: [Openvpn-users] "reverse road warrior" scenario?


  • Subject: Re: [Openvpn-users] "reverse road warrior" scenario?
  • From: Stephen Carville <stephen@xxxxxxxxxxxxxx>
  • Date: Thu, 30 Dec 2004 04:43:23 -0800

On Thursday 30 December 2004 4:32 am, Jan Johansson wrote:
> > It is, but it might be overkill. I have a similar problem, but solved
>
> it
>
> > with a ssh tunnel. I've configured my mail software to deliver to
> > localhost:1023, which gets forwarded to port 25 of a machine outside
>
> my
>
> > ISP.
>
> I thought about that as well.
>
> > while true; do
> >     ssh -n -i /root/.ssh/mailtunnel -L 1023:mailserver:25 user@sshhost
> >     sleep 60
> > done &
>
> But since they change the IP's of connected uses, how would I
> renegotiate the tunnels (need it both ways) automatically?

Use the -R option to create a reverse forwarding:

ssh -n -i /root/.ssh/mailtunnel -L 1023:mailserver:25 -R 8025:localhost:25 
user@sshhost

(BTW you don't need to be root to use ssh redirection :-)

Or use fetchmail with POP:

ssh -i  /root/.ssh/mailtunnel -L 110:mailserver:110 
fetchmail <read the manpage>

Get a new ISP?

-- 
Stephen Carville
Systems and Network Administrator
310-342-3602
stephen@xxxxxxxxxxxxxx 


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Openvpn-users mailing list
Openvpn-users@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/openvpn-users