在softether 的server.c中找到

  1. // The SoftEther VPN Project intentionally disables these functions for users
  2. // in Japan and China. The reason is: Daiyuu Nobori, the chief author of
  3. // SoftEther VPN, has been liable to observe the existing agreements and
  4. // restrictions between him and some companies. The agreements have regulated
  5. // the region-limited restriction to implement and distribute the above
  6. // enterprise functions on the SoftEther VPN open-source program.
  7. //
  8. // Therefore, the SoftEther VPN Project distributes the binary program and
  9. // the source code with the "SiIsEnterpriseFunctionsRestrictedOnOpenSource"
  10. // function. This function identifies whether the SoftEther VPN Server
  11. // program is running in either Japan or China. If the restricted region is
  12. // detected, then the above enterprise functions will be disabled.
  13. //
  14. // Please note that the above restriction has been imposed only on the
  15. // original binaries and source codes from the SoftEther VPN Project.
  16. // Anyone, except Daiyuu Nobori, who understands and writes the C language
  17. // program can remove this restriction at his own risk.
  18. //
  19. bool SiIsEnterpriseFunctionsRestrictedOnOpenSource(CEDAR *c)
  20. {
  21. char region[128];
  22. bool ret = false;
  23. // Validate arguments
  24. if (c == NULL)
  25. {
  26. return false;
  27. }
  28.  
  29.  
  30. SiGetCurrentRegion(c, region, sizeof(region));
  31.  
  32. if (StrCmpi(region, "JP") == 0 || StrCmpi(region, "CN") == 0)
  33. {
  34. ret = true;
  35. }
  36.  
  37. return ret;
  38. }

  直接改为return false就行了

 

 

 

方法2转自网络

最近在寻找比较好用的开源VPN,感觉SoftEther很符合我的需求。一方面是SoftEther属于开源软件并且一直在更新,另一方面是功能强大,好用。

VPN支持路由功能和NAT功能,还支持多种类型的VPN接入,看图。目前我的需求是NAT并做用户分组,对用户做访问控制。

我的服务端部署环境是WIN2012R2_X64,可直接在官网下载服务端和客户端:https://www.softether.org/5-download

在服务端配置过程中遇到一个问题就是不能下发明细路由,这里叫他拆分隧道。如果不处理这个问题,所有请求都会从VPN饶。

 

 但是在SoftEther VPN下发明细路由推送的时候提示:不支持此功能。它尚未在SoftEther VPN的开源版本上实施。

刚开始以为是有付费授权,后来发现不是这个原因。

 在找到相关函数,所以只要保证不要满足中文环境就可以突破

修改方式:

安装好服务端以后,修改vpnsmgr_x64和vpnserver_x64函数返回值就可以,OD载入搜索CN,JP关键字,看到或条件的比较满足条件就会触发

mov dword ptr ss:[rsp+B0],1

将1的写入,改成0的写入

 测试可行

 

 

版权声明:本文为ip99原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
本文链接:https://www.cnblogs.com/ip99/p/13991232.html