port sharing -> apache log source IP
Posted: Tue Oct 11, 2016 10:09 am
Hi All,
i have 2 Ubuntu Servers:
A) ubuntu 14.04 with openvpn 2.3.2
B) ubuntu 16.04 with openvpn 2.3.10
Both use Port 443 for OpenVPN and share that port with apache at port 10443.
So Both Servers use the OPENVPN-Config "port-share 10443" parameter
It works perfect both servers.
But Server A logs any https access in the appache-access-log log with the correct IP from the access-client
Server B logs allways 127.0.0.1
Server B logs an HTTP-acceess correct with the client-IP, if i do an access to Server B direct to Port 10443 ( https:domain.com:10443)
Server B does it also WITH 127.0.0.1, if i use the openvpn-conf-file from Server A
In my oppinion, OpenVPN 2.3.10 does something different as 2.3.2.
Is there a way, that openvpn Version 2.3.10 does it like Version 2.3.2 ??
Or is there an other way, to get the correct client IP ?
I need this to ban clients with fail2ban .. to secure owncloud and other logins
Regards and thanks for help.
Koni
i have 2 Ubuntu Servers:
A) ubuntu 14.04 with openvpn 2.3.2
B) ubuntu 16.04 with openvpn 2.3.10
Both use Port 443 for OpenVPN and share that port with apache at port 10443.
So Both Servers use the OPENVPN-Config "port-share 10443" parameter
It works perfect both servers.
But Server A logs any https access in the appache-access-log log with the correct IP from the access-client
Server B logs allways 127.0.0.1
Server B logs an HTTP-acceess correct with the client-IP, if i do an access to Server B direct to Port 10443 ( https:domain.com:10443)
Server B does it also WITH 127.0.0.1, if i use the openvpn-conf-file from Server A
In my oppinion, OpenVPN 2.3.10 does something different as 2.3.2.
Is there a way, that openvpn Version 2.3.10 does it like Version 2.3.2 ??
Or is there an other way, to get the correct client IP ?
I need this to ban clients with fail2ban .. to secure owncloud and other logins
Regards and thanks for help.
Koni