On 14 Jul 2003, Hans Wurst <(E-Mail Removed)> wrote:
> Hello!
>
> does anyone know if and how it is possible to allow the access to a certain
> port from computers with a certain domain suffix (eg. XYZ.t-ipconnect.de) ?
>
> THX a lot, Felix
As has already been noted, SuSEfirewall2 (iptables) knows nothing about
hostnames.
I used to be able to use /etc/hosts.allow and hosts.deny to limit by hosts
or domains (man 5 hosts_access). Then in SuSE 7.3 that did not seem to
work (at least for ssh which is probably related to ipv6) and I had to use
IP ranges. Now in SuSE 8.2, even IP ranges don't seem to work (or maybe I
don't understand which sshd variant listed in hosts.allow to use) so I
basically put ALL: UNKNOWN in hosts.deny. But my hardware gateway only
lets in ssh, smtp (postfix) and http and ssh requires keys only (passwords
not allowed), so I do not feel too insecure.
--
David Efflandt - All spam ignored
http://www.de-srv.com/
http://www.autox.chicago.il.us/ http://www.berniesfloral.net/
http://cgi-help.virtualave.net/ http://hammer.prohosting.com/~cgi-wiz/