02.01.2016 Views

Linux

linux_admin_text-1.0.0_2

linux_admin_text-1.0.0_2

SHOW MORE
SHOW LESS

Create successful ePaper yourself

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

2.5 DHCP <br />

<br />

5. <br />

system-config-firewall-tui /etc/sysconfig/iptables <br />

iptables <br />

WWW(HTTP) 80 <br />

<br />

# cat /etc/sysconfig/iptables<br />

# Firewall configuration written by system-config-firewall<br />

# Manual customization of this file is not recommended.<br />

∗filter<br />

:INPUT ACCEPT [0:0]<br />

:FORWARD ACCEPT [0:0]<br />

:OUTPUT ACCEPT [0:0]<br />

-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT<br />

-A INPUT -p icmp -j ACCEPT<br />

-A INPUT -i lo -j ACCEPT<br />

-A INPUT -m state --state NEW -m tcp -p tcp --dport 22 -j ACCEPT<br />

-A INPUT -m state --state NEW -m tcp -p tcp --dport 80 -j ACCEPT<br />

-A INPUT -j REJECT --reject-with icmp-host-prohibited<br />

-A FORWARD -j REJECT --reject-with icmp-host-prohibited<br />

COMMIT<br />

2.5 DHCP <br />

DHCP IP DHCP DHCP <br />

IP <br />

2.5.1 DHCP 1 <br />

DHCP 1 DHCP <br />

DHCP <br />

IP <br />

DHCP <br />

www.lpi.or.jp 62 (C) LPI-Japan

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

Saved successfully!

Ooh no, something went wrong!