You are here: Installation and Configuration > Additional Configuration > Opening Necessary Ports

2.22 Opening Ports in a Firewall

If your site is running firewall software on its hosts, you will need to configure the firewall to allow connections to the products in your installation.

This topic provides an example and general instructions for how to open ports in your firewall. The actual port numbers for the various products will be provided in the installation instructions for that product.

In this topic:

2.22.1 Red Hat 6-Based Systems

Red Hat 6-based systems use iptables as the default firewall software. For the ip6tables service, replace all occurrences of iptables with ip6tables in the example. If you use different firewall software, refer to your firewall documentation for opening ports in your firewall.

The following is an example of adding port 1234 when using iptables.

[root]# iptables-save > /tmp/iptables.mod

[root]# vi /tmp/iptables.mod
				
# Add the following lines immediately *before* the line matching
# "-A INPUT -j REJECT --reject-with icmp-host-prohibited"

-A INPUT -p tcp --dport 1234 -j ACCEPT
				
[root]# iptables-restore < /tmp/iptables.mod				
[root]# service iptables save

2.22.2 Red Hat 7-Based Systems

Red Hat 7-based systems use firewalld as the default firewall software. If you use different firewall software, refer to your firewall documentation for opening ports in your firewall.

The following is an example of adding port 1234 when using firewalld.

[root]# firewall-cmd --add-port=1234/tcp --permanent
[root]# firewall-cmd --reload

2.22.3 SUSE 11-Based Systems

SUSE 11-based systems use SuSEfirewall2 as the default firewall software. If you use different firewall software, refer to your firewall documentation for opening ports in your firewall.

The following is an example of adding port 1234 when using SuSEfirewall2.

[root]# vi /etc/sysconfig/SuSEfirewall2
				
FW_SERVICES_EXT_TCP="7112"
			
[root]# service SuSEfirewall2_setup restart

2.22.4 SUSE 12-Based Systems

SUSE 12-based systems use SuSEfirewall2 as the default firewall software. If you use different firewall software, refer to your firewall documentation for opening ports in your firewall.

The following is an example of adding port 1234 when using SuSEfirewall2.

[root]# vi /etc/sysconfig/SuSEfirewall2
				
FW_SERVICES_EXT_TCP="1234"
			
[root]# service SuSEfirewall2 restart

© 2017 Adaptive Computing