IPTABLES - Encaminhando 80 a 8080 para o apache do vagrant

0

Eu estava tentando encaminhar meu acesso 80 para 8080 com IPTABLES sem sucesso, então eu li isso resposta

E finalmente funcionou para mim, depois de todas as configurações do IPTABLES que eu tentei, este comando fez ..

sudo ssh -gL 80:127.0.0.1:8080 localhost

o que esse comando realmente faz?

    
por rcBytes 30.01.2015 / 12:40

1 resposta

1

no comando sudo ssh -gL 80:127.0.0.1:8080 localhost

option -g - Allows remote hosts to connect to local forwarded ports
option -L - [bind_address:]port:host:hostport
             Specifies that the given port on the local (client) host is to be
             forwarded to the given host and port on the remote side.  This
             works by allocating a socket to listen to port on the local side,
             optionally bound to the specified bind_address.  Whenever a
             connection is made to this port, the connection is forwarded over
             the secure channel, and a connection is made to host port
             hostport from the remote machine.  Port forwardings can also be
             specified in the configuration file.  

tráfego da porta 80 redirecionado para a porta 8080 no localhost

    
por 2707974 30.01.2015 / 12:57