小试iptables

# Generated by iptables-save v1.3.5 on Wed Dec 26 10:15:08 2007
*filter
:INPUT ACCEPT
:FORWARD ACCEPT
:OUTPUT ACCEPT

-A INPUT -s 127.0.0.1 -j ACCEPT
-A OUTPUT -s 127.0.0.1 -j ACCEPT

#

#-A INPUT -p tcp –dport 80 -m limit –limit 10/second –limit-burst 80 -j ACCEPT

-A INPUT -p tcp -s 124.115.0.0/16 –dport 80 -j DROP
-A INPUT -p tcp -s 59.60.137.0/24 –dport 80 -j DROP
-A INPUT -p tcp -s 221.194.136.0/24 –dport 80 -j DROP
-A INPUT -p tcp -s 121.34.0.0/16 –dport 80 -j DROP
-A INPUT -p tcp -s 116.25.215.0/24 –dport 80 -j DROP
-A INPUT -p tcp -s 221.194.136.0/24 –dport 80 -j DROP
-A INPUT -p tcp -s 60.6.224.0/24 –dport 80 -j DROP

COMMIT
# Completed on Wed Dec 26 10:15:08 2007

bash-3.1# history

最近的系统 centos 5 , 害怕自己记不住了,就偷懒把history 贴出来。家里的电脑换回ubuntu 的 gutsy,感觉就是舒服,十二分的舒服。

做一件事情,并做好它。

bash-3.1# history
1 ls
2 ls -all
3 reboot
4 cat /etc/issue
5 tail /etc/yum.conf
6 cat /etc/yum.repos.d/CentOS-Base.repo
7 cat $basearch
8 echo $basearch
9 echo basearch
10 cat /etc/yum.repos.d/CentOS-Base.repo
11 basearch
12 cat /etc/yum.repos.d/CentOS-Media.repo
13 cat /etc/yum.repos.d/CentOS-Base.repo
14 exit
15 cd /etc/yum.repos.d/
16 ls
17 ls -all
18 head CentOS-Base.repo
21 head -100 CentOS-Base.repo
22 yum update
23 ls
24 cp CentOS-Base.repo CentOS
25 ls /usr/bin
26 nano
27 ls
28 nano CentOS-Base.repo
29 yum update
33 nano CentOS-Base.repo
34 yum update
35 nano CentOS-Base.repo
36 yum update
37 nano CentOS-Base.repo
38 yum update
39 yum update
40 yum install gcc
41 yum install gcc gcc-c++ gcc-g77 flex bison autoconf automake bzip2-devel zlib-devel ncurses-devel libjpeg-devel libpng-devel libtiff-devel freetype-devel pam-devel openssl-devel libxml2-devel gettext-devel pcre-devel
Continue reading bash-3.1# history