View previous topic :: View next topic |
Author |
Message |
whatzdaname n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
![](images/avatars/gallery/Star Wars/movie_star_wars_obi-wan_kenobi.gif)
Joined: 30 Mar 2003 Posts: 24 Location: Earth
|
Posted: Mon Nov 08, 2004 4:51 am Post subject: iptables install/config for a standalone single-IP system |
|
|
First off, I'm a total newbie in the net security business.
I have seen increasing unauthorized access to my Gentoo machine these days and I decided to install a firewall for my system. What I would ultimately like to do is to manually block all the IPs trying to break into my machine - or use any method equivalent to that effect.
I read over the "HOWTO: Iptables for newbies" parts 1 and 2 in the Docs, Tips, & Tricks section but didn't understand lots of things -- I realized it might be because the HOWTO is dealing with a situation not suited for my situation. I have a standalone single-IP system and I would like to set up iptables for my system to block specific IPs. Anyone giving me tips would be greatly appreciated.
PS I have tried using shorewall but I can't find a way to block specific IPs.
Thanks. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SoTired Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
![](images/avatars/3783827714269df197415f.png)
Joined: 19 May 2004 Posts: 174
|
Posted: Mon Nov 08, 2004 6:07 am Post subject: |
|
|
Code: | iptables -A INPUT -s [ip-address] -j DROP
|
Ought to work. It would be advisable not to make too many of these rules, as IPtables doesn't work so well with tons (literally) of rules. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|