`
king_tt
  • 浏览: 2114569 次
  • 性别: Icon_minigender_1
  • 来自: 深圳
社区版块
存档分类
最新评论

设置ip转发提示iptables: No chain/target/match by that name错误的解决方法

 
阅读更多

iptables的的指令可以用,但是当我要加入规则时,却出现以下的错误讯息。

1 iptables: No chain/target/match by that name

谷歌了一下,有反应说是因为没有iptables的的模块,
一开始觉得怎么可能,因为都可以使用指令了,为什么会没有包含此模块,
结果lsmod的看了一下,还真的没有,
试着做以下指令,结果还真的没有此模块,

modprobe iptables

既然这样,只好重新编译内核了。

1 sudomakemenuconfig
2 # 選擇下面的 module
3 # Networking support ->
4 # Networking options ->
5 # Network packet filtering framework (Netfilter) ->
6 # IP: Netfilter Configuration
7 sudomakeall
8 sudomakemodules_install
9 sudomakeinstall

这样就可以支援了。


分享到:
评论

相关推荐

    关于新版CenterOS7配置redis出现iptables错误的解决方法

    关于新版CenterOS7配置redis出现redisiptables错误的解决方法, 排除/etc/rc.d/init.d/iptables: No such file or directory 错误原因 , CentoOS7下配置redis并将端口通过防火墙解决方法;

    iptables配置(/etc/sysconfig/iptables)操作方法

    下面小编就为大家带来一篇iptables配置(/etc/sysconfig/iptables)操作方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    新装linux系统/etc/sysconfig目录下无iptables文件的解决方法

    下面小编就为大家带来一篇新装linux系统/etc/sysconfig目录下无iptables文件的解决方法。小编觉得挺不错的,现在就分享给大家,也给大家做个参考。一起跟随小编过来看看吧

    台湾IT的巨作: linux iptables/netfilter的介绍 part1

    台湾IT的巨作: linux iptables/netfilter的介绍 Linux网络安全技术与实现 第二版 linux iptables/netfilter/Qos/Policy route/proxy ARP/bridge/IPsec/L2TP的详细介绍 难得的linux IP相关的详细介绍

    台湾IT的巨作: linux iptables/netfilter的介绍 part12

    台湾IT的巨作: linux iptables/netfilter的介绍 Linux网络安全技术与实现 第二版 linux iptables/netfilter/Qos/Policy route/proxy ARP/bridge/IPsec/L2TP的详细介绍 难得的linux IP相关的详细介绍 详细的目录...

    iptables删除命令中的相关问题.doc

    最近在做一个V*P*N中间件的配置工作,在配置iptables的时候,当用户想删除EIP(即释放当前连接),发现使用iptables的相关命令会提示错误。iptables: Bad rule (does a matching rule exist in that chain?)。我就...

    蜜罐的应用与识别技术.pdf

    高交互(open source) 数据捕获:iptables/snort/tcpdump/sebek 数据控制:iptables/snort_inline 数据分析:hflowd/walleye 地址:http://projects.honeynet.org/honeywall Honeyd 中交互(open source) 优点:模拟任意...

    softap_ap6212a0_tinav2.1_验证通过_旧版本的系统_20170915_1223没有外层目录.7z

    #$(eval $(call nf_add,IPT_CORE,CONFIG_IP_NF_TARGET_REJECT, $(P_V4)nf_reject_ipv4)) $(eval $(call nf_add,IPT_CORE,CONFIG_NETFILTER_XT_MATCH_TIME, $(P_XT)xt_time)) $(eval $(call nf_add,IPT...

    CentOS防火墙用法浅析

    本文实例讲述了CentOS防火墙用法。分享给大家供大家参考,具体如下: 关闭: /etc/init.d/iptables stop 开启: /etc/init.d/iptables start ...规则将会阻止来自某一特定IP范围内的数据包 # i

    Docker中iptables规则在iptables重启后丢失的完整过程

    msg: /bin/sh: /usr/bin/python: No such file or directory\r\nOpenSSH_7.6p1 Ubuntu-4ubuntu0.3, OpenSSL 1.0.2n 7 Dec 2017\r\ndebug1: Reading configuration data /etc/ssh/ssh_config\r\ndebug1: /etc/ssh/...

    一键配置CentOS iptables防火墙的Shell脚本分享

    手里几台VPS配置iptables太繁琐,看到了朱哥的LNMP脚本里有一个自动配置iptables防火墙的脚本,借来改了一下,给需要的人用; 只提供常用端口的设置,如果你有特殊需求只需自行添加或减少相应的端口即可; 使用方法...

    iptables不错脚本

    modprobe ip_tables > /dev/null 2>&1 modprobe iptable_nat > /dev/null 2>&1 modprobe ip_nat_ftp > /dev/null 2>&1 modprobe ip_nat_irc > /dev/null 2>&1 modprobe ipt_mark > /dev/null 2>&1 modprobe ip_...

    sybase iq 15 64位 window 和linux 安装教程java 链接sybaseiq 分享

    安装条件:1.提供sybase win 2008 企业版本,参考内存6G 2.linux centos 6.5 64 位6G内存 ...service iptables stop chkconfig iptables off sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config

    iptables-1.6.0.tar.bz2

    PTABLES 是与最新的 3.5 版本 Linux 内核集成的 IP 信息包过滤系统。防火墙在做信息包过滤决定时,有一套遵循和组成的规则,这些规则存储在专用的信 息包过滤表中,而这些表集成在 Linux 内核中。在信息包过滤表中,...

    Linux部署服务器常用命令.doc

    mv 11.txt /usr/ 移动 rm -rf tt.txt 删除不提示 rm tt.txt删除带提示 ifconfig 查看IP信息 export PATH=$PATH:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/opt /bin:/usr/i686-pc-linux-gnu/...

    iptables 端口转发

    iptables是一个Linux下优秀的nat+防火墙工具

    iptables-webui:IP 表的 WebUI [WIP]

    IP 表 WebUI 一个很好的iptables命令的 webui,用 NodeJS 编写。 目前正在进行中。 安全 此 WebUI 不打算用作一般访问长期运行的 Web 服务器。 而是假设以下流程: 用户通过 SSH 连接到带有端口转发的远程服务器,...

    linux iptables防火墙黑名单(封IP) Connection reset by peer

    linux iptables防火墙黑名单(封IP) Connection reset by peer

    Shell脚本实现防止国外ip访问服务器

    客户的要求,不想让外国的ip来访问服务器,本来要让机房在上端路由解决,但是那些人不鸟你!!!~~~~ 这样的话,只能自己用iptables解决了~~~~~~~~~ 关于 ip库 大家可以去 http://www.ipdeny.com/ipblocks/ 下载,...

Global site tag (gtag.js) - Google Analytics