I'm trying to setup shorewall
to allow me to ssh in from a remove computer I own.
I have added the lines
  DNAT            net             loc:192.168.1.2:22     tcp    2097
  DNAT            loc             loc:192.168.1.2:22      tcp    2097
to /etc/shorewall/rules, and re-started shorewall.
(I've modified the incoming port in the lines above.)
My modem/router accepts incoming calls on this port.
Is there anything else I should do?

I added the second rule above to test the connection locally,
and it works fine.

I'm running CentOS-6.5 on both remote and local computers.
The reason I'm asking this rather odd question 
is that the remote computer, in my home in Dublin, is out of action
so I can't test the connection directly.
My local computer is in Italy, where I am at the moment
but am leaving shortly.
I'd like to be sure that when I return home
I can access the computer here (in Italy).

I've tried ssh-ing into the computer here from other remote sites
which I do not own, and I am not able to get through.
The connection is not forbidden, but I do not login to my local computer;
the connection simply hangs:
  tim@lanczos:~> ssh -v -p2037 anghiari.homelinux.com
  OpenSSH_6.1p1, OpenSSL 0.9.8y 5 Feb 2013
  debug1: Reading configuration data /u2/staff/tim/.ssh/config
  debug1: /u2/staff/tim/.ssh/config line 37: Applying options for *
  debug1: Reading configuration data /etc/ssh/ssh_config
  debug1: Connecting to anghiari.homelinux.com [79.43.123.229] port 2037.
(Nb Port changed.)
This could be due to some rule at the remote site;
or it could be that I need to do something extra at this site?

I checked with wireshark, and ssh packets are arriving at 192.168.1.2,
as requested.

Any advice or elucidation gratefully received.

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
School of Mathematics, Trinity College, Dublin 2, Ireland


------------------------------------------------------------------------------
CenturyLink Cloud: The Leader in Enterprise Cloud Services.
Learn Why More Businesses Are Choosing CenturyLink Cloud For
Critical Workloads, Development Environments & Everything In Between.
Get a Quote or Start a Free Trial Today. 
http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to