Linux 服务器转发流量用什么?
source link: https://www.v2ex.com/t/849671
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Linux 服务器转发流量用什么?
有一台 linux 服务器,假设 IP 为 IP1 ,需要把流量转发到其他服务器
IP1:10000 → IP2:20000
IP1:10001 → IP3:2341
问题 1 ,有哪些软件可以做到
问题 2 ,后面的 IP2,IP3 ,以及端口,会经常更换的情况,哪个软件更适合
xavierskip 4 小时 28 分钟前
ampedee 4 小时 26 分钟前 via iPhone
x86 4 小时 24 分钟前
rekulas 4 小时 24 分钟前
hefish 4 小时 23 分钟前
datou 4 小时 21 分钟前
seers 4 小时 16 分钟前
x86 4 小时 13 分钟前
linglin0924 3 小时 58 分钟前
Silently 3 小时 39 分钟前 via iPhone
jinliming2 3 小时 35 分钟前 via iPhone
iptables 的资料多一些,但是各种参数不太好记。我倾向于用 nftables ,资料也不少,配置文件也便于阅读理解。
你这个就是个简单的 DNAT ,生成个 DNAT 的路由规则就行了,指定匹配源地址 NAT 到目的地址
A01514035 3 小时 28 分钟前
nightwitch 3 小时 20 分钟前
socat 一行就可以,但是要自己编译
cubecube 3 小时 5 分钟前
NSAgold 1 小时 33 分钟前 via Android
wtks1 1 小时 9 分钟前 via Android
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK