Re: Restricting Access by IP

From: Sensei (senseiwa_at_tin.it)
Date: 07/06/05


Date: Wed, 06 Jul 2005 10:51:47 -0500

Bit Twister wrote:
> $ hostname
> wb.home.invalid
>
> $ cat /etc/hosts.deny
> ALL: ALL
>
> $ cat /etc/hosts.allow
> ALL: LOCAL,.home.invalid,external_ip1,external_ip2,...
>

Even better IMO

man iptables



Relevant Pages

  • Re: iptables can filter by hostname and not ip address ?
    ... RoadWarrior config. ... you can specify a hostname rather than an IP. ... > that case iptables converts the hostname to an IP via a lookup in the ... > key or to restrict itself to connections from a particular user. ...
    (comp.os.linux.security)
  • Re: iptables can filter by hostname and not ip address ?
    ... you can specify a hostname rather than an IP. ... that case iptables converts the hostname to an IP via a lookup in the ... key or to restrict itself to connections from a particular user. ...
    (comp.os.linux.security)
  • Re: update hostname
    ... Bit Twister 寫道: ... True, it changes the hostname for a moment, ... but it switches it back whenever you reboot. ...
    (comp.os.linux.misc)
  • Re: update hostname
    ... Bit Twister wrote: ... as root have you tried, ... True, it changes the hostname for a moment, ... Original Poster in this instance. ...
    (comp.os.linux.misc)
  • Re: Zorp firewall opinions
    ... Zorp will be use to protect my database. ... IPTables is enough IMO. ... Do not believe in miracles -- rely on them. ...
    (comp.security.firewalls)