iptables的问题

Web、Mail、Ftp、DNS、Proxy、VPN、Samba、LDAP 等基础网络服务
回复
arben
帖子: 7
注册时间: 2006-09-07 9:47

iptables的问题

#1

帖子 arben » 2006-09-08 10:07

如何才能确定iptables是否已经安装在我的电脑上面了?
具体用什么命令啊?
我用以下命令的时候出错
iptables -P INPUT DROP
提示为:
FATAL: Module ip_tables not found.
iptables v1.3.3: can't initialize iptables table `filter': iptables who? (do you need to insmod?)
Perhaps iptables or your kernel needs to be upgraded.

如果没有安装,应该怎么下载安装文件,以及安装?

初学者求教
头像
cheaper
帖子: 198
注册时间: 2006-01-06 17:26

#2

帖子 cheaper » 2006-09-10 7:55

whereis iptables
我是学习linux,不是学习如何装linux。

Myblog
ning
帖子: 5
注册时间: 2006-09-09 19:26

#3

帖子 ning » 2006-09-10 11:30

iptables: /sbin/iptables /lib/iptables /usr/share/man/man8/iptables.8.gz
arben
帖子: 7
注册时间: 2006-09-07 9:47

#4

帖子 arben » 2006-09-10 19:44

我的iptables已经安装了
输入whereis iptables的时候提示:
iptables: /sbin/iptables /lib/iptables /usr/share/man/man8/iptables.8.gz

但为什么就是用不了呢?
arben
帖子: 7
注册时间: 2006-09-07 9:47

#5

帖子 arben » 2006-09-11 10:58

sbin/modprobe ip_tables
查了下资料,需要执行上面的命令,但是提示:
bash: modporbe: command not found

然后我用寻找ip_tables 发现,在系统找不到它

是不是还要安装这个模块才行呢?
具体怎么做?请教
arben
帖子: 7
注册时间: 2006-09-07 9:47

#6

帖子 arben » 2006-09-11 11:12

/sbin/depmod -a以后,
再输入:
/sbin/modprobe ip_tables
提示:
FATAL: Module ip_tables not found.
arben
帖子: 7
注册时间: 2006-09-07 9:47

#7

帖子 arben » 2006-09-12 10:34

ben@rickyyu:/$ sudo apt-get install iptables
Password:
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
iptables 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 4 个软件未被升级。


说明我已经安装了这个包啊
arben
帖子: 7
注册时间: 2006-09-07 9:47

#8

帖子 arben » 2006-09-13 19:43

觉得我iptables已经安装成功了
但只是命令执行不了
谁配置过防火墙的,指点一下啊
arben
帖子: 7
注册时间: 2006-09-07 9:47

#9

帖子 arben » 2006-09-14 16:36

root@rickyyu:/usr/src/linux/net/ipv4/netfilter# apt-get install iptables
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
iptables 已经是最新的版本了。
共升级了 0 个软件包,新安装了 0 个软件包,要卸载 0 个软件包,有 2 个软件未被升级。


请问:我用不了iptables命令的原因,会不会是和这两个未被升级的软件有关呢?
is03wush
帖子: 8
注册时间: 2006-09-22 12:12
来自: 广东

#10

帖子 is03wush » 2006-09-22 12:20

你看一看/lib/modules/内核版本/kernel/net/netfilter有没有相应的模块,iptables需要调用netfilter才能工作
Wu.S.H
liangkazhe
帖子: 18
注册时间: 2007-05-17 19:09

#11

帖子 liangkazhe » 2007-05-22 14:02

命令错了吧!!
头像
冲浪板
论坛版主
帖子: 7513
注册时间: 2007-05-06 8:19

#12

帖子 冲浪板 » 2007-05-23 20:17

那玩意应该是root才能执行。
brmmt
帖子: 2
注册时间: 2011-11-01 9:33

Re: iptables的问题

#13

帖子 brmmt » 2011-11-06 18:43

# sysv-rc-conf --level 2345 iptables on
回复