HP Systems Insight Manager 7.2 Technical Reference Guide

bastille/ipf.customrules file and use the HP-UX Bastille wizard. For more information,
see the bastille(1) manpage.
Configuring the firewall on a Linux system
Red Hat Enterprise Linux 4
The following list displays an example for iptables firewall rules for Red Hat Enterprise Linux 4 in
the /etc/sysconfig/iptables file:
# Firewall configuration written by redhat-config-securitylevel
# Manual customization of this file is not recommended.
*filter
:INPUT ACCEPT [0:0]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [0:0]
:RH-Firewall-1-INPUT - [0:0]
-A INPUT -j RH-Firewall-1-INPUT
-A FORWARD -j RH-Firewall-1-INPUT
-A RH-Firewall-1-INPUT -i lo -j ACCEPT
-A RH-Firewall-1-INPUT -p icmp --icmp-type any -j ACCEPT
-A RH-Firewall-1-INPUT -p 50 -j ACCEPT
-A RH-Firewall-1-INPUT -p 51 -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 80
-j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 21
-j ACCEPT
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 22
-j ACCEPT
-A RH-Firewall-1-INPUT -j REJECT --reject-with icmp-host-prohibited
COMMIT
SuSE Linux Enterprise Server
Procedure 304 Configuring a firewall on a SuSE Linux Enterprise Server
1. Using the YAST2 utility, select Security & UsersFirewall. The Firewall Configuration (Step 1
of 4): Basic Settings window appears.
2. Click Next. The Firewall Configuration (Step 2 of 4): Services window appears.
3. In the Additional Services field, enter 2301:2381 and click Next. The Firewall Configuration
(Step 3 of 4): Features window appears.
4. Click Next. The Firewall Configuration (Step 4 of 4): Logging Options window appears.
5. Click Next. A dialog box appears asking you to confirm your intention to save settings and
active firewall.
6. Click Continue. The firewall is configured and your settings are saved.
446 Reference