[Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

13. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Erick Cerqueira
xFranchising

(usa CentOS)

Enviado em 24/07/2017 - 08:45h

No caso, não seria este comando?

sudo iptables -A OUTPUT -p tcp --dport 8080 -j ACCEPT 


No caso, de "FORA PARA DENTRO" ?


  


14. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Leandro Silva
LSSilva

(usa Outra)

Enviado em 24/07/2017 - 08:55h

xFranchising escreveu:

No caso, não seria este comando?

sudo iptables -A OUTPUT -p tcp --dport 8080 -j ACCEPT 


No caso, de "FORA PARA DENTRO" ?


xFranchising, no seu caso a política do firewall está como ACCEPT por padrão. Não haverá efeito nenhum em liberar requisições OUTPUT na porta 8080 (que é quando o servidor/alguma máquina interna utilizando este servidor de proxy acessa algo externo na porta 8080), no seu caso o servidor irá receber requisições na porta 8080, certo? Então se fosse o caso (não é, pela já citada política) a regra seria: "sudo iptables -A INPUT -p tcp --dport 8080 -j ACCEPT".

Teria como você verificar seu ip (no servidor) com o comando: "ifconfig"/"ip addr show"?
Ele está diferente do IP da sua máquina windows (ncpa.cpl -> clicar no adaptador de rede onde há internet -> verificar status / ou no cmd: ipconfig /all)?

Pra gente ter uma idéia melhor do seu cenário.


15. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Erick Cerqueira
xFranchising

(usa CentOS)

Enviado em 24/07/2017 - 09:00h

Faixa de rede é a mesma, e a máquina esta saindo pra internet normal.

Servidor: 192.168.1.4
Minha Estação: 192.168.1.2


É, quanto a regra OUTPUT imaginei, mas não custava tentar kkk


16. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Leandro Silva
LSSilva

(usa Outra)

Enviado em 24/07/2017 - 09:07h

xFranchising escreveu:

Faixa de rede é a mesma, e a máquina esta saindo pra internet normal.

Servidor: 192.168.1.4
Minha Estação: 192.168.1.2


É, quanto a regra OUTPUT imaginei, mas não custava tentar kkk


Tranquilo!

Já verificou isto:
https://technet.microsoft.com/en-us/library/gg610603(v=sc.12).aspx
?
Mais precisamente nesta parte:

"In the Network binding list, click the network type.
You can configure the following types:
External Allows virtual machines to communicate with each other and with externally located servers, and optionally with the host operating system. You might use this setting to allow virtual machines to access a perimeter network and not expose the host operating system. An External network is bound to a physical network adapter.
Internal Allows communication between virtual machines on the same host and between the virtual machines and the host. This setting is often used to build a test environment where virtual machines are connected to the host operating system, but not connected to external networks. An Internal network is not bound to a physical network adapter.
Private Allows communication between virtual machines on the same host but not with the host or with external networks. This setting is often used to isolate virtual machines from network traffic in the host operating system and in the external networks. A Private network does not have a virtual network adapter in the host operating system, and is not bound to a physical network adapter."

Tenta definir a interface como "external".


17. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Rodrigo Albuquerque Serafim
raserafim

(usa Slackware)

Enviado em 24/07/2017 - 11:23h

#iptables -F 
o comando "#iptables -F" não desbloqueia todo o Firewall. este comando apenas limpa as regras adicionadas, mas não altera a "política padrão".

para tornar o Firewall todo liberado é necessário limpar as regras e alterar todas as "políticas padrão" para ACCEPT:
#iptables -F
#iptables -P INPUT ACCEPT
#iptables -P OUTPUT ACCEPT
#iptables -P FORWARD ACCEPT



18. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Leandro Silva
LSSilva

(usa Outra)

Enviado em 24/07/2017 - 13:46h

raserafim escreveu:

#iptables -F 
o comando "#iptables -F" não desbloqueia todo o Firewall. este comando apenas limpa as regras adicionadas, mas não altera a "política padrão".

para tornar o Firewall todo liberado é necessário limpar as regras e alterar todas as "políticas padrão" para ACCEPT:
#iptables -F
#iptables -P INPUT ACCEPT
#iptables -P OUTPUT ACCEPT
#iptables -P FORWARD ACCEPT


Bem adicionado pelo colega acima. O que acontece é que o autor do tópico já havia postado as políticas em um print screen e estavam todas em ACCEPT.



19. Re: [Porta] Liberar Porta 8080 - Ubuntu Server 16.04 LTS

Paulo Dias
di4s

(usa XUbuntu)

Enviado em 25/07/2017 - 09:09h

Oi.

O que esse comando retorna na máquina onde o wiki foi instalado?

curl http://localhost:8080/xwiki 


Linux Professional Institute - LPIC-1
Novell Certified Linux Administrator - CLA
Oracle Certified Associate, Java SE Programmer - OCA

http://twitter.com/p4ulodi4s
http://www.prminformatica.com.br/



  
01 02



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts