Ask Your Question

Puppet manage server ports

asked 2017-01-16 03:34:41 -0600

Anandk gravatar image

Hi, Can we use puppet to manage server ports? Say I want port 80 to not listen and only enable port 443.

A small example to do this?

Thanks! A

edit retag flag offensive close merge delete


Can you clarify.. Do you want puppet to listen/not listen, or some other technology? If some other technology, two different answers.. 1)Have puppet manage the configuration of your software, telling it which ports to listen/not listen on. 2) explicitly block the machine using firewall rules

DarylW gravatar imageDarylW ( 2017-01-16 07:36:44 -0600 )edit

Thanks! Preferably the first method, but examples of both will be fantastic. Basically a web server that shouldn't listen on port 80 only.

Anandk gravatar imageAnandk ( 2017-01-16 07:41:00 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2017-01-17 12:31:43 -0600

lavaman gravatar image

You can use puppet to manage a webserver and the port configuration of the webserver. There are modules for most common webservers available in the forge:

edit flag offensive delete link more

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: 2017-01-16 03:34:41 -0600

Seen: 60 times

Last updated: Jan 17 '17