I am reading this forum already some time. Now it's time to participate actively. I am using openvpn to support my clients.
OpenVPN is very easy. Place DEVICE=E:\IBMCOM\MACS\OpenVPN.SYS in config.sys and make an entry in protocol.ini:
[OpenVPN_nif]
DriverName = OVPNET$
NETADDRESS = "004030123456"
Create a config file for openvpn (lan0=lan, lan1=wlan, lan2=openvpn), for example:
dev tap
dev-type tap
dev-node lan2
proto udp
cipher AES-128-CBC
auth SHA1
remote aaa.bbb.ccc.ddd 1194
resolv-retry infinite
pull
auth-user-pass
tls-client
pkcs12 <p12file>.p12
tls-auth <tlskey>.key 1
script-security 3
verb 3
As Server you can use a linux machine, or ipcop, ipfire, pfsense firewall (the example above is for an pfsense firewall). In the case of pfsense the firewall creates the client config file, the p12 file and the tls key file. Start openvpn with:
openvpn --cd <config-dir> --config <config file>
Example:
{0}[e:\sys\apps\openvpn] ovpn_argon.cmd
openvpn --cd .\config --config argon.ovpn
Mon Sep 30 19:49:43 2019 OpenVPN 2.1.3 i386-pc-os2-emx [SSL] [LZO2] built on Sep
21 2010
Enter Auth Username:openit_admin
Enter Auth Password:
Mon Sep 30 19:49:53 2019 WARNING: No server certificate verification method has
been enabled. See
http://openvpn.net/howto.html#mitm for more info.
Mon Sep 30 19:49:53 2019 NOTE: the current --script-security setting may allow t
his configuration to call user-defined scripts
Mon Sep 30 19:49:53 2019 NOTE: --script-security method='system' is deprecated d
ue to the fact that passed parameters will be subject to shell expansion
Mon Sep 30 19:49:53 2019 WARNING: file 'openit_admin-TO-argon.p12' is group or o
thers accessible
Mon Sep 30 19:49:53 2019 WARNING: file 'openit_admin-TO-argon.key' is group or o
thers accessible
Mon Sep 30 19:49:53 2019 Control Channel Authentication: using 'openit_admin-TO-
argon.key' as a OpenVPN static key file
Mon Sep 30 19:49:53 2019 LZO compression initialized
Mon Sep 30 19:49:53 2019 UDPv4 link local (bound): [undef]:1194
Mon Sep 30 19:49:53 2019 UDPv4 link remote: <IP>:1196
Mon Sep 30 19:49:54 2019 WARNING: this configuration may cache passwords in memo
ry -- use the auth-nocache option to prevent this
Mon Sep 30 19:49:55 2019 [openit_admin] Peer Connection Initiated with 81.223.17
3.68:1196
Mon Sep 30 19:49:57 2019 ifconfig.exe lan2 10.125.211.2 netmask 255.255.255.0 mt
u 1500 up
sem reset rc=300
up: Operation not supported
add net 10.0.0.0: gateway 10.125.211.1
Mon Sep 30 19:49:57 2019 Initialization Sequence Completed
{0}[e:\] ping 10.0.0.12
PING 10.0.0.12: 56 data bytes
64 bytes from 10.0.0.12: icmp_seq=0. time=90. ms
64 bytes from 10.0.0.12: icmp_seq=1. time=20. ms
----10.0.0.12 PING Statistics----
2 packets transmitted, 2 packets received, 0% packet loss
round-trip (ms) min/avg/max = 20/55/90
That's it. Easy and Robust and with openvpn you need only one port for comunication. You can use tcp or udp.
best regards
Bernhard