Ask Your Question

configure firewall module from UI?

asked 2014-10-14 09:01:25 -0600

yaplej gravatar image


Im just getting started with PE and want to configure the firewall module. The directions start saying that the site.pp has to be modified. With PE can this be done with the UI only?


edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-10-14 13:22:32 -0600

cbarbour gravatar image

updated 2014-10-14 13:22:53 -0600

You cannot create firewall rules directly through the console. The console can declare and set parameters for classes; it cannot declare and parameterize defined types or native Puppet resource types.

You could however, write a class that sets some firewall rules, and manage that through the Puppet console.

Best practices is to use roles and profiles. Inside your profile, you would include other services add the correct firewall rules for your application.

edit flag offensive delete link more


Thank you. I was confused if I should be trying to set everything in the PE UI or if I should stick to setting things in the config file. So it seems like the config file would be the most consistent way of doing it.

yaplej gravatar imageyaplej ( 2014-10-14 14:58:53 -0600 )edit

No problem. In general, it's best not to do too much through the PE UI; it has some major limitations compared to declaring classes in code. For example, arrays are not supported by the PE console, and you can't declare ordering or conditional logic there.

cbarbour gravatar imagecbarbour ( 2014-10-17 14:47:06 -0600 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


Asked: 2014-10-14 09:01:25 -0600

Seen: 34 times

Last updated: Oct 14 '14