Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject:
PostPosted: Thu May 08, 2008 3:15 pm 
Offline

Joined: Thu May 08, 2008 3:04 pm
Posts: 1
Hi - I struggled to get this figured out so posting in case others will find this useful.

If you are using ufw on ubuntu, configuring sshguard is not as straightforward (at least for a noob such as myself).

I partially used dfelicia's solution above (for the syslog-ng configuration). Then, I had to go in and add the following in /etc/ufw/before.rules:

Code:
# sshguard rules
# first setup a new chain for sshguard
# then setup a rule for before-input to redirect to sshguard
-N sshguard
-A ufw-before-input -p tcp --dport 22 -j sshguard


I also had to do this fairly up-top in the file (I placed mine just after the loopback rules at the top).

I tried putting these lines in the /var/lib/ufw/user.rules file but this did not block as I expected since I believe the ufw-before-input had a more generic iptables rule.

If anyone has a better way of configuring this, please let me know. Otherwise, I hope this helps others!


Top
   
 Post subject: get fwbuilder
PostPosted: Mon Jun 16, 2008 12:05 am 
Offline
Newbie

Joined: Wed May 21, 2008 8:59 pm
Posts: 4
ICQ: 160235155
Website: http://www.RavaSolutions.com
Yahoo Messenger: ychonry
Location: Stamford, CT
Someone probably already mentioned iptables.
get fwbuilder which would allow you to administer your iptable rules visually and upload it to your remote server via ssh.

http://www.fwbuilder.org/

- George


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


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

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group