Other ways to specify allowed ports
Posted: 06 Nov 2020, 07:20
I am trying to standardize my servers better with Puppet. Puppet is very good at building files with multiple lines like csf.allow, but it is more difficult to add multiple values to a single line like the TCP_IN list in csf.conf.
I attempted to add partial lines to csf.allow, but that didn't seem to work:
Is there a way to do this? (Or some alternative that allows opening ports, but not listing them all on a single line)
I attempted to add partial lines to csf.allow, but that didn't seem to work:
Code: Select all
tcp|in|d=22 # puppet - from csf-global-allow-ssh
tcp|out|d=8140|d=192.168.118.31 # puppet - from csf-global-allow-to-puppetserver