Re: iptables & tcp wrappers
Luis M <[email protected]>
| Newsgroups | gmane.comp.security.linux |
|---|---|
| Organization | LatinoMixed.com |
| Message-ID | <1096981897.19515.13.camel@tuxy> |
On Tue, 2004-10-05 at 10:33 +0100, Thomas Chiverton wrote: > On Tuesday 05 Oct 2004 02:40 am, you said: > > However, a few milliseconds later you will be blocked for that IP, thus > > you will be forced to change IPs to continue DoS'ing the box. > > I would be spoofing my IP anyway, wouldn't I ? > Better yet, I can use the IP of your customer's }:-) Use the IP of my customers to login or to try to get them to the blocked list file? High up in the hosts.allow file there is a rule with allowed IPs for sshd. All IPs for my "customers", who are allowed to login to this box, are listed there. If you can guess one of these IPs, then you will be allowed to try to find/guess a username from the few in the AllowUsers option of sshd_config (root is not allowed of course), and after you guess that username you still have to guess the password of that user. If you can spoof your IP to be one of the allowed in hosts.allow, guess a user from the AllowUsers option of sshd_config, and the password of this user, then you are welcome to login. Layers upon layers upon layers of security. This, in my opinion, is the one of the best ways to secure a box through a given service. Let's not forget that after you login you still will have to escalate your privileges to root or whatever super user there is in that box. And this is assuming that the kernel is not version 2.6.x and SELinux policies are not in place. Hey, but I do get your point, there will always be something that could be exploited. We are just trying to make it harder to find or almost impossible to do. This is why people should have some sort of system for checking the integrity of their systems (tripwire?) and have a clean backup ready to restore whatever files (or the whole server with an image of the drive) if any security breach is detected. -- ----)(----- Luis M System Administrator LatinoMixed.com [email protected] Linux is obsolete -- Andrew Tanenbaum http://www.latinomixed.com/