VPN interface IP

Issues related to configuring your network
Post Reply
heartseeker
Posts: 1
Joined: 2021/03/04 12:35:49

VPN interface IP

Post by heartseeker » 2021/03/04 12:53:17

Hello,

I am running a few servers (linux and windows) behind a router with a VPN L2TP/ipsec server to which users are connecting with no problems, or so it seems.
I have the following issue: the vpn clients are connecting to the vpn and are given an ip address from an ip pool and they have access to all resources in the LAN, including to my 2 CentOS machines, which are the only ones to see the client IP as being the public IP of the router to which the clients are connecting to.
Router is dual WAN and the VPN server is configured for WAN1, but CentOS sees the IP of the clients as WAN2.
None of the Debian based machines or Windows are doing this.
The problem is that one of the CentOS machines is running postgres and I have defined pg_hba to allow access to my clients, but it's no use since CentOS thinks they are all coming from WAN2.

Could someone point me in the right direction to understand this?
Thank you

Post Reply