27.12.2012 Views

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

The Virtualization Cookbook for SLES 10 SP2 - z/VM - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Figure 11-1 Apache test page<br />

If you get an error in starting Apache, look in the log file /var/log/httpd/error-log <strong>for</strong> clues.<br />

If Apache started successfully but you can’t reach the test page from a browser, try accessing<br />

it using the IP address rather than the DNS name.<br />

11.1.3 Turning on a firewall<br />

RHEL 6 comes with an IP tables firewall. In section 8.2.3, “Turning off unneeded services” on<br />

page 140, it was recommended that you turn off the iptables service. If you did this on the<br />

golden image, the firewall is turned off on this clone. This section describes how to quickly<br />

enable an IP tables firewall and configure it to allow Web traffic through. Per<strong>for</strong>m the following<br />

steps:<br />

► Verify that the firewall is off with the chkconfig --list command. <strong>The</strong> service name is<br />

iptables:<br />

# chkconfig --list iptables<br />

iptables 0:off 1:off 2:off 3:off 4:off 5:off 6:off<br />

► Turn on the firewall at boot time with the chkconfig command, and <strong>for</strong> this session with<br />

the service command:<br />

# chkconfig iptables on<br />

# service iptables start<br />

Applying iptables firewall rules: [ OK ]<br />

Loading additional iptables modules: ip_conntrack_netbios_ns [ OK ]<br />

► Go back to your browser and click refresh. You should get an error that the server is not<br />

responding (or Unable to connect). This is because packets <strong>for</strong> ports <strong>for</strong> http: and https:<br />

(80 and 443) are dropped by default.<br />

Chapter 11. Cloning open source virtual servers 171

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!