Hi guys. I'm doing load balancing with two WAN with pf. I have three network interfaces: em0, em1 for WAN, and em2 for LAN. It works but my problem here is if I down em1 and up em0 I can't connect to any sites that start with https like Google or Facebook. But if the site starts with http it still passes and if I down em0 and up em1, it's working normally.
I check my rules in pf.conf file and the reason is by this line:
Here are my define macros:
Can anyone help me? Thanks.
I check my rules in pf.conf file and the reason is by this line:
Code:
# keep https
pass in on $int_if route-to ($ext_if1 $ext_gw1) proto tcp from $lan_net to port 443
pass in on $int_if route-to ($ext_if2 $ext_gw2) proto tcp from $lan_net to port 443
Code:
# Defined Macros
lan_net = "192.168.10.0/24"
int_if = "em2"
ext_if1 = "em0"
ext_if2 = "em1"
ext_gw1 = "192.168.0.1"
ext_gw2 = "10.0.3.2"