如何打开服务,例如iptables

OOo,TeX,KO,ABI,GIMP,Picasa,ProE,QCAD,Inkscape,Kicad,Eagle
回复
头像
yang119345
帖子: 570
注册时间: 2005-06-19 14:22
来自: 上海
联系:

如何打开服务,例如iptables

#1

帖子 yang119345 » 2005-12-01 22:13

:o fc下只要

service iptables restart
就好了。 :shock: 不知道ubuntu如何打开?????求助 :oops:
头像
oneleaf
论坛管理员
帖子: 10441
注册时间: 2005-03-27 0:06
系统: Ubuntu 12.04

#2

帖子 oneleaf » 2005-12-01 23:29

推荐使用shorewall,这个是基于iptables的防火墙。主页有专门的介绍。
头像
yang119345
帖子: 570
注册时间: 2005-06-19 14:22
来自: 上海
联系:

#3

帖子 yang119345 » 2005-12-05 15:29

:lol: 好的非常感谢。
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#4

帖子 eexpress » 2005-12-05 15:32

iptables restart 直接就可以吧。
● 鸣学
头像
yang119345
帖子: 570
注册时间: 2005-06-19 14:22
来自: 上海
联系:

#5

帖子 yang119345 » 2005-12-05 23:27

eexpress 写了:iptables restart 直接就可以吧。

不行的

代码: 全选

Bad argument `restart'
Try `iptables -h' or 'iptables --help' for more information.
头像
laborer
帖子: 1016
注册时间: 2005-10-25 11:15
联系:

#6

帖子 laborer » 2005-12-06 0:19

iptables无所谓start或者stop了,它只是一个user-end的工具,它的功能都是在内核中的,只要内核还在,那过滤功能都是有效的。

fc我没用过,它的service iptables start应该是从文件中预设的规则,并将它们导入内核。ubuntu下可以很容易的用iptables-save/iptables-restore实现。
hreiser@oakland:~$ killall -9 wife
police@oakland:~$ sudo find / -user hreiser
court@oakland:~$ sudo mv /home/hreiser /jail/
court@oakland:~$ sudo usermod -d /jail/hreiser -s "/usr/sbin/chroot /jail/" hreiser
回复