|
发表于 2005-10-10 14:38:58
|
显示全部楼层
iptables不是一个服务,仅仅是配置kernel防火墙功能的一个工具。
debian中没有rc.local这个脚本,要自己搞定,ubuntu也一样。
下面是个例子,你看看:
1) Make a file called /etc/init.d/local with a text editor. This file is a script so it should always start with the following line:
#! /bin/sh
2) Next, for example I have an always on cable modem and I want to use rdate to update the system time to atomic clock time at startup, so I add the following command to the file:
rdate -s clock-1.cs.cmu.edu && hwclock --systohc
(The rdate command updates your system time, then the hwclock command updates the bios clock)
3) Make this file executable with:
chmod +x /etc/init.d/local
4) Next, link the new local file by running:
update-rc.d local defaults 80 |
|