Ethical Hacking

Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package.
Computer Forensics Training at InfoSec Institute

Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors.




Network Security Focus-Linux
[Top] [All Lists]

Re: Syncing iptables rules between two servers

Subject: Re: Syncing iptables rules between two servers
Date: Mon, 10 Apr 2006 09:15:40 -0500
I could think of a

cron job running every hour on server A where you would like to copy
the rules. Transfer the file where the rules are to Server B.

Things to remmeber here are transfer the large file using scp .. You
could limit the login for passwordless ssh only from this machine or
ip.

At server B check for this file and if present append the file and
restart iptables. Can be done using a cron job ..

./thanks
ilaiy

On 4/8/06, Lars Solberg <sunberg@gmail.com> wrote:
Hi

Is there anyone that know about how I can "sync" iptables rules on two
different servers? The plan is to have (on one of the servers) a
script that automaticly block ip adresses with iptables depending on
different conditions. When that ip adress is blocked I want it to
automaticly be blocked on another server to.

One idea is to change the script that is adding the block rule to
iptables to make it soo it can send the rule to the other server, but
this is not an option, the iptables rules must be synced after the
iptables rule have been added.
Another idea is to get the iptables to use an sql database of some
sort to load the rules, but I dont know how, and this whould be
somehow ruining the whole thing of having a firewall if you make it
dependent an sql server (i think).. But afterall, if this is possible
this is option.

Any ideas?
Hope someone can help out..

Thanks
  Lars


<Prev in Thread] Current Thread [Next in Thread>