Goal: To redirect non-OpenVPN TCP traffic arriving on port 443 to a website
httpd is listening on port 4443
OpenVPN is listening on port 443
After adding the 'port-share' line, the server fails to restart:
service openvpn restart
Shutting down openvpn: [ OK ]
Starting openvpn: [FAILED]
Server.conf
local 192.168.1.185
port 443
proto tcp
port-share 127.0.0.1 4443
sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"
dev tun
tun-mtu 1500
mssfix 1325
ca /etc/openvpn/privatevpn/ca.crt
cert /etc/openvpn/privatevpn/server.crt
key /etc/openvpn/privatevpn/server.key # This file should be kept secret
dh /etc/openvpn/privatevpn/dh2048.pem
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
client-config-dir /etc/openvpn/ccd
route 192.168.4.0 255.255.255.0
push "redirect-gateway def1 bypass-dns bypass-dhcp"
client-to-client
keepalive 10 120
tls-auth /etc/openvpn/privatevpn/tls-auth.key 0 # This file is secret
comp-lzo
persist-key
persist-tun
status openvpn-status.log
log openvpn.log
verb 4
There is no logfile generated during the failed startup. However, I tried starting the OpenVPN server manually with the following command:
openvpn server.conf
and received the following error:
Options error: Unrecognized option or missing parameter(s) in server.conf:39: port-share (2.0.9)
Use --help for more information.
Am I missing something?
Many thanks