Port forwarding with Putty - I'm stuck
- From: Dave <someplace@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 02:01:34 +0100
My broadband service, provided by my ISP (Onetel in the UK), provides me a fixed IP address and gives me access to mail and newsgroups via the POP, SMTP and NNTP servers at my ISP.
However, I can only use these from the fixed IP address, so I'm unable to read mail at a WiFi hotspot for example, which I find most inconvenient. I was hoping to get to my ISPs mail servers via a UNIX workstation at home, so I appear to be at an IP address they accept.
I'm not exactly sure what I should be doing here, but this is what I have done, and the results to date
I've enabled port forwarding in the sshd config file of the UNIX box.
If I log into the unix workstation (which is NAT'ed, but with a local IP of 192.168.0.10) and run this command:
ssh -g -L 30119:news.onetel.net.uk:119 -L 30025:smtp.onetel.net:25 -L 30110:pop.
onetel.net:110 -L 30080:192.168.0.1:80 192.168.0.10
it means the ISPs servers appear at ports 30119 (news), 30025 (smtp) and 30110 (pop). So for example, if I telnet to port 30110, I see this:
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
+OK Hello there.
Is this what I should be doing?
Now I think I need to tunnel those ports via ssh so I can get at them on my laptop.
In putty, I have set up port forwarding, and have used
Source port 30110
Destination 192.168.0.10:30110
then if I ssh to my UNIX box whilst on my home network, and set the mail server in Thunderbird on my laptop to be localhost on port 30110, I am able to send mail OK. But when I am at a remote location, this does not work, despite me changing the 192.168.0.10 to the public IP address.
Should I set up forwarding both on the UNIX box (running that command above) and in putty on the laptop, or should Putty be able to do it all?
.
- Follow-Ups:
- Re: Port forwarding with Putty - I'm stuck
- From: Martin Gagnon
- Re: Port forwarding with Putty - I'm stuck
- From: Per Hedeland
- Re: Port forwarding with Putty - I'm stuck
- Prev by Date: Re: I can sftp (with password) but not sftp -b - not prompted for password!
- Next by Date: Re: Port forwarding with Putty - I'm stuck
- Previous by thread: putty to host, then plink to next host
- Next by thread: Re: Port forwarding with Putty - I'm stuck
- Index(es):
Relevant Pages
|
|