Browse Source

updated with normal network mode

crocandr 7 years ago
parent
commit
cac19e4ffc
2 changed files with 30 additions and 4 deletions
  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.
 My basic SoftEther VPN Server container.
 
 
   - https://www.softether.org
   - https://www.softether.org
-  
+
 # Usage
 # 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:
 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
   - start the VPN server
   - connect to the server with SoftEther Server Manager Tool from Windows or macOS
   - connect to the server with SoftEther Server Manager Tool from Windows or macOS
-  
+
 Notice:
 Notice:
 sometimes the default 443 port is used by another service, so use another available port like 5555, 8888...
 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'
       - './config/vpn_server.config:/opt/vpnserver/vpn_server.config'
       - '/etc/localtime:/etc/localtime:ro'
       - '/etc/localtime:/etc/localtime:ro'
     privileged: true
     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 
     restart: unless-stopped