Este conteúdo não está disponível no idioma selecionado.

9.10.7. Configuring the Port Proxy


All OpenShift Enterprise applications are contained within gears. These applications listen for connections on the loopback interface. The node host uses iptables to listen on external-facing ports and forwards incoming requests to the appropriate application.

Procedure 9.9. To Configure the OpenShift Port Proxy:

  1. Verify that iptables is running and will start on boot.
    # service iptables restart
    # chkconfig iptables on
    Copy to Clipboard Toggle word wrap
  2. Verify that the port proxy starts on boot:
    # chkconfig openshift-iptables-port-proxy on
    Copy to Clipboard Toggle word wrap
  3. Modify the iptables rules:
    # sed -i '/:OUTPUT ACCEPT \[.*\]/a :rhc-app-comm - [0:0]' /etc/sysconfig/iptables
    # sed -i '/-A INPUT -i lo -j ACCEPT/a -A INPUT -j rhc-app-comm' /etc/sysconfig/iptables
    
    Copy to Clipboard Toggle word wrap

    Warning

    After you run these commands, do not run any further lokkit commands on the node host. Running lokkit commands after this point overwrites the required iptables rules and causes the openshift-iptables-port-proxy service to fail during startup.
    Restart the iptables service for the changes to take effect:
    # service iptables restart
    Copy to Clipboard Toggle word wrap
  4. Start the service immediately:
    # service openshift-iptables-port-proxy start
    Copy to Clipboard Toggle word wrap
  5. Run the following command so that the openshift-gears service script starts on boot. The openshift-gears service script starts gears when a node host is rebooted:
    # chkconfig openshift-gears on
    Copy to Clipboard Toggle word wrap

Note

If you use the kickstart or bash script, the configure_port_proxy function performs these steps.
Voltar ao topo
Red Hat logoGithubredditYoutubeTwitter

Aprender

Experimente, compre e venda

Comunidades

Sobre a documentação da Red Hat

Ajudamos os usuários da Red Hat a inovar e atingir seus objetivos com nossos produtos e serviços com conteúdo em que podem confiar. Explore nossas atualizações recentes.

Tornando o open source mais inclusivo

A Red Hat está comprometida em substituir a linguagem problemática em nosso código, documentação e propriedades da web. Para mais detalhes veja o Blog da Red Hat.

Sobre a Red Hat

Fornecemos soluções robustas que facilitam o trabalho das empresas em plataformas e ambientes, desde o data center principal até a borda da rede.

Theme

© 2025 Red Hat