I'm trying to set up OpenVPN to listen on port 443 on my Asustor NAS, and then pass all HTTPS traffic to Apache, by using the port-share option based on:
OpenVPN port-share with Apache/SSL
However i'm not getting it to work.
I think the problem is that port 443 seems to be listening to a process myhttp.
When i run the # netstat -tulpn | grep LISTEN command, i'll get this result:
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4475/myhttpd
When i change the port on OpenVPN to 444 and run the # netstat -tulpn | grep LISTEN command again, i'll get the next result:
tcp 0 0 0.0.0.0:443 0.0.0.0:* LISTEN 4475/myhttpd
tcp 0 0 0.0.0.0:444 0.0.0.0:* LISTEN 1507/openvpn
tcp 0 0 127.0.0.1:1195 0.0.0.0:* LISTEN 1507/openvpn
I'm not sure how to solve this issue.
Does anyone have suggestions?
Answer
The issue is that your Apache is listening to 0.0.0.0:443
, when you need to set it up to listen to localhost:443
. Then you won't get conflicting ports for servers.
No comments:
Post a Comment