Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #236041

Re: How to manage a firewall script with minor tweaks for different machines?

From Andy Smith <andy@strugglers.net>
Newsgroups linux.debian.user
Subject Re: How to manage a firewall script with minor tweaks for different machines?
Date 2021-06-12 21:30 +0200
Message-ID <Cphup-2L7-3@gated-at.bofh.it> (permalink)
References <CpemS-YI-3@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


Hello,

On Sat, Jun 12, 2021 at 07:02:50PM +0300, Anssi Saari wrote:
> But then... One machine has a radius server that needs UDP port 1812
> open. And another is a print server with CUPS and SMB which apparently
> need at least TCP ports 631 and 137 open.

It sounds like you need configuration management software. You
already have several machines by the sounds of it, so it's a good
time to look in to it.

Ansible can be very simple and quick to learn and everything you've
mentioned in your post can easily be done with it.

I found Puppet a bit of a nicer thing to develop in, but a lot more
complicated and a lot more work to keep up to date, so I switched to
Ansible.

Other configuration management software is available and I don't
think it matters that much which one you go for; you will no doubt
discover your preferences.

All configuration management solutions will cover the use case of
different config for different hosts or groups of hosts, templating
of configuration files, and pushing files and assets out to where
they need to be.

You can invent your own with a big shell script and an ssh loop but
to be honest, Ansible is really very simple, may as well use
something that has solved all these problems.

Cheers,
Andy

-- 
https://bitfolk.com/ -- No-nonsense VPS hosting

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

How to manage a firewall script with minor tweaks for different machines? Anssi Saari <as@sci.fi> - 2021-06-12 18:10 +0200
  Re: How to manage a firewall script with minor tweaks for different machines? deloptes <deloptes@gmail.com> - 2021-06-12 18:30 +0200
  Re: How to manage a firewall script with minor tweaks for different  machines? john doe <johndoe65534@mail.com> - 2021-06-12 19:30 +0200
    Re: How to manage a firewall script with minor tweaks for different machines? Anssi Saari <as@sci.fi> - 2021-06-12 21:40 +0200
  Re: How to manage a firewall script with minor tweaks for different  machines? Andy Smith <andy@strugglers.net> - 2021-06-12 21:30 +0200
    Re: How to manage a firewall script with minor tweaks for different machines? Anssi Saari <as@sci.fi> - 2021-06-19 16:30 +0200

csiph-web