Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Transmission Daemon JSON/RPC and Nginx Reverse Proxy
« previous
next »
Print
Pages: [
1
]
Author
Topic: Transmission Daemon JSON/RPC and Nginx Reverse Proxy (Read 3645 times)
SkeelKat
Newbie
Posts: 30
Karma: 0
Transmission Daemon JSON/RPC and Nginx Reverse Proxy
«
on:
December 06, 2019, 01:12:40 pm »
Hi Everyone.
I installed the Nginx reverse proxy on my Opnsense and basically have everything sorted. All sites redirect to upstream servers correctly using Let's Encrypt SSL certificates etc.
However I run Transmission torrent server on the one upstream server. The web access works 100% but the RPC/JSON commands used by 3rd party clients to control Transmission refuse to pass the Nginx Proxy...
Any idea on where to start looking for the issue?
Logged
fabian
Hero Member
Posts: 2769
Karma: 200
OPNsense Contributor (Language, VPN, Proxy, etc.)
Re: Transmission Daemon JSON/RPC and Nginx Reverse Proxy
«
Reply #1 on:
December 06, 2019, 05:44:07 pm »
without an error you cannot get help.
Logged
SkeelKat
Newbie
Posts: 30
Karma: 0
Re: Transmission Daemon JSON/RPC and Nginx Reverse Proxy
«
Reply #2 on:
December 10, 2019, 06:00:29 pm »
That's just it.. I see no errors on the nginx logs, or on the client side that can explain the reason for the failure
Logged
SkeelKat
Newbie
Posts: 30
Karma: 0
Re: Transmission Daemon JSON/RPC and Nginx Reverse Proxy
«
Reply #3 on:
December 11, 2019, 07:59:22 am »
@fabian,
After a bit more struggle I seem to get this when attempting to access the RPC server directly via a web browser
409: Conflict
Your request had an invalid session-id header.
To fix this, follow these steps:
When reading a response, get its X-Transmission-Session-Id header and remember it
Add the updated header to your outgoing requests
When you get this 409 error message, resend your request with the updated header
This requirement has been added to help prevent CSRF attacks.
X-Transmission-Session-Id: wIyvmF9ZPChYpouYh55pOqh68OvKivZQh7lgI9ldfnF1JxCI
So I basically have to add
proxy_pass_header X-Transmission-Session-Id;
in the location... but how?
«
Last Edit: December 11, 2019, 08:07:32 am by SkeelKat
»
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Transmission Daemon JSON/RPC and Nginx Reverse Proxy