Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

When our collection of virtual servers got to a certain size, we moved from hosts files to a DNS server. However, we still have to update the firewall rules on every machine each time a new server is added. (Since all virtual machines at the provider can see each other, including other customers machines, we need to a list of trusted addresses in the iptables rules)

What techniques do people use to centralise administration of IPTables configuration? At the moment the best we've got is uploading a new ip list to each machine and restarting the firewall. Is there a better way?

[It would be wonderful if we could somehow tie IPTables trusted addesses to our DNS - eg. anything defined in our DNS is classed as a trusted address - but I assuming that nothing like this is possible]

share|improve this question

1 Answer 1

Look into puppet collected resources, and the firewall module. It uses the ruby spaceship operator.

You can create a rule entry on each client manifest and then collect them together to apply on each other client

This means you can install puppet on a node, and it's ip is automatically added to all other nodes.

I believe the examples online do similar for the ssh known hosts file

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.