Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Bastille Proper place to add rules
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
jmarcus
Apprentice
Apprentice


Joined: 12 Jun 2004
Posts: 197

PostPosted: Wed Jun 08, 2005 2:36 pm    Post subject: Bastille Proper place to add rules Reply with quote

I'm new to Bastille and thought this kind of thing would be listed in a FAQ

While running Nessus one warning I recevied was:

Code:
Warning found on port general/tcp   
    The remote host does not discard TCP SYN packets which
    have the FIN flag set.
   
    Depending on the kind of firewall you are using, an
    attacker may use this flaw to bypass its rules.
   
    See also : http://archives.neohapsis.com/archives/bugtraq/2002-10/0266.html
               http://www.kb.cert.org/vuls/id/464113
       
    Solution : Contact your vendor for a patch
    Risk factor : Medium
    BID : 7487


I was searching for a iptables command to deal with this issue and came up with:

Code:
iptables -A INPUT -p tcp -d HOST/MASK --tcp-flags SYN,FIN SYN,FIN -j LOG -m limit --limit 10/m --log-level "LOGLEVEL" --log-prefix="bogus packet"
$IP -A INPUT -p tcp -d HOST/MASK --tcp-flags SYN,FIN SYN,FIN -j DROP


What bastille file should I add this line to?

thanks
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