Other ways to specify allowed ports

Post Reply
yakatz
Junior Member
Posts: 7
Joined: 23 Oct 2011, 01:28

Other ways to specify allowed ports

Post by yakatz »

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:

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
Is there a way to do this? (Or some alternative that allows opening ports, but not listing them all on a single line)
Post Reply