Timothy Murphy wrote:
> Dear guru,
>> I forgot to open a pinhole for IMAPS on my home server
> before coming over to Italy for a few weeks.
>> I can ssh into my server,
> and thought I would be able to run firefox on that machine
> and open a pinhole for IMAPS on the modem
> (which only allows local access).
>> But when I run firefox on my server in Ireland
> I never see anything on my laptop in Italy.
>> Could you solve my little problem for me, please?
>> Eg could I change IMAPS on the server
> to use the same port as ssh?
>> Or is there some other way of accessing my modem "remotely"?
>> If you have any suggestion, please cc to gayleard at eircom.net .
> I can read email when I have logged into my server,
> but it is very painful.
>> [I'm able to re-direct some of my email to Italy,
> but it would be nicest if I could get it from my dovecot IMAP server.
>> As always, all suggestions gratefully received.
>>You could ssh and do a script (run by cron) that proxies the modem http
access to the ssh port after disabling the ssh service. A second
script set by cron to run some time later then removes the proxy
and restarts ssh daemon.
You can't have two services on the same port.
Between the two times usining you r laptop web browser to your public
IP on ssh port will actually access modem on it's port (useually 80)
so on italy laptop http://myhomeip:22 during time proxy is running on
server will really access the LAN side of home modem.
I have no idea really how to use cron or set up a proxy as described in
Linux (though I have used NT's AT comand and used Wingate as proxy), but
I'm 100% sure this will work and loads of folks here would advise on
script exact contents..
If you had had VNC rather than ssh you could have seen firefox. Running
lynx text based browser will work over ssh, but it would be useless for
web config of most Modems / Firewall /routers I know.
Maintained by the ILUG website team. The aim of Linux.ie is to
support and help commercial and private users of Linux in Ireland. You can
display ILUG news in your own webpages, read backend
information to find out how. Networking services kindly provided by HEAnet, server kindly donated by
Dell. Linux is a trademark of Linus Torvalds,
used with permission. No penguins were harmed in the production or maintenance
of this highly praised website. Looking for the
Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!