2016年9月20日

经验分享:Linux 双网卡SNAT和DNAT映射本地端口出外网

摘要: A 机器 网卡1 公网IP网卡2 内网 B 机器网卡1 内网 如果想把公网端口P1 映射为内网B机器端口P2 iptables -t nat -A PREROUTING -d [A公网地址] -p tcp -m tcp --dport [公网端口] -j DNAT --to-destination 阅读全文

posted @ 2016-09-20 17:55 baxk2001 阅读(2465) 评论(0) 推荐(0) 编辑

导航