Re: Port forwarding with Putty - I'm stuck
- From: Martin Gagnon <martin@xxxxxxxxxxxxxxxx>
- Date: Thu, 28 Jun 2007 11:22:36 GMT
Dave <someplace@xxxxxxxxxxxxxxxx> wrote:
My broadband service, provided by my ISP (Onetel in the UK), provides meI'm not sure if I understand what you want to do but if you only want to
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
do some local port forwarding.. you do *not* need this step above. Only
creating the tunnel from Putty for the server is enought..
[snip]
Yes.. for sure
Now I think I need to tunnel those ports via ssh so I can get at them on
my laptop.
Whitout making the tunnel in the server directly .. here you only have
In putty, I have set up port forwarding, and have used
Source port 30110
Destination 192.168.0.10:30110
to do like these local port forward for the session that connect on
192.168.0.10:
Source port: 30110
Destination: pop.onetel.net:110
+
Source port: 30025
Destination: smtp.onetel.net:25
+
Source port: 30080
Destination: 192.168.0.1:80
The same thing here... but like someone else told you on another port..
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.
you have to setup Thunderbird so use the smtp address "localhost" port:
30025.
Should I set up forwarding both on the UNIX box (running that commandlike I said, only with putty is enought... but using the right
above) and in putty on the laptop, or should Putty be able to do it all?
destination address..
--
Martin
.
- Follow-Ups:
- Re: Port forwarding with Putty - I'm stuck
- From: Dave
- Re: Port forwarding with Putty - I'm stuck
- References:
- Port forwarding with Putty - I'm stuck
- From: Dave
- Port forwarding with Putty - I'm stuck
- Prev by Date: Re: Port forwarding with Putty - I'm stuck
- Next by Date: Re: Port forwarding with Putty - I'm stuck
- Previous by thread: Re: Port forwarding with Putty - I'm stuck
- Next by thread: Re: Port forwarding with Putty - I'm stuck
- Index(es):
Relevant Pages
|
|