Ticket #1013 (closed defect: fixed)
Bcfg2 server can't be bound to a specific network interface
Reported by: | https://www.google.com/accounts/o8/id?id=AItOawlP6DRBvIJ7NLpLWILbgzURvGbMtGEyd8U | Owned by: | solj |
---|---|---|---|
Priority: | minor | Milestone: | Bcfg2 1.2.0 Release |
Component: | bcfg2-server | Version: | 1.0 |
Keywords: | Cc: |
Description
The bcfg2.conf(5) man page says:
COMPONENT OPTIONS Specified in the [components] section. bcfg2 URL of the server. On the server this specifies which interface and port the server listens on. [...]
However, the server always listens on all available network interfaces, regardless of this setting.
Attachments
Change History
comment:1 Changed 12 years ago by solj
- Owner changed from desai to solj
- Status changed from new to accepted
comment:2 follow-up: ↓ 3 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawlP6DRBvIJ7NLpLWILbgzURvGbMtGEyd8U
Thanks! This solves the reported problem, but if the interface to listen on is not specified, the server now listens only on the loopback interface. I guess that's not desired.
comment:3 in reply to: ↑ 2 Changed 12 years ago by solj
Replying to https://www.google.com/accounts/o8/id?id=AItOawlP6DRBvIJ7NLpLWILbgzURvGbMtGEyd8U:
Thanks! This solves the reported problem, but if the interface to listen on is not specified, the server now listens only on the loopback interface. I guess that's not desired.
Yeah, this will need to be a workaround until we can add an option for this. We may have cases where we want the server to listen on all available interfaces also so we need to add an option for that case.
comment:4 Changed 12 years ago by https://www.google.com/accounts/o8/id?id=AItOawlP6DRBvIJ7NLpLWILbgzURvGbMtGEyd8U
IMO, such an option isn't really needed, as the current behavior of listening on all available interfaces by default is perfectly fine. My suggestion would be to change the patch to listen on all interfaces unless the user explicitly specified a URL via the bcfg2 option in the [components] section (or via the -S flag on the command line).
comment:5 Changed 12 years ago by solj
- Status changed from accepted to closed
- Resolution set to fixed
Added this in 5a31e049ee342ec5874447796bc3978310306afb. The server can now listen either on a specific interface or all interfaces.
Can you try this and see if it fixes the problem for you?