程序员的资源宝库

网站首页 > gitee 正文

iptables(iptables命令)

sanyeah 2024-04-01 11:53:06 gitee 6 ℃ 0 评论

iptables -t nat -D PREROUTING -s 192.168.1.108 -i wlan0 -p tcp --dport 554 -j DNAT --to-destination 10.7.36.221:554                                                                                         
iptables -t nat -D POSTROUTING -p tcp -d 10.7.36.221 --dport 554 -o eth0 -j MASQUERADE


iptables -t nat -A PREROUTING -s 192.168.1.108 -i wlan0 -p tcp --dport 554 -j DNAT --to-destination 10.7.36.221:554
iptables -t nat -A POSTROUTING -p tcp -d 10.7.36.221 --dport 554 -o eth0 -j MASQUERADE

 

 

iptables用法简介
iptables深入解析-filter篇
IPTABLES百科

Linux系统中使用iptables实现nat地址转换

超级详细的iptables介绍

9个常用iptables配置实例

iptables实现网卡包转发 - 风之子的日志

Tags:

本文暂时没有评论,来添加一个吧(●'◡'●)

欢迎 发表评论:

最近发表
标签列表