iptables -t mangle -A PREROUTING -j MARK --set-mark 1提示iptables: No chain/target/match by that name
来源:互联网 发布:网络短信接口 编辑:程序博客网 时间:2024/05/24 06:49
不知为何,即使Core Netfilter Configuration和IP: Netfilter Configuration全部采用built-in还是提示这个错误,后来改成module的方式依然不行,最后找到原因是因为它不会自动加载所需要的模块,手动加载即可,modprobe xt_MARK
[root@mpc8315erdb /root]# iptables -t mangle -A PREROUTING -s 192.168.2.0/24 -j
MARK --set-mark 1
iptables: No chain/target/match by that name
[root@mpc8315erdb /root]# modprobe xt_MARK
[root@mpc8315erdb /root]# iptables -t mangle -A PREROUTING -s 192.168.2.0/24 -j
MARK --set-mark 1
[root@mpc8315erdb /root]# iptables -t mangle -L
Chain PREROUTING (policy ACCEPT)
target prot opt source destination
MARK all -- 192.168.2.0/24 anywhere MARK xset 0x1/0xffffffff
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
Chain POSTROUTING (policy ACCEPT)
target prot opt source destination
- iptables -t mangle -A PREROUTING -j MARK --set-mark 1提示iptables: No chain/target/match by that name
- iptables: No chain/target/match by that name.
- 设置ip转发提示iptables: No chain/target/match by that name错误的解决方法
- 设置ip转发提示iptables: No chain/target/match by that name错误的解决方法
- 设置IP转发提示iptables: No chain/target/match by that name错误的解决方法
- Centos 7 docker 启动容器 iptables 报 No chain/target/match by that name
- Centos 7 docker 启动容器iptables报No chain/target/match by that name
- Centos 7 docker 启动容器 iptables 报 No chain/target/match by that name
- 【Howie玩docker】-Centos 7 docker 启动容器iptables报No chain/target/match by that name
- Docker 启动时报错:iptables:No chain/target/match by the name
- iptables 的各中mark
- iptables的CONNMARK与MARK
- iptables的CONNMARK与MARK
- iptables的CONNMARK与MARK
- iptables 的各中mark
- iptables 的mangle表
- iptables mangle 表,链
- 关于IPTABLES 各种MARK 功能的用法
- 使用 kqueue 在 FreeBSD 上开发高性能应用服务器
- CUDA3.2+VS2008+CUDA_VS_WIZARD配置详细说明及第一个入门案例
- 图象与图像的区别
- 读excel,数字,汉字混合列
- Visual Studio开启远程调试的步骤
- iptables -t mangle -A PREROUTING -j MARK --set-mark 1提示iptables: No chain/target/match by that name
- 别的程序员是怎么读你的简历的
- CERT_KEY_CONTEXT_PROP_ID,CERT_KEY_PROV_INFO_PROP_ID,CERT_KEY_PROV_HANDLE_PROP_ID和CERT_KEY_SPEC_PROP_ID
- 23个经典JDK设计模式
- 试试看
- 珍爱生活系列之 小舟买房记
- 移植U-Boot S3C2440超值版支持NAND启动,支持YAFFS文件系统
- iPhone 4奇货可居真相透视
- mecgrid使用简单总结