HA proxy on pfsense cannot working
-
-
Here is my IP schema for my HA
-
And I've got a host configured as 192.168.8.252/24 to use 192.168.8.5 as its gateway and DNS.
-
@usaiat said in HA proxy on pfsense cannot working:
@Mr-Trieu Sorry I'm confused here. I thought with HA you just do NAT configuration on the primary ? Also is it Outbound NAT or Port Forward NAT as @netblues is suggesting Outbound NAT
Nat rules are propagated, so yes, you do them on primary (unless for special purposes you don't want to replicate settings)
Outbound nat is for connections leaving pf sense .
port forward is for incoming connections typically from the InternetWhat is your issue?
-
Thanks @netblues . My issue is I just couldn't access internet from a client using the pfsense LAN VIP as its gateway and DNS (with DNS forwarder enabled). From pfsense itself I can ping internet and name lookup as well. Even if I put back the “Default LAN > any” rule right on the top of my rules internet still doesn't work.
I've also followed this step on the pfSense book
Probably something else I'm missing ?
-
@usaiat Probably there is a misconfiguration somewhere.
Please post your nat and firewall rules, not the ones from the book.
And a network diagram, if there is anything special apart from two nodes a carp wan, a carp vip and a sync interface... -
This is my setup
LAN rule below. WAN has only the default Block private networks and loopback addresses and Block bogon networks rule
Manual Outbound NAT below
-
You are not allowing your lan to pass.
Only ping is allowed (and has some traffic matched too)
Lan address is the ip of pf. What you need is lan net
And I do hope Allowed_tcp ports says something meaningful
And your nat rules is a mess..
192.168.0.0/16 with nat address 202.0.155.252 is the only thing you need
(for lan.) also localhost to wan is needed for pfsense internet access
if not using ipsec you can eliminate all isakmp entries
This is a ha setup, don't rely too much on autocreated rules :)
As a rule of thumb, first establish basic connectivity and then start doing smarter things. -
@netblues That fix it for me. LAN rule - change from LAN address to LAN net. By the way, those NAT rules are the automatically created rules. So I just change all those on WAN interface to use my WAN VIP
Thank you so much
-
@usaiat Well, the automatic nat rules are there to ease first steps, however they do create clutter. e.g if there is no ipsec vpn, there is no need for port 500 and isakmp.
Also complete rfc1918 ranges are allowed, and even though this doesn't do much harm, makes the rules more difficult to read.
In practice you need nat rules for your lan pc's and for pfsense to reach the internet itself.
Nothing else. -
@netblues Sure, thanks