Jump to content
Sign in to follow this  
msaulohenrique

Tunelamento

Recommended Posts

Boa noite galera, estou usando tunelamento numa aplicação para forçar ssl. No entanto quero add outras portas com o mesmo domínio mudando somente as portas. Tentei algumas coisas e não deu certo.

/etc/stunnel/stunnel.conf

[App1]
accept=8002
connect=localhost:8000
	cert= /etc/letsencrypt/live/dominio.tdl/fullchain.pem
key = /etc/letsencrypt/live/dominio.tdl/privkey.pem
client=yes
	
[App2]
accept=5002
connect=localhost:5008
cert = /etc/letsencrypt/live/dominio.tdl/fullchain.pem
key = /etc/letsencrypt/live/dominio.tdl/privkey.pemc
	client=yes
Edited by msaulohenrique

Share this post


Link to post
Share on other sites
5 horas atrás, edinaldo disse:

É necessário adicionar apenas uma vez o certificado, e no connect, não precisa do localhost: apenas o número da porta.

Fiz, porém não funcionou.

Funcionou da seguinte forma:

[App1]
accept=8002
connect=8000
cert= /etc/letsencrypt/live/dominio.tdl/fullchain.pem
key = /etc/letsencrypt/live/dominio.tdl/privkey.pem
client=no
	
[App2]
accept=5002
connect=5008
cert= /etc/letsencrypt/live/dominio.tdl/fullchain.pem
key = /etc/letsencrypt/live/dominio.tdl/privkey.pem
client=no

Foi só alterar o client de yes para no.

Edited by msaulohenrique

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.





×
×
  • Create New...