Home
Sign Up
Sign In
Distributions
›
Ubuntu
›
Fedora
›
CentOS
中文资源站
›
网易开源镜像站
V2EX
›
Linux
iptables 外网 IP 转发到另一台机器内网
vloony
·
Jul 3, 2021
· 2408 views
This topic created in 1955 days ago, the information mentioned may be changed or developed.
iptables 外网 IP 转发到另一台机器内网
怎么控制范围公网 A 机器公网 IP 转发流量到 B 机器
以前好像写过一次 后面忘记了 好像是 A 公网 IP 流量转发到内网 IP 上 再转发这个内网 IP 到 B 机器
内网
公网
机器
iptables
4 replies
•
2021-07-05 10:32:32 +08:00
NowTime
Jul 4, 2021
1
我也想知道怎么做,帮顶。
dorothyREN
Jul 4, 2021
2
盲猜 lvs ?
liuxu
Jul 4, 2021
3
没这么玄乎小兄弟,A 直接匹配 dst 是本机公网 ip 然后就转发到内网 B 的 IP 就行了,包出去后走到路由,路由会自己转给 B 机器
smalllam
Jul 5, 2021 via iPhone
4
nat table,prerouting + post routing,改目标 IP 为第二台的 IP 。
About
·
Help
·
Advertise
·
Blog
·
API
·
FAQ
·
Privacy
·
Solana
·
2552 Online
Highest 6679
·
Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 33ms ·
UTC 04:21
·
PVG 12:21
·
LAX 20:21
·
JFK 23:21
♥ Do have faith in what you're doing.
❯