Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Ok dans ce cas c'est normal Sur ton routeur, il faut que tu mettes 8920 en port externe (ça c'est bon) et le port 21163 en port interne
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Euh, j'ai pas tout compris Je ne vois pas où régler le port local dans Emby (comme sur ta capture d'écran). Dans la partie paramètre/réseaux de Emby j'ai la possibilité de régler uniquement les "ports public".
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Ah ok, peut etre une spécificité de Emby sur NAS, moi je l'ai bien dans l'onglet réseau, tout en haut : En fait, il faut savoir quel est le port sur lequel écoute Emby, par défaut c'est 8920, mais on peut le changer (enfin moi en tout cas je peux ^^). Sur ton routeur, il faut que le port "interne" corresponde au port qu'utilise Emby. Essaye sur ton réseau local déjà, avec son IP local, exemple : https://192.168.1.125:8920 (remplace par l'IP local de ton NAS ) Si ça ne répond pas, essaye : https://192.168.1.125:21163 Si ça répond sur ce port, c'est que c'est celui là que tu dois indiquer en port "interne" sur ton routeur
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Ha oui en effet, je n'ai pas la possibilité de modifier les ports locaux : En testant https://192.168.1.31:8920, j'obtiens la même erreur que quand je tente de me connecter via internet : ERR_CONNECTION_REFUSED Et en testant https://192.168.1.31:21163, j'obtiens une erreur SSL : ERR_SSL_PROTOCOL_ERROR (ce qui me parais logique puisque je tente de me connecter en HTTPS sur le port HTTP)
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Ok, donc le probleme vient de ta redirection de port sur ton routeur. Il faut que tu laisse 8920 en port "externe", mais que tu mettes 21163 en port "interne"
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 J'ai testé en modifiant les ports du routeur comme tu l'indique mais j'obtiens l'erreur : ERR_SSL_PROTOCOL_ERROR (la même erreur que quand je tente https://192.168.1.31:21163 en local)
Luke 42077 Posted May 26, 2021 Posted May 26, 2021 1 minute ago, fabb said: I tested by modifying the ports of the router as you indicate but I get the error : ERR_SSL_PROTOCOL_ERROR (the same error as when I try https://192.168.1.31:21163 locally) Well we already know that https://192.168.1.31:21163 isn't going to work because it's invalid, so there's not much point in going over it. What exactly did you setup in the port forwarding?
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 (edited) Hum, je pense que le port 21163 est ton port HTTP et non HTTPS... @Luke, his port forwarding is here : @fabb tu as moyens d'ouvrir un shell sur ton NAS ? Genre une connexion SSH ? Il faudrait regarder sur quel port écoute vraiment emby avec un netstat : netstat -pat | grep LISTEN Edited May 26, 2021 by Mickelebof
Luke 42077 Posted May 26, 2021 Posted May 26, 2021 Looks like it should work. If you just setup the ssl certificate in emby server then make sure to restart the server after doing that. 1
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Avec cette redirection de port, j'obtient une erreur : ERR_CONNECTION_REFUSED : SAUF SI J'ACTIVE LE REVERSE PROXY DU NAS DE CETTE MANIERE : j'accède correctement à emby : Mais le problème c'est que si le reverse proxy est activé la TV SONY n'arrive pas à se connecter. (Tous les autres équipement Shield, navigateur internet, emby android mobile, mi box, freebox,.... arrive à se connecter. Mais pas les TV SONY) Avec cette redirection de port, j'obtiens une erreur : ERR_SSL_PROTOCOL_ERROR :
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Tu as bien redémarré le serveur emby après avoir mis le certificat ? En fait ce que tu fais avec ton reverseproxy c'est rediriger le HTTPS de l'exterieur vers le HTTP en local. Peut être que ça pose problème pour les TV Sony (là j'en sais rien) Il faut vraiment que tu trouves le port HTTPS du serveur emby en local Par défaut, Emby n'écoute pas en HTTPS, il faut lui mettre un certificat (ce que tu as fait vu le screen que j'ai vu tout à l'heure), il faut ensuite redémarrer Emby pour qu'il ouvre son port HTTPS
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Oui le port 21163 est bien le port HTTP J'ai testé la commande via SSH et j'obtiens ceci : Spoiler tcp 0 0 0.0.0.0:sunrpc 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:http 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:54321 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:10005 0.0.0.0:* LISTEN - tcp 0 0 10.8.0.1:domain 0.0.0.0:* LISTEN - tcp 0 0 172.17.0.1:domain 0.0.0.0:* LISTEN - tcp 0 0 192.168.1.31:domain 0.0.0.0:* LISTEN - tcp 0 0 192.168.1.33:domain 0.0.0.0:* LISTEN - tcp 0 0 localhost:domain 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:ssh 0.0.0.0:* LISTEN - tcp 0 0 localhost:postgresql 0.0.0.0:* LISTEN - tcp 0 0 localhost:18617 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:afs3-callback 0.0.0.0:* LISTEN - tcp 0 0 localhost:953 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:https 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:892 0.0.0.0:* LISTEN - tcp 0 0 localhost:4700 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:microsoft-ds 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:3262 0.0.0.0:* LISTEN - tcp 0 0 localhost:exec 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:35008 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:8001 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:nfs 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:6690 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:34755 0.0.0.0:* LISTEN - tcp 0 0 localhost:nut 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:9351 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:21159 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:21000 0.0.0.0:* LISTEN - tcp 0 0 192.168.1.33:49160 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:21160 0.0.0.0:* LISTEN - tcp 0 0 localhost:1195 0.0.0.0:* LISTEN - tcp 0 0 0.0.0.0:netbios-ssn 0.0.0.0:* LISTEN - tcp6 0 0 [::]:32782 [::]:* LISTEN - tcp6 0 0 [::]:32783 [::]:* LISTEN - tcp6 0 0 [::]:sunrpc [::]:* LISTEN - tcp6 0 0 [::]:http [::]:* LISTEN - tcp6 0 0 [::]:54321 [::]:* LISTEN - tcp6 0 0 [::]:10005 [::]:* LISTEN - tcp6 0 0 [::]:domain [::]:* LISTEN - tcp6 0 0 [::]:ssh [::]:* LISTEN - tcp6 0 0 [::]:afs3-callback [::]:* LISTEN - tcp6 0 0 [::]:https [::]:* LISTEN - tcp6 0 0 [::]:892 [::]:* LISTEN - tcp6 0 0 [::]:microsoft-ds [::]:* LISTEN - tcp6 0 0 [::]:3261 [::]:* LISTEN - tcp6 0 0 [::]:3263 [::]:* LISTEN - tcp6 0 0 [::]:3264 [::]:* LISTEN - tcp6 0 0 [::]:3265 [::]:* LISTEN - tcp6 0 0 [::]:8001 [::]:* LISTEN - tcp6 0 0 [::]:nfs [::]:* LISTEN - tcp6 0 0 [::]:6690 [::]:* LISTEN - tcp6 0 0 [::]:59171 [::]:* LISTEN - tcp6 0 0 [::]:afpovertcp [::]:* LISTEN - tcp6 0 0 [::]:9351 [::]:* LISTEN - tcp6 0 0 [::]:21159 [::]:* LISTEN - tcp6 0 0 [::]:21000 [::]:* LISTEN - tcp6 0 0 [::]:21160 [::]:* LISTEN - tcp6 0 0 [::]:image-backup [::]:* LISTEN - tcp6 0 0 [::]:openvpn [::]:* LISTEN - tcp6 0 0 [::]:44682 [::]:* LISTEN - tcp6 0 0 [::]:21163 [::]:* LISTEN - tcp6 0 0 [::]:netbios-ssn [::]:* LISTEN - tcp6 0 0 [::]:5005 [::]:* LISTEN
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Je confirme que j'ai bien essayé de redémarrer le serveur après avoir créé le certificat.
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 2 minutes ago, Luke said: Please attach the emby server log. thanks. Je vous les ai envoyé via MP. Merci !
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Bon bah au moins on en est sur, le port 8920 n'est pas ouvert, donc ça peut pas marcher. Dommage qu'il n'affiche pas le process correspondant, comme sur linux, chez moi : Quote tcp6 0 0 :::8096 :::* LISTEN 523372/EmbyServer tcp6 0 0 :::8920 :::* LISTEN 523372/EmbyServer J'espere que Luke verra ça dans les logs, en tout cas dans mes logs ça n'affiche pas le port d'écoute. Je vois le port 892 ouvert, c'est peut être une coïncidence mais ça ne serait pas celui là par hasard ? ^^ https://192.168.1.31:892
Luke 42077 Posted May 26, 2021 Posted May 26, 2021 It doesn't look like you configured the certificate. Please configure the certificate on the network screen, click save, and then restart the server.
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Il veut dire ici : Est-ce que c'est le bon certificat ? Il voudrait que tu le remette, que tu cliques sur "Enregistrer" et que tu redémarre Emby
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Le certificat je le génère avec let's encrypt directement via l'interface du Synology. En réalité, je ne sais même pas où il est "rangé" et comment y accéder.
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Ahhhh, bein du coup ça explique tout Si le certificat n'est pas correct, Emby n'ouvre pas son port HTTPS Ca doit sûrement être trouvable, je vais regarder de mon coté ; il y a peut être aussi déjà la réponse sur le forum quelque part
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 Je suis en train de chercher sur google où trouver le certificat sur le NAS, je trouve pas grand chose
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 A priori ça serait là : Quote /usr/syno/etc/certificate/_archive/<folder> folder est certainement ton nom de domaine. Tu peux allez voir en SSH ?
fabb 0 Posted May 26, 2021 Author Posted May 26, 2021 en ssh je ne peux pas accéder au dossier _archive, j'ai un "permission denied"
Mickelebof 16 Posted May 26, 2021 Posted May 26, 2021 Alors ici, ya DJX qui dit comment faire : A priori, il récupère le certificat via DSM directement. Après il faut le convertir en .pfx pour le mettre ensuite sur Emby
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now