Jump to content

Tunelamento


msaulohenrique

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
Link to comment
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
Link to comment
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.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
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.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

Do you agree with our terms?