Networking Forums

Networking Forums > Computer Networking > Linux Networking > Sync iptables-rulesets

Reply
Thread Tools Display Modes

Sync iptables-rulesets

 
 
lasseboo
Guest
Posts: n/a

 
      01-13-2008, 08:47 PM
hi,


I am using fail2ban on a server in the LAN to block connections from
suspicious servers. that works very well.

Now I want to block those ip-addresses already at the (otherwise
forwarding) gateway. I.e., I am looking for a method to synchronize
the iptables-rulesets or, better, to synchronize fail2ban. No, some HA-
solutions like ctsync/heartbeat might be too mighty ... I just want to
do something like

iptables -L | grep fail2ban | grep DROP

on the host in the LAN, take the ipadresses that should be blocked and
transfer them via rsync to the gateway and append the rules there to
iptables.

iptables-save on host 1 with iptables-restore on host 2 will not work,
because the rulesets are far from being identically.

any ideas? my idea is to use the transferred ip-addresses from host 1
for the use in a little shellscript on host 2, but that would be a
very, very complicated and ugly script:

- it would have to be transferred continiously, every minute via cron
or so
- it would have to take care from the ip-addresses that fail2ban has
released after the blocktime.

maybe there is a tool out there in opensourceland to fit my
needs ... ?


that would be great; otherwise, all help would be appreciated.



thanx and greetings


lasseboo
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
32b and 64b AD sync Jacques Windows Networking 2 03-01-2007 03:23 AM
How can I tell sync speed Mike Tullett Broadband 10 05-24-2005 08:28 PM
Sync problems The Simpsons Broadband 0 04-21-2005 07:31 PM
Losing Sync Chris Oldroyd Broadband 2 02-15-2005 02:18 PM
Looking for iptables applications code (iptables.c) to run some rules to forward packets tvnaidu@yahoo.com Linux Networking 2 01-17-2005 05:01 PM



1 2 3 4 5 6 7 8 9 10 11