On 10/17/22 13:14, Rodrigo Reimberg via Bacula-users wrote:
>
Telnet from DIR to FD on port 9102 not ok, I’m using ConnectToDirector 
parameter.

Hello Rodrigo,


Of course this will not work. The client is behind NAT, and the Director cannot 
connect to it on port 9102 (or any other port :).

As you know, with the 'ConnectToDirector' feature enabled, the FD calls into the Dir on port 9101 (default). There is no requirement to set any connection Schedule. The Client will remain connected until the `ReconnectionTime` is reached (default 40 mins), at which point the connection will be dropped and immediately re-established.

Per the documentation, this FD -> DIR connection *should be* used for all 
communications between the Director and this client:
----8<----
ConnectToDirector = <yes∣no> When the ConnectToDirector directive is set to true, the Client will contact the Director according to the rules. The connection initiated by the Client will be then used by the Director to start jobs or issue bconsole commands.
----8<----


I just ran some tests, and it looks like there is a bug.

Look:
----8<----
*s client=speedy-fd
Connecting to Client speedy-fd at speedy.revpol.com:9102     <----------

speedy-fd Version: 13.0.1 (05 August 2022)  x86_64-pc-linux-gnu archlinux
Daemon started 17-Oct-22 17:55. Jobs: run=0 running=0.
Heap: heap=294,912 smbytes=256,160 max_bytes=256,307 bufs=125 max_bufs=126
Sizes: boffset_t=8 size_t=8 debug=0 trace=0 mode=0,0 bwlimit=0kB/s
Crypto: fips=N/A crypto=OpenSSL 1.1.1q  5 Jul 2022

Running Jobs:
Director connected using TLS at: 17-Oct-22 17:57
No Jobs running.
====

Terminated Jobs:
====
----8<----

The Director is clearly connecting to the FD on port 9102/TCP for the status 
client command.


I see the same behavior for an estimate command:
----8<----
*est listing job=SpeedyVMs
Using Catalog "RevpolCatalog"
Connecting to Client speedy-fd at speedy.revpol.com:9102   <-----------
----8<----


Give me a bit of time to set up a better test environment, and run some tests with packet captures. If this is doing what I think it is, I will open a bug report.


Best regards,
Bill

--
Bill Arlofski
w...@protonmail.com

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to