我觉得你不需要第二条,一条DNAT就够了
【 在 obana 的大作中提到: 】
: 标 题: Re: 求助一个iptables的写法
: 发信站: 水木社区 (Sun Jan 7 23:20:00 2024), 转信
:
: 贴iptables-save的结果:
:
: -A PREROUTING -d ip1/32 -i eth0 -j DNAT --to-destination ip2
: -A POSTROUTING -s ip2/32 -o eth0 -j SNAT --to-source ip1
:
: ip1是玩具写死的ip已经无法访问了
: ip2是我自己答的服务器,可以访问
:
: eth0是内网网卡,eth1是外网网卡
:
:
: 【 在 DreamDreams 的大作中提到: 】
: : 我的路由器都升级到只有nftables了,我写了这么一条
: : chain prerouting {
: : type nat hook prerouting priority filter; policy accept;
: : ...................
:
: --
:
: ※ 来源:·水木社区
http://www.mysmth.net·[FROM: 117.129.62.*]
--
FROM 124.207.188.194