Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
iptables install/config for a standalone single-IP system
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
whatzdaname
n00b
n00b


Joined: 30 Mar 2003
Posts: 24
Location: Earth

PostPosted: Mon Nov 08, 2004 4:51 am    Post subject: iptables install/config for a standalone single-IP system Reply with quote

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
View user's profile Send private message
SoTired
Apprentice
Apprentice


Joined: 19 May 2004
Posts: 174

PostPosted: Mon Nov 08, 2004 6:07 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum