拓扑图

iptables实现正向代理

实现目标

内网用户通过Firewall服务器(iptables实现)访问外网http服务

 

配置

 

#iptables

iptables -t nat -A POSTROUTING -i eth0 -o eth1 -j MASQUERADE

内网用户 修改浏览器代理ip地址或网关为Firewall服务器的内网ip地址

 

解释说明

内网用户访问www.metasequoia.cn Firewall修改源ip(内网用户ip)为公网出口eth1的ip地址

 

相关文章:

  • 2022-12-23
  • 2022-01-18
  • 2021-09-22
  • 2021-04-17
  • 2021-09-10
  • 2021-11-21
猜你喜欢
  • 2021-11-04
  • 2022-12-23
  • 2022-02-16
  • 2021-10-23
  • 2021-09-11
  • 2021-11-25
  • 2021-12-25
相关资源
相似解决方案