Questo contenuto non è disponibile nella lingua selezionata.
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:
- Verify thatiptablesis running and will start on boot.service iptables restart chkconfig iptables on # service iptables restart # chkconfig iptables onCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Verify that the port proxy starts on boot:chkconfig openshift-iptables-port-proxy on # chkconfig openshift-iptables-port-proxy onCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Modify theiptablesrules: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 # 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/iptablesCopy to Clipboard Copied! Toggle word wrap Toggle overflow Warning After you run these commands, do not run any furtherlokkitcommands on the node host. Runninglokkitcommands after this point overwrites the requirediptablesrules and causes theopenshift-iptables-port-proxyservice to fail during startup.Restart theiptablesservice for the changes to take effect:service iptables restart # service iptables restartCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Start the service immediately:service openshift-iptables-port-proxy start # service openshift-iptables-port-proxy startCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
- Run the following command so that theopenshift-gearsservice script starts on boot. Theopenshift-gearsservice script starts gears when a node host is rebooted:chkconfig openshift-gears on # chkconfig openshift-gears onCopy to Clipboard Copied! Toggle word wrap Toggle overflow 
Note
			If you use the kickstart or bash script, the 
configure_port_proxy function performs these steps.