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 <br />

4 ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 state NEW tcp dpt:22<br />

5 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited<br />

Chain FORWARD (policy ACCEPT)<br />

num target prot opt source destination<br />

1 REJECT all -- 0.0.0.0/0 0.0.0.0/0 reject-with icmp-host-prohibited<br />

Chain OUTPUT (policy ACCEPT)<br />

num target prot opt source destination<br />

iptables -L iptables <br />

# iptables -L<br />

iptables-save iptables iptables <br />

<br />

# iptables-save<br />

# Generated by iptables-save v1.4.7 on Fri Jan 9 16:51:47 2015<br />

∗filter<br />

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

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

:OUTPUT ACCEPT [33:4180]<br />

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

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

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

-A INPUT -p tcp -m state --state NEW -m tcp --dport 22 -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 />

# Completed on Fri Jan 9 16:51:47 2015<br />

2.4.4 <br />

iptables-A <br />

iptables -A -j <br />

<br />

<br />

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

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

Saved successfully!

Ooh no, something went wrong!