provided primarily for booting. Most sites # run this only on machines acting as "boot servers." Do not uncomment # this unless you *need* it. # #tftp dgram udp wait root /usr/sbin/tcpd in.tftpd #bootps dgram udp wait root /usr/sbin/tcpd bootpd # # Finger, systat and netstat give out user information which may be # valuable to potential "system crackers." Many sites choose to disable # some or all of these services to improve security. # #finger stream tcp nowait root /usr/sbin/tcpd in.fingerd #cfinger stream tcp nowait root /usr/sbin/tcpd in.cfingerd #systat stream tcp nowait guest /usr/sbin/tcpd /bin/ps -auwwx #netstat stream tcp nowait guest /usr/sbin/tcpd /bin/netstat -f inet # # Authentication # #auth stream tcp nowait nobody /usr/sbin/in.identd in.identd -l -e -o #linuxconf stream tcp wait root /bin/linuxconf linuxconf -http
大家看到的这个文件已经修改过的文件,除了telnet 和ftp服务,其他所有的服务都被禁止了.在修改了/etc/inetd.conf之后,使用命令kill -HUP (inetd的进程号),使inetd重新读取配置文件并重新启动即可.
5. ip route的配置 利用linux,一台普通的微机也可以实现高性价比的路由器.首先让我们了解一下linux的查看路由信息的命令: [root@ice /etc]# route -n Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 202.112.13.204 0.0.0.0 255.255.255.255 UH 0 0 0 eth0 202.117.48.43 0.0.0.0 255.255.255.255 UH 0 0 0 eth1 202.112.13.192 202.112.13.204 255.255.255.192 UG 0 0 0 eth0 202.112.13.192 0.0.0.0 255.255.255.192 U 0 0 0 eth0 202.117.48.0 202.117.48.43 255.255.255.0 UG 0 0 0 eth1 202.117.48.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1 127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo 0.0.0.0 上一页 [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] ... 下一页 >> |