Re: Block IP

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I just had the same problem. I wanted to block an ip that is constantly
doing a dictionary attack on my system. This is the situation before:

/etc/hosts.allow:
  ALL : <some trusted domains here>
  sshd : ALL
/etc/hosts.deny:
  ALL : ALL

The only way I could see to add this ip address I want to block is
to change sshd:ALL in hosts.allow to sshd:ALL EXCEPT 1.2.3.4.

If I sould add sshd:1.2.3.4 to hosts.deny, this would totally be
ignored.
Perhaps it would be more neat to remove sshd:ALL from hosts.allow
and to remove ALL:ALL from hosts.deny.
Then I could say sshd:1.2.3.4 in hosts.deny.
However, what more will be allowed then? The ALL:ALL in hosts.deny
blocks a lot more of course.

Still, I have the feeling that ALL EXCEPT <long lists of untrusted ips
here> is not the way to go.
Can anybody tell me how this should be done?

Thanks in advance,
JeeBee.

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux