摘要: ubuntu iptables重启生效:save roles to a file:iptables-save >/etc/iptables.rolesedit /etc/network/interfaces:vim /etc/network/interfacesadd:pre-up iptables 阅读全文
posted @ 2019-08-29 00:59 dzqabc 阅读(5892) 评论(0) 推荐(0) 编辑
摘要: 说明:需要将外网访问本地IP(192.168.75.5)的80端口转换为访问192.168.75.3的8000端口,这就需要用到iptables的端口映射实现:1. 需要先开启linux的数据转发功能 2. 更改iptables,使之实现nat映射功能 3. 查看nat,可以使用命令:iptable 阅读全文
posted @ 2019-08-29 00:58 dzqabc 阅读(28531) 评论(1) 推荐(1) 编辑