*************************************************************Firewall Architectures●Basic Packet Filter (Dual Homed Firewall)●Screened Host (use bastion hosts )●Screened Subnet (Uses two packet filters and at least one bastion host)Firewall architecture should be based on firewall policy statements*************************************************************FilterSet policyiptables –t <table> -P <chain> <target>Ex. Iptables –t filter –P Forward DropListing Rules●iptables -t <table> -L–Lists all r...
阅读全文
设置邮件服务编辑/etc/mail/sendmail.mcDNL# DAEMON_OPTIONS(…127.0.0.1…)去掉DNL#Service sendmail restart转发:编辑.forwardname@name.net察看纪录/var/log/maillog阻止接收地址编辑: accessFrom: name@name.net DISCARD阻止发送地址编辑: accessTo: name@name.net DISCARD拒绝地址编辑:accessname@name.net REJECT自动回复离开信息:编辑:accessname@name.net Error: 550 name has left以上编辑完之后都要输入make命令使其生效限制邮件大小:编辑: /etc/mail/sendmail.cfMaxmessagesize=扫描主机和网络下载nmap 安装包UDP扫描: nmap –sUTCP扫描: nmap –sTPing扫描网...
阅读全文
设置apache web server***************************************************************************设置文件存放在/etc/httpd/conf/httpd.conf, 里面由Global, Main, Virtual Host三部分组成。web server存放网页的主文件夹是/var/www/htmlhttpd.confDirectoryIndex 设置主页文件名。(Ex. default.html)***************************************************************************设置多用户网络服务器: 1.在用户目录下/home/<user>,创建public_html,并且给足权限,755一般就没有问题的。2.编辑/etc/httpd/conf/httpd.conf
程序代码
<Directory /hom...
阅读全文
这两个链接里面是详细介绍find, grep以及其他seach功能的。Linux文件内容查询命令find实例/用法下面都是一些关于search的例子。FindEx.return a list of all files that are larger than 80000 bytes;find –size +80000creturn a list of all files of type directory; find –type dreturn a list of all files that were modified in the last 48 hours; find –mtime -2return a list of all files that are less than 10 bytes; find –size -10creturn a list of all files in the /proc/net directory which are empty; find /proc/net -emptyreturn a list of all...
阅读全文
查询域名信息(Resolving DNS Queries)$ dig <option> <hostname/IP address>$ dig <option> <domain>$ host <option> <hostname/IP address>$ host <option> <domain>———————————————-t query type (Ex. MX, A, CNAME)———————————————设置DNS服务器(Setting Up a Name Server)1.建立name server zone file在/var/named/...
阅读全文
用CUPS服务打印(Printing using CUPS)Ex. 配置USB打印设备1.建立usb文件夹mkdir /dev/usb●Device files for parallel port printers–eg /dev/lp0, /dev/lp1, /dev/lp2●Device files for USB port printers–eg /dev/usb/lp0, /dev/usb/lp1, /dev/usb/lp22.建立”ip0”配置文件mknod lp0 c 180 0——————————————————————–# mknod <device file name> <type> <major> <minor>Must know device major ...
阅读全文
“ps”显示系统进程-a列出所有的进程-au 显示较详细的资讯 -aux 显示所有包含其他使用者的行程-e 显示系统进程(list process on the system)-c <name> 显示此命令的进程(Short listing of processes with command name <name>)-o <info name>只显示指定信息(list only the particular information)Ex. Listings of only the PIDs for all “bash” processesps –o pid –C bash*********************************************Nice processes: low priority processesNot nice processes: high priority processesNormal process has nice value 0范围为...
阅读全文
Mount建立mount point, 其实就是用mkdir建一个目录# mount -t <file system type> <device> <mount point>以下是mount不同设备的方法: # mount -t msdos -o ro /dev/fd0 /mnt/floppy# mount -t vfat /dev/sdb1 /mnt/usb# mount -t udf /dev/hdb1 /mnt/dvd# mount -t iso9660 /dev/hdc1 /mnt/cdrom# mount -t ext3 -o rw /dev/hda2 /home/staff********************************–hd* for IDE devices eg hard disk drives, CDs–sd* for SCSI, SATA or USB devices–fd* for floppy disks********************************系统boot时,自动mount...
阅读全文
帐户建立建立组:Groupadd –g <GID> <group name>组建立之后存放在/etc/group里面, 显示出来为:Group Name: x: Group ID建立用户:Useradd –u <UID> -g <GID> -d <DIR> -s <login shell> -c <comment> <user name>Ex.Useradd –u 1000 –g 751 –d /home/yoh –s /bin/bash –c “yoh” yoh用户建立之后存放在/etc/passwd里面,显示出来为:username:x:uid:gid:full-name:home-directory:default-shellExamples:n1234567:x:500:600:John Black:/home/n1234567:/bin/bash建立密码:Passwd <username>查看密码:(显示为x的...
阅读全文
总结一下所学的东西而已,都是linux里面比较基本的东西。 (本人所用平台是Fedora Core 5 + Xen virtual machine)混混级 开机关机启动到console用init 3, 回到xwindow, 用init 5 or startx (以下是各层对照表)– Level 0: Halt– Level 1: Single user mode– Level 2: Multi user mode without networking– Level 3: Full multi user mode– Level 5: Level 3 plus X11– Level 6: Reboot关机命令 (不太清...
阅读全文

最新评论
有点意思。
我的百度空间。。。
指针式温湿度计
不错不错!自持你,希望你的日
换了这么个山不山寨不寨的th
我也好想去那里呆呆。。
不错
http://www.new