Port forwarding with Putty - I'm stuck



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?








.



Relevant Pages

  • Bizarre problem with failed Putty connections
    ... One day I found I could no longer use Putty to login to ... link my lan to the internet using a different ISP the login succeeds. ... And the weird part is connections to port 22 make it though from ... debug1: read PEM private key done: type RSA ...
    (comp.security.ssh)
  • Re: Current status?
    ... You would still need to know who your MTA is ... justification for allowing anybody to use port 25. ... to the problem of how to get the email system to be more immune to SPAM. ... your ISP should never allow you ...
    (comp.os.vms)
  • Re: SMTP Server for outgoing only behind a home router
    ... They cliam to ONLY block port 80 to keep me from ... you will get a 220 greeting line from the remote SMTP server: ... So AOL.COM methods stops legitimate roaming users from using ESMTP AUTH to ... So look to see of your ISP supports ESMTP AUTH for dynamic IP users and/or ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: Current status?
    ... spam will not stop because you start blocking port 25. ... I still won't use the idiots running the ISP for my mail. ...
    (comp.os.vms)
  • Re: Current status?
    ... I'm on Verizon FIOS at home and I know the FIOS converter box ... port 25 traffic wouldn't make it to my LAN (or single computer ... ISP, ... through a mailhub with a fixed IP address - for most people the simplest to ...
    (comp.os.vms)