From: Mantis B. T. <no...@bu...> - 2011-04-07 09:12:34
|
A NOTE has been added to this issue. ====================================================================== http://bugs.bacula.org/view.php?id=1719 ====================================================================== Reported By: gavinmc Assigned To: ====================================================================== Project: bacula Issue ID: 1719 Category: File Daemon Reproducibility: have not tried Severity: minor Priority: normal Status: new ====================================================================== Date Submitted: 2011-04-06 08:21 GMT Last Modified: 2011-04-07 05:52 GMT ====================================================================== Summary: problem configuring IPv6 address with bacula-fd (and -sd, -dir) Description: As discussed here: http://www.mail-archive.com/bac...@li.../msg46962.html It doesn't seem possible to configure bacula-fd to listen on all IPv4 and IPv6 addresses. * If you don't specify an address, the daemon listens to tcp/9102 on 0.0.0.0 (all IPv4) * If you specify an ipv4 of "0.0.0.0" and ipv6 of "::", bacula-fd listens on the former, but not the latter and seems to crash after a time. * You can apparently specify an ipv6 address, but then you must also specify an ipv4 address which isn't always ideal. This issue seems to also affect the -sd and -dir. Steps to Reproduce: Put computer on an IPv6 network. Check you get an IPv6 address and restart bacula-fd. Check netstat to see does it listen on port 9102 on the IPv6 address. Additional Information: In spare moments I have been having a look at the source code but have not yet managed to work much out that is significant. I will try and keep at this but if anyone has suggestions I'm happy to try them. I appreciate not everyone is in a position to test Ipv6 yet. With no IPs configured explicitly, init_default_addresses() seems to call add_addresses() twice, once with 0.0.0.0 and once with null. ====================================================================== ---------------------------------------------------------------------- (0005824) brunofr (reporter) - 2011-04-07 05:52 http://bugs.bacula.org/view.php?id=1719#c5824 ---------------------------------------------------------------------- Tested on 5.0.3 if ipv6 address is set to ::1 it works (not usefull but works) c-3po-fd: filed.c:275-0 filed: listening on port 9102 c-3po-fd: filed.c:275-0 filed: listening on port 9102 c-3po-fd: bnet_server.c:96-0 Addresses host[ipv4:0.0.0.0:9102] host[ipv6:::1:9102] any try with a compressed format like :: result in error but if ipv6 address is set not compressed like here FileDaemon { # this is me Name = c-3po-fd # FDport = 9102 # where we listen for the director FDAddresses = { ipv4 = { addr = 0.0.0.0; port = 9102 } ipv6 = { addr = 0000:0000:0000:0000:0000:0000:0000:0000; port = 9102 } } WorkingDirectory = /var/lib/bacula Pid Directory = /var/run Maximum Concurrent Jobs = 20 } the daemon start and seems to listen correctly bacula-fd -f -dt -d500 -c /etc/bacula/bacula-fd.conf -u root -g bacula 07-Apr-2011 11:09:01 bacula-fd: lex.c:186-0 Open config file: /etc/bacula/bacula-fd.conf 07-Apr-2011 11:09:01 bacula-fd: filed_conf.c:452-0 Inserting director res: yoda-mon 07-Apr-2011 11:09:01 bacula-fd: lex.c:186-0 Open config file: /etc/bacula/bacula-fd.conf 07-Apr-2011 11:09:01 c-3po-fd: message.c:303-0 Copy message resource 66bb38 to 6925e8 07-Apr-2011 11:09:01 c-3po-fd: jcr.c:138-0 read_last_jobs seek to 192 07-Apr-2011 11:09:01 c-3po-fd: jcr.c:145-0 Read num_items=0 07-Apr-2011 11:09:01 c-3po-fd: fd_plugins.c:568-0 plugin dir is NULL 07-Apr-2011 11:09:01 c-3po-fd: pythonlib.c:104-0 No script dir. prog=FDStartUp 07-Apr-2011 11:09:01 c-3po-fd: filed.c:275-0 filed: listening on port 9102 07-Apr-2011 11:09:01 c-3po-fd: filed.c:275-0 filed: listening on port 9102 07-Apr-2011 11:09:01 c-3po-fd: bnet_server.c:96-0 Addresses host[ipv4:0.0.0.0:9102] host[ipv6::::9102] (I must wait tonight to see, if it really works with the ipv6 director) Issue History Date Modified Username Field Change ====================================================================== 2011-04-06 08:21 gavinmc New Issue 2011-04-07 05:52 brunofr Note Added: 0005824 ====================================================================== |