Ask Your Question

Binding agent to a specific IP address?

asked 2013-07-19 12:13:51 -0600

cmccluskey gravatar image

I know that bindaddress can be used to bind puppetmaster to a specific IP address?

We have servers that have multiple interfaces, and we wish to have puppet agent only try a specific list of interfaces or IPs. An acceptable solution is to create a unique puppet.conf file for each server (although listing by IP block -- ex:, -- would be ideal), but I do not see the wiring to make this happen from a configuration point of view.

edit retag flag offensive close merge delete


You might want to add some detail on what you're trying to accomplish. You question as written is unclear. fwiw, under Linux all communication is going to default out ...(more)

ramindk gravatar imageramindk ( 2013-07-19 13:29:16 -0600 )edit

2 Answers

Sort by ยป oldest newest most voted

answered 2013-07-24 19:19:28 -0600

riffraff169 gravatar image

The outgoing traffic from a server will go through the interface that has the best route to the destination, preferring more specific routes to more general. There really isn't a reason to sending traffic out an interface other than the one that has the best route. If you wanted to do something like that, you would have to employ something like source routing, which is tricky to do.

Generally if you want it to go out a specific interface, you have a route to the destination on that interface (and a valid path to the destination through that interface ... (more)

edit flag offensive delete link more

answered 2013-08-13 14:43:36 -0600

banjer gravatar image

updated 2013-08-13 14:45:05 -0600

The bindaddress option in puppet.conf totally works for me on the agents. This works for a single IP; I'm not sure if its possible to specify multiple interfaces to bind to.

# /etc/puppet/puppet.conf
    # bind to primary IP
    bindaddress =


You can confirm that its listening on that particular IP with netstat. e.g.:

Before specifying bind address (the default of listening on all interfaces -

$ sudo netstat -tulpn | grep 8139
tcp        0      0      *             LISTEN      2635/ruby

After adding bindaddress ... (more)

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


Asked: 2013-07-19 12:13:51 -0600

Seen: 2,350 times

Last updated: Aug 13 '13