Hi,
I am running openvpn on 443 TCP, with the port-share directive to 444 localhost, and apache running on the same server and listening on 444 (for HTTPS).
Apache only sees 127.0.0.1 as source ip connection, because port-share makes openvpn work as a proxy I suppose.
Is there a way to keep source IP and forward it to Apache, as in Apache reverse proxy directive ProxyPreserveHost ?
My server config file below :
port 443
port-share 127.0.0.1 444
proto tcp
dev tun
ca /PATH/ca.crt
cert /PATH/server.crt
key /PATH/server.key # This file should be kept secret
dh /PATH/dh1024.pem
server 192.168.10.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.1.0 255.255.255.0"
push "redirect-gateway def1"
push "dhcp-option DNS 192.168.1.1"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3