当前位置:   article > 正文

openwrt vpn防火墙设置_openwrt防火墙设置

openwrt防火墙设置

本文介绍openwrt安装企业办公内网openvpn的技术文章。

因公司云服务器除了443端口外不提供公网IP访问,只能通过内网IP访问,所以办公室路由器openwrt 配置openvpn client连接公司云服务器vpn网关后才能访问,发现openvpn连接成功后,路由器能访问,但办公电脑无法走vpn路由,发现是防火墙限制,通过配置firewall,才能实现办公电脑走vpn通道。

  1. Navigate to Network > Interface
  2. Click on Add New Interface在这里插入图片描述

Enter the details as below:

  1. Name of the new interface: PureVPN

  2. The protocol of the new interface: select Unmanaged from the drop-down menu

  3. Cover the following interface: Custom Interface – tun0
    在这里插入图片描述

  4. Click Create interface.

Set Firewall Rule for VPN connection.

  1. Navigate to Network > Firewall
  2. Click Add.

在这里插入图片描述

Configure the firewall as below.

  1. Name: Pure_fw
  2. Input: reject
  3. Output: accept
  4. Forward: reject
  5. Masquerading: Checked
  6. MSS clamping: Checked
  7. Covered networks: Select PureVPN
  8. Select Allow forward from source zones
    lan: Checked
    wifi: Checked(if you have wifi interface configured)
  9. Once that is done, click on Save.
    在这里插入图片描述
声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/我家自动化/article/detail/858271
推荐阅读
相关标签
  

闽ICP备14008679号