目录

设置前导IP为 192.168.1.1,后置IP为 192.168.2.1

SoftEther VPN 是一款支持端到端(E2E)连接的VPN工具,支持通过互联网实现用户的无痕访问,以下是SoftEther VPN 的配置方法,分为以下几个步骤。 确认 Soft Ether VPN 是否已打开 确保 Soft Ether VPN 已经连接到您的防火墙或代理端口,如果已经连接,可以继续下一步骤,如果尚未连接,可以使用以下命...

SoftEther VPN 是一款支持端到端(E2E)连接的VPN工具,支持通过互联网实现用户的无痕访问,以下是SoftEther VPN 的配置方法,分为以下几个步骤。


确认 Soft Ether VPN 是否已打开

确保 Soft Ether VPN 已经连接到您的防火墙或代理端口,如果已经连接,可以继续下一步骤,如果尚未连接,可以使用以下命令配置:

sudo commands VPN connect

选择防火墙或代理

根据您的设置,选择以下选项:

  • 通过互联网:通过 Soft Ether VPN 连接到互联网。
  • 通过防火墙:通过防火墙端口连接到 Soft Ether VPN。

通过互联网

如果选择通过互联网,确保您的防火墙允许 Softether VPN 连接,如果防火墙有支持 Softether VPN 的限制(如防火墙端口 softether-port-a 或 softether-port-b),则需手动开启该端口。

通过防火墙

如果选择通过防火墙端口连接,您需要设置防火墙规则,允许 Softether VPN 连接到指定的端口。


设置前导IP(Forward IP)和后置IP(Backward IP)

Softether VPN 会自动连接到前导IP和后置IP,允许用户通过前导IP访问后置IP,以下是配置步骤:

配置前导IP

  1. 设置前导IP:

    sudo commands VPN set-forward

    在此脚本中,设置前导IP和后置IP:

    softether-forwardPort a
    softether-backwardPort b
    • a:前导IP的端口。
    • b:后置IP的端口。
  2. 设置后置IP:

    sudo commands VPN set-backward

    在此脚本中,设置后置IP:

    softether-backwardPort b

配置前导IP和后置IP

  1. 使用命令行脚本:

    sudo commands VPN set-forward

    在此脚本中,设置前导IP和后置IP:

    set-forward a
    softether-forwardPort a
    softether-backwardPort b
    set-backward b
  2. 使用 sudo commands VPN set-forward 和 sudo commands VPN set-backward:

    • set-forward a:设置前导IP为 a。
    • set-backward b:设置后置IP为 b。

配置IP地址

Softether VPN 提供了以下IP配置选项:

  • 前导IP(Forward IP):通过 softether-forwardPort 设置。
  • 后置IP(Backward IP):通过 softether-backwardPort 设置。

示例配置

softether-forwardPort 8
softether-backwardPort 8

使用 sudo commands VPN ip-config:

sudo commands VPN ip-config

此脚本会显示所有端口、IP和端口设置。


**5. 配置代理(Ifconfig)

如果需要通过代理端口访问,可以配置代理:

配置代理IP

sudo commands VPN set-proxy

设置代理端口

sudo commands VPN set-proxy
softether-proxyPort c
softether-backwardPort d

使用 sudo commands VPN proxy

sudo commands VPN proxy

**6. 防火墙配置(Firewall Rules)

确保防火墙允许 Softether VPN 连接:

  1. 在防火墙端口 softether-port-a 或 softether-port-b 上启用 Softether VPN。
    sudo commands firewall enable softether-port-a
    sudo commands firewall enable softether-port-b
  2. 或者在防火墙中启用 Softether VPN:
    sudo commands firewall enable softether-port-a softether-port-b

**7. 测试配置(Test)

  1. 使用 sudo commands VPN test:

    sudo commands VPN test

    这会显示您连接到的端点。

  2. 查看防火墙规则:

    sudo commands firewall show softether-port-a
    sudo commands firewall show softether-port-b

安全提示

  • 防火墙配置:确保防火墙允许 Softether VPN 连接,如果防火墙有支持 Softether VPN 的限制(如 softether-port-a 或 softether-port-b),则需手动开启该端口。
  • 数据保护:确保您的防火墙或代理端口不被其他威胁phrase攻击(TPPs)捕捉到。

通过以上步骤,您应该能够成功配置Softether VPN 并实现无痕访问,如果遇到任何问题,请检查以下:

  • 确保前导IP和后置IP配置正确。
  • 确保防火墙允许 Softether VPN 连接。
  • 检查防火墙规则是否正确启用。

设置前导IP为 192.168.1.1,后置IP为 192.168.2.1

扫描二维码推送至手机访问。

本文转载自互联网,如有侵权,联系删除。

本文链接:https://kuailianapp-m.com.cn/post/7390.html

扫描二维码手机访问

文章目录
网站地图