浏览代码

updated with normal network mode

crocandr 6 年之前
父节点
当前提交
cac19e4ffc
共有 2 个文件被更改,包括 30 次插入4 次删除
  1. 23 3
      README.md
  2. 7 1
      docker-compose.yml

+ 23 - 3
README.md

@@ -3,10 +3,10 @@
 My basic SoftEther VPN Server container.
 
   - https://www.softether.org
-  
+
 # Usage
 
-The recommended way is docker-compose.
+The recommended way is docker-compose (with normal network mode).
 
 VERY IMPORTANT!: Create an empty config file with world-wide write permission under the config folder before start the server:
 ```
@@ -25,7 +25,27 @@ docker-compose up -d
 
   - start the VPN server
   - connect to the server with SoftEther Server Manager Tool from Windows or macOS
-  
+
 Notice:
 sometimes the default 443 port is used by another service, so use another available port like 5555, 8888...
 
+## Configuration
+
+You can manage the VPN server from Windows with the Server Manager tool. Connect to the VPN server through 5555 TCP port. This is opened by default in docker-compose file.
+
+Do not worry. Any opened port accept every type of connection ( management, OpenVPN, etc). So you can use only one port if you like it.
+
+### OpenVPN
+
+- Download the sample configuration files for OpenVPN clients (too) under the "OpenVPN/MS-SSTP Settings" with "Generate ..." button.
+- Use the `...openvpn_remote_access_l3.ovpn` file for clients (road warriors :) )
+Do not forget! Change these parameters to your configuration in this sample file:
+```
+proto tcp
+remote vpn9999999999.v4.softether.net 5555
+```
+Upload the modified file to your clients and use it.
+
+
+
+Good Luck!

+ 7 - 1
docker-compose.yml

@@ -12,5 +12,11 @@ services:
       - './config/vpn_server.config:/opt/vpnserver/vpn_server.config'
       - '/etc/localtime:/etc/localtime:ro'
     privileged: true
-    network_mode: host
+# with host mode - maybe the services on vpn host is not accessible, like http, etc..
+#    network_mode: host
+# with normal mode - you cant add any local bridge, but every service on vpn host is accessible
+    ports:
+      - '5443:5443'
+      - '5555:5555'
+      - '55555:55555'
     restart: unless-stopped