Custom backup application server

sigipa

Cadet
Joined
Mar 30, 2021
Messages
8
Hi,

I have written a custom backup daemon that uses TCP and UDP to replicate files. I would like to use this on TrueNAS Core as a replacement for the replications task. I have uploaded this to a TrueNAS server, but I'm not able to access it over TCP. I haven't seen anything about there being a firewall on TrueNAS, but the connection is refused. Is there any reason why this shouldn't be working?

Thanks,
-S


TrueNAS-12.0-U6.1
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
The right way to run non-included software on TrueNAS CORE is in a jail.

Have you installed that in a jail?
 

sigipa

Cadet
Joined
Mar 30, 2021
Messages
8
Hi,

I created a jail, mount point, and assigned an ip with vnet. The jail IP is reachable via ping. However, I'm still getting a connection refused connecting to my tcp server. The tcp server never sees the connection attempt. The server works fine on vanilla FreeBSD. Is there something else that I need to do?

Thanks,
-S
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
is the jail really listening on the port you expect?

sockstat -4 -l

Are you using a high port?
 

sigipa

Cadet
Joined
Mar 30, 2021
Messages
8
Hi,

I was using port 9009. When I changed to a port below 1024, it started working.

Thanks for the tip!
-S
 

sretalla

Powered by Neutrality
Moderator
Joined
Jan 1, 2016
Messages
9,703
was using port 9009. When I changed to a port below 1024, it started working.
That's strange... I was expecting the exact opposite to be the case... glad it's working though.
 
Top