Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
snortsam firewall suggestions
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
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Wed Apr 18, 2007 12:05 pm    Post subject: snortsam firewall suggestions Reply with quote

Hello, ok would like to setup snortsam and firewall on my home mail server so it is dynamic, meaning it drops persistent offender IPs.


My network is already behind a firewall, smoothwall, but want this as secondary firewall as server will be used remotely to access mail either via webmail or IMAP.

Anyone have any suggestions as how to best achieve this?

Was going to use firehol to setup firewall.


cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
texas1emt
Guru
Guru


Joined: 27 Oct 2003
Posts: 352
Location: San Antonio, TX

PostPosted: Thu May 10, 2007 11:57 pm    Post subject: Reply with quote

I've used snortsam pretty extensively, and you might get frustrated if you use iptable rule compilers like firehol or shorewall. I'd highly recommend just using plain iptables rules to avoid issues with snortsam putting rules in the wrong chains or in the wrong places within the chains themselves.

It's important to remember that if you restart iptables using the /etc/init.d/iptables script (or via firehol/shorewall), your DROP rules from snortsam will be thrown out. This is because the chains will be flushed during the restart.

But, then again, if your firewall doesn't change much, then go ahead and use shorewall or firehol :-)
_________________
M. Hayden - San Antonio, TX
Back to top
View user's profile Send private message
carpman
Advocate
Advocate


Joined: 20 Jun 2002
Posts: 2202
Location: London - UK

PostPosted: Fri May 11, 2007 8:41 am    Post subject: Reply with quote

texas1emt wrote:
I've used snortsam pretty extensively, and you might get frustrated if you use iptable rule compilers like firehol or shorewall. I'd highly recommend just using plain iptables rules to avoid issues with snortsam putting rules in the wrong chains or in the wrong places within the chains themselves.

It's important to remember that if you restart iptables using the /etc/init.d/iptables script (or via firehol/shorewall), your DROP rules from snortsam will be thrown out. This is because the chains will be flushed during the restart.

But, then again, if your firewall doesn't change much, then go ahead and use shorewall or firehol :-)



Thanks for reply, i bit lost with setting up firewall as have be spoilt by smoothwall, can you give me quick outline on installing and setting up IPtables to work with snortsam?


cheers
_________________
Work Station - 64bit
Gigabyte GA X48-DQ6 Core2duo E8400
8GB GSkill DDR2-1066
SATA Areca 1210 Raid
BFG OC2 8800 GTS 640mb
--------------------------------
Notebook
Samsung Q45 7100 4gb
Back to top
View user's profile Send private message
al1ta
Tux's lil' helper
Tux's lil' helper


Joined: 18 Apr 2005
Posts: 77

PostPosted: Fri Oct 19, 2007 1:00 pm    Post subject: Reply with quote

[quote="texas1emt"]I've used snortsam pretty extensively, and you might get frustrated if you use iptable rule compilers like firehol or shorewall. I'd highly recommend just using plain iptables rules to avoid issues with snortsam putting rules in the wrong chains or in the wrong places within the chains themselves.

It's important to remember that if you restart iptables using the /etc/init.d/iptables script (or via firehol/shorewall), your DROP rules from snortsam will be thrown out. This is because the chains will be flushed during the restart.

But, then again, if your firewall doesn't change much, then go ahead and use shorewall or firehol :-)[/quote]



Hi, did you ever used snortsame on a 64bit machine? I'have a gentoo amd64 on a pentium D processor kernel vanilla 2.6.23. I'm trieing to use snortsam but for now snort doesn't connect to snortsam

follow snortsam.conf
------------------------
defaultkey mysecret
accept localhost
fwsam localhost
keyinterval 30 minutes
dontblock xxx.xxx.xxx.xxx # home network
rollbackhosts 50
rollbackthreshold 20 / 30 secs
rollbacksleeptime 1 minute
logfile /var/log/snortsam.log
loglevel 4
daemon
#nothreads
email localhost alert@bigfoot
iptables eth0 LOG

I start first snortsame an the snort

Those are the errors tha I get:

snortsam
-----------
2007/10/19, 14:49:24, 127.0.0.1, 3, snortsam, Accepted connection from 127.0.0.1.
2007/10/19, 14:49:24, 127.0.0.1, 3, snortsam, Adding sensor 127.0.0.1 to list.
2007/10/19, 14:49:24, 127.0.0.1, 3, snortsam, Had to use initial key!
2007/10/19, 14:49:24, 127.0.0.1, 1, snortsam, Snort station 127.0.0.1 using wrong password, trying to re-sync.

snort
----------
INFO => [Alert_FWsam](FWsamCheckIn) Connected to host 127.0.0.1.
ERROR => [Alert_FWsam](FWsamCheckIn) Password mismatch! Ignoring host 127.0.0.1.

please help
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