[GH-ISSUE #3142] RPC connection #1973

Closed
opened 2026-05-05 08:38:18 -06:00 by gitea-mirror · 2 comments
Owner

Originally created by @mustaqimM on GitHub (Jan 13, 2020).
Original GitHub issue: https://github.com/netblue30/firejail/issues/3142

Hi, I have aria2 run as firejail aria2c --rpc-secret=${RPC_SECRET} but I can't connect to it. From my browser it's supposed to connect via RPC with a web socket: wss://localhost:6800. The config file is

#daemon=true

continue
save-session=/home/mustaqim/.config/aria2/session.txt
input-file=/home/mustaqim/.config/aria2/session.txt
#save-session-interval=10
remote-time=true
auto-file-renaming=true

dir=${HOME}/Library/Downloads
file-allocation=falloc
#stream-piece-selector=geom

console-log-level=warn
log-level=notice
log=/home/mustaqim/.config/aria2/aria2.log

disable-ipv6=true

max-connection-per-server=5
split=10
#min-split-size=5M
max-concurrent-downloads=2
#lowest-speed-limit=10K
retry-wait=30

ca-certificate=/etc/ssl/certs/ca-certificates.crt
enable-rpc=true
rpc-listen-all=true
rpc-listen-port=6800
rpc-secret=${RPC_SECRET}
rpc-certificate=/home/mustaqim/.config/aria2/aria2.pfx
#rpc-private-key=/home/mustaqim/.config/aria2/eckey.pem
rpc-secure=true
rpc-allow-origin-all=true

bt-force-encryption=true
bt-min-crypto-level=arc4
bt-require-crypto=true
#enable-dht=false
enable-dht6=false
enable-peer-exchange=false
#bt-prioritize-piece=head
seed-ratio=0.01
seed-time=1
user-agent=Transmission/2.94
bt-tracker=http://t.nyaatracker.com:80/announce,udp://open.nyap2p.com:6969/announce
Originally created by @mustaqimM on GitHub (Jan 13, 2020). Original GitHub issue: https://github.com/netblue30/firejail/issues/3142 Hi, I have aria2 run as `firejail aria2c --rpc-secret=${RPC_SECRET}` but I can't connect to it. From my browser it's supposed to connect via RPC with a web socket: `wss://localhost:6800`. The config file is ``` #daemon=true continue save-session=/home/mustaqim/.config/aria2/session.txt input-file=/home/mustaqim/.config/aria2/session.txt #save-session-interval=10 remote-time=true auto-file-renaming=true dir=${HOME}/Library/Downloads file-allocation=falloc #stream-piece-selector=geom console-log-level=warn log-level=notice log=/home/mustaqim/.config/aria2/aria2.log disable-ipv6=true max-connection-per-server=5 split=10 #min-split-size=5M max-concurrent-downloads=2 #lowest-speed-limit=10K retry-wait=30 ca-certificate=/etc/ssl/certs/ca-certificates.crt enable-rpc=true rpc-listen-all=true rpc-listen-port=6800 rpc-secret=${RPC_SECRET} rpc-certificate=/home/mustaqim/.config/aria2/aria2.pfx #rpc-private-key=/home/mustaqim/.config/aria2/eckey.pem rpc-secure=true rpc-allow-origin-all=true bt-force-encryption=true bt-min-crypto-level=arc4 bt-require-crypto=true #enable-dht=false enable-dht6=false enable-peer-exchange=false #bt-prioritize-piece=head seed-ratio=0.01 seed-time=1 user-agent=Transmission/2.94 bt-tracker=http://t.nyaatracker.com:80/announce,udp://open.nyap2p.com:6969/announce ```
Author
Owner

@mustaqimM commented on GitHub (Jan 13, 2020):

Okay nevermind that, I added:

noblacklist ${HOME}/.config/aria2
whitelist ${HOME}/.config/aria2

And restarted the daemon and now it's connecting

<!-- gh-comment-id:573509364 --> @mustaqimM commented on GitHub (Jan 13, 2020): Okay nevermind that, I added: ``` noblacklist ${HOME}/.config/aria2 whitelist ${HOME}/.config/aria2 ``` And restarted the daemon and now it's connecting
Author
Owner

@ghost commented on GitHub (Jan 13, 2020):

@mustaqimM Support for ${HOME}/.config/aria2 is now integrated in the aria2c profile. Your issue reminded me we only supported the legacy path ${HOME}/.aria2 up until now. Thanks!

<!-- gh-comment-id:573536931 --> @ghost commented on GitHub (Jan 13, 2020): @mustaqimM Support for ${HOME}/.config/aria2 is now integrated in the aria2c profile. Your issue reminded me we only supported the legacy path ${HOME}/.aria2 up until now. Thanks!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/firejail#1973
No description provided.