1
Web Proxy Filtering and Caching / [HAProxy] Use real server in different subnet(ipsec vpn)
« on: March 23, 2022, 05:50:25 pm »
Hi,
I have two sites, each with a Opnsense Router. These two sites are connected with a Site2Site Ipsec Tunnel.
Site 1: 10.30.0.0/16
Site 2: 10.40.0.0/16
If I configure a HaProxy real server (on the opnsense site 1) which is located at site 2, the HaProxy cannot reach it, because it uses the default WAN IpAddress to reach it.
So I set the source address for this real server to 10.30.0.x. Then HaProxy can reach the server on site 2!
But now I get the following error every few Minutes:
Can somebody help me?
I have two sites, each with a Opnsense Router. These two sites are connected with a Site2Site Ipsec Tunnel.
Site 1: 10.30.0.0/16
Site 2: 10.40.0.0/16
If I configure a HaProxy real server (on the opnsense site 1) which is located at site 2, the HaProxy cannot reach it, because it uses the default WAN IpAddress to reach it.
So I set the source address for this real server to 10.30.0.x. Then HaProxy can reach the server on site 2!
But now I get the following error every few Minutes:
Code: [Select]
Connect() failed for backend xxxx: local address already in use.
Can somebody help me?