配置 PAT.note

noteId: WEBefb9114ea5b55d14591f70a2af20dedc · 原始路径:/ALL/Linux - A模块/服务配置/防火墙 合集/nftables 防火墙/配置 PAT.note · 图片:1 · 附件待处理:0

 
 
# 将匹配到的源地址全部转换为 enp1s0 的IP
nft add rule ip nat postrouting ip saddr 172.31.10.0/24 oif "enp1s0" masquerade