Linux Netfilter discussions
 help / color / mirror / Atom feed
* Iptables & Remote SSH Sorrows
@ 2003-04-10 18:24 tamato
  2003-04-10 18:38 ` Kelly Setzer
  0 siblings, 1 reply; 3+ messages in thread
From: tamato @ 2003-04-10 18:24 UTC (permalink / raw)
  To: netfilter

I have configured iptables to allow ssh connections.  However, no one is able 
to connect unless I add their IP address to the /etc/hosts file.  Since my 
remote useres are on dynamic IP's - their address changes each time they log in 
to their internet accounts.  

Is there a way to configure iptables or another system file that would allow 
ssh connections from any IP?

My setup:

  OS......: Linux Kernel: 2.4.18
  Distro..: RedHat 8.0 (2.4.18-27.8.0)
  Iptables: 1.2.6a-2

  [remote users]---->(internet)<----[linux box]

Iptables SSH command (loaded from /etc/init.d/iptables script):

   iptables -A tcp_inbound -p TCP -s 0/0 --destination-port 22 -j ACCEPT

Any insight or help would be much appreciated.

Thanks.

-tom-



^ permalink raw reply	[flat|nested] 3+ messages in thread
* RE: Iptables & Remote SSH Sorrows
@ 2003-04-10 20:01 Daniel Chemko
  0 siblings, 0 replies; 3+ messages in thread
From: Daniel Chemko @ 2003-04-10 20:01 UTC (permalink / raw)
  To: tamato, netfilter

By chance, do you have a * in hosts.deny?

This is not an iptables problem. IMO, you are denying everything and
only including what you have in hosts.allow, since it runs before
hosts.deny. That would allude to your hosts.deny being restrictive which
is fine, but it means that you can't easily allow dynamic connections.
Maybe you can check the pattern matches in "man hosts.allow" to see what
can be done to limit the number of entries you need to add to the list.


-----Original Message-----
From: tamato@attbi.com [mailto:tamato@attbi.com] 
Sent: Thursday, April 10, 2003 11:25 AM
To: netfilter@lists.netfilter.org
Subject: Iptables & Remote SSH Sorrows

I have configured iptables to allow ssh connections.  However, no one is
able 
to connect unless I add their IP address to the /etc/hosts file.  Since
my 
remote useres are on dynamic IP's - their address changes each time they
log in 
to their internet accounts.  

Is there a way to configure iptables or another system file that would
allow 
ssh connections from any IP?

My setup:

  OS......: Linux Kernel: 2.4.18
  Distro..: RedHat 8.0 (2.4.18-27.8.0)
  Iptables: 1.2.6a-2

  [remote users]---->(internet)<----[linux box]

Iptables SSH command (loaded from /etc/init.d/iptables script):

   iptables -A tcp_inbound -p TCP -s 0/0 --destination-port 22 -j ACCEPT

Any insight or help would be much appreciated.

Thanks.

-tom-




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2003-04-10 20:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-10 18:24 Iptables & Remote SSH Sorrows tamato
2003-04-10 18:38 ` Kelly Setzer
  -- strict thread matches above, loose matches on Subject: below --
2003-04-10 20:01 Daniel Chemko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox