-iptables :五链四表七动作
优先级 :raw-->mangle-->nat-->filter
NAT表:PREROUTING链,POSTROUTING链,OUTPUT链
DNAT:外网IP映射到内网 (PREROUTING)
SNAT:内网IP映射到外网 (POSTROUTING)
FILTER表 : INPUT链(入站数据过滤),FORWARD链(转发数据过滤),OUTPUT链(出站数据过滤)
MANGLE : PREROUTING链,POSTROUTING链,INPUT链,OUTPUT链,FORWARD链
RAW : OUTPUT链,PREROUTING链 //无法看到该表数据!!!!!
ACCEPT : 接收数据包
DROP : 丢弃数据包
REDIRECT : 重定向、映射、透明代理
SNAT : 源地址转换
DNAT : 目标地址转换
MASQUERADE : IP伪装,用于ADSL
LOG : 日志记录
黑白名单:
黑名单:默认全部可以通过,不可以通过的放在名单中;
白名单:默认全部不可以通过,可以通过的放在名单中;
详细解决方案
iptables 指令
热度:33 发布时间:2023-11-23 08:34:01.0
相关解决方案
- 在严厉情况下配置 iptables 时是否需要同时设置 filter, mangle, nat, raw, and security 为 DROP
- iptables failed: iptables --wait -t nat -A DOCKER -p tcp -d 0/0 --dport 1521 -j DNAT --to-destinatio
- firewall-cmd 和 iptables 的基本使用
- iptables 指令
- iptables 的安装与配置
- Docker 快速验证保存 iptables 的转发策略
- centos7 firewalld(iptables)
- iptables -nvL 查看防火墙是否关闭
- centos 7 中没有iptables 和service iptables save 指令使用失败问题解决方案
- Job for iptables.service failed because the control process exited with error code. See systemctl s
- iptables/netfilter命令、实现及利用
- centos iptables
- 使用 iptables 进行端口转发
- [linux] redhat 7 iptables 配置