All of lore.kernel.org
 help / color / mirror / Atom feed
* Dynamic DNS
@ 2005-03-09  6:25 Sebastian Docktor
  2005-03-09  6:29 ` Brent Clark
                   ` (3 more replies)
  0 siblings, 4 replies; 17+ messages in thread
From: Sebastian Docktor @ 2005-03-09  6:25 UTC (permalink / raw)
  To: netfilter

Hi,

I want to allow a Dynamic DNS Client to Access the SSH-Server 
on my Firewall. But I don't want to open SSH for all IPs,
Is it possible that iptables always looks up the ip address from the 
hostname, so that only the ip has access which is registrated under
the dyndns?


-- 
Sebastian Docktor <sebi@tux-labor.de>


^ permalink raw reply	[flat|nested] 17+ messages in thread
* RE: Dynamic DNS
@ 2005-03-09  8:53 Sietse van Zanen
  0 siblings, 0 replies; 17+ messages in thread
From: Sietse van Zanen @ 2005-03-09  8:53 UTC (permalink / raw)
  To: netfilter

Hi,

You are indeed right. Though I have definitely enabled FXP in my ftp
server, I see iptables dropping the active connections the server makes
to the remote server. 

The FXP client displays:
PORT command ok
Time-out opening connection.

When I do some tcpdumping, I can see the PORT command being sent. The
ftp server tries to open a connection, but packets get dropped because
they're UNRELATED to the ftp connection (probably due to PORT command
containing different IP then client).
Now I have only a couple of people on the ftp server in my DMZ. So I
could very easily configure the server to use a range of say 100 ports
for active ftp connections and open them up to the outside world. It
would however be much neater to have iptables connection tracking allow
the fxp connections.
That's why I just need a yes / no answer on the question. Any
developpers here, that can tell, or should I rather contact RedHat, to
ask how they compiled iptables?

Thanks for the answer so far.

-----Original Message-----
From: netfilter-bounces@lists.netfilter.org
[mailto:netfilter-bounces@lists.netfilter.org] On Behalf Of Kenneth
Kalmer
Sent: Wednesday, March 09, 2005 9:04 AM
To: Brent Clark
Cc: netfilter@lists.netfilter.org
Subject: Re: Dynamic DNS

On Wed, 09 Mar 2005 08:29:23 +0200, Brent Clark
<bclark@eccotours.dyndns.org> wrote:
> Sebastian Docktor wrote:
> > Hi,
> >
> > I want to allow a Dynamic DNS Client to Access the SSH-Server
> > on my Firewall. But I don't want to open SSH for all IPs,
> > Is it possible that iptables always looks up the ip address from the
> > hostname, so that only the ip has access which is registrated under
> > the dyndns?
> >
> >
> 
> Hi
> 
> This may be a ridiculous suggestion.
> 
> How about basing it on MAC address.
> 
> Stupid I know.
> 
> Buts all I could think off.
> 
> Brent Clark
> 
> 

I'm not too sure either, but I do know that iptables resolve the names
the moment the rule is added, not again. Unless you run the rule every
minute to make sure it's updated constantly.

Can't you setup SSHD to only allow connections from certain hosts?
Then again sshd might use the reverse lookup of the ip, which isn't
always the dyndns name...

Will you let us know how you achieve this?


-- 

Kenneth Kalmer
kenneth.kalmer@gmail.com
http://opensourcery.blogspot.com



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

end of thread, other threads:[~2005-03-13 16:28 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09  6:25 Dynamic DNS Sebastian Docktor
2005-03-09  6:29 ` Brent Clark
2005-03-09  8:04   ` Kenneth Kalmer
2005-03-09 22:35     ` R. DuFresne
2005-03-09  9:07 ` Jose Maria Lopez Hernandez
2005-03-09 10:35   ` Nick Drage
2005-03-09 11:03     ` Jose Maria Lopez Hernandez
2005-03-13 16:28     ` Sebastian Docktor
2005-03-09 15:17 ` Maxime Ducharme
2005-03-09 15:26   ` Maxime Ducharme
2005-03-09 19:34   ` Jason Opperisano
2005-03-09 20:33     ` Maxime Ducharme
2005-03-09 20:41 ` Steven M Campbell
2005-03-09 20:58   ` Steven M Campbell
2005-03-09 22:51   ` R. DuFresne
     [not found]     ` <42304A9A.7050207@SCampbell.net>
     [not found]       ` <Pine.LNX.4.60.0503102052440.16999@darkstar.sysinfo.com>
2005-03-12 15:25         ` Steven M Campbell
  -- strict thread matches above, loose matches on Subject: below --
2005-03-09  8:53 Sietse van Zanen

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.