贴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;
: ...................
--
FROM 117.129.62.*