Howto Change ]project-open[ Default Port Print E-mail
Written by myOltrans    Sunday, 05 December 2010 20:12   

This may be useful if you need several ]po[ installations running from one IP address.

This howto is writen for the vmware installer of ]po[. The operation system is CentOS.

1. Change the port number (httpport) in the ]po[ config file:


2. Restart the aol server. Just kill all running instances and the inittab will start the server automatically - see /etc/inittab:

killall -9 nsd

3. Open the new port. CeontOS uses iptables. If you have access to the graphical interphace on your server you can use

System > Administration > Security Level and Firewall

to open the ports, followed by

System > Administration > Server Settings > Services

to restart the firewall

If you have only terminal access, follow these steps:

First verify iptables is running with iptables -L and that its last entry is to vlock icmp.

3.1. iptables -D RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
### Deletes the icmp rule

3.2. iptables -A RH-Firewall-1-INPUT -m state --state NEW -p tcp --dport 8002 -j ACCEPT
### Opens TCP port 8002 for inbound connections.

3.3. iptables -A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
### Readds the icmp rule as last rule.

3.4. iptables-save >/etc/sysconfig/iptables
### Saves to file read on iptables start.

3.5. Restart iptables service

service iptables restart


Resources and credits:

blog comments powered by Disqus

© Copyright 2008-2015 Oltrans. Translation Agency Recourse Portal.
All rights reserved. Various trademarks held by their respective owners.

Oltrans, 152, 6-ti septemvri Bul., Plovdiv 4000 Bulgaria
General Inquiries: (Bulgaria) +359 32 511 272 | skype: My status