[SOLVED] Installed Duplicati on PBS, can't reach it from outside the PBS.

scrafi

New Member
Jun 26, 2021
4
1
1
26
Hello,

I use PBS at home and would like to use Duplicati to upload the backups to Backblaze, but when I install duplicati on PBS it installs just fine and running a "wget 127.0.0.1:8200" shows me that the web service is accessible, but I can't reach it from outside PBS via pbs.local:8200 or using the IP.

Are there firewall rules I have to set to be able to access the web interface of duplicati?

I know this is most likely not officially supported and not considered, but any help would be appreciated!

Thanks!

Best regads,
Scrafi
 
Are you using Duplicati for public interface or only local? can you check for that by doing ss -t -a | grep LISTEN
 
Thanks for your help!

This is the output I get when I run the command:

Code:
LISTEN    0      128                  127.0.0.1:41383                   0.0.0.0:*                                                                              
LISTEN    0      50                   127.0.0.1:8200                    0.0.0.0:*                                                                              
LISTEN    0      128                    0.0.0.0:sunrpc                  0.0.0.0:*                                                                              
LISTEN    0      1024                 127.0.0.1:82                      0.0.0.0:*                                                                              
LISTEN    0      500                    0.0.0.0:8084                    0.0.0.0:*                                                                              
LISTEN    0      128                    0.0.0.0:ssh                     0.0.0.0:*                                                                              
LISTEN    0      100                  127.0.0.1:smtp                    0.0.0.0:*                                                                              
LISTEN    0      1024                         *:8007                          *:*                                                                              
LISTEN    0      128                       [::]:sunrpc                     [::]:*                                                                              
LISTEN    0      128                       [::]:ssh                        [::]:*                                                                              
LISTEN    0      100                      [::1]:smtp                       [::]:*                                                                              
LISTEN    0      128                          *:6556                          *:*

It seems like 127.0.0.1:8200 should be *:8200 when I want to be able to access it outside of the pbs itself, I tried "opening" the port using iptables but I had no luck.
 
Ah perfect, thank you!

I see now, normally you run duplicati like a program on a machine and only access it locally not like a server, so it doesn't have anything to-do with PBS itself.

For future reference, this is the command to start the service listening on a different ip/interface:

Code:
duplicati-server --webservice-port=8200 --webservice-interface=192.168.0.124

to make it permanent, you would have to edit the systemd service:

Code:
nano /lib/systemd/system/duplicati.service

[Unit]
Description=Duplicati web-server
After=network.target


[Service]
Nice=19
IOSchedulingClass=idle
EnvironmentFile=-/etc/default/duplicati
ExecStart=/usr/bin/duplicati-server --webservice-port=8200 --webservice-interface=192.168.0.124 $DAEMON_OPTS
Restart=always


[Install]
WantedBy=multi-user.target

systemctl daemon-reload
 
  • Like
Reactions: R0yk3
Great! thank you for sharing your way that will help other people that have the same issue :)

I'll go ahead and make this thread as SOLVED

have a nice day :)
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!