Alastair Stevens wrote:
I have a load balanced, dual wan, carp setup with an ipsec tunnel running off of wan2. Here is what I've had to do to get it to work. If there's enough interest I'll filter my config file and share it. First of all, you must setup two advanced outbound nat rules: 1st nat rule: if: WAN source: 192.168.0.0/24 ( lan subnet ) source port: * dest: * dest port: * nat addr: wan carp ip nat port: * static port: no 2nd nat rule: if: WAN2 ( OPT1 or whatever you relabel it to, I recommend you rename it to wan2 or something ) source: 192.168.0.0/24 ( lan subnet again - same as first rule ) source port: * dest: * dest port: * nat addr: wan2 carp ip nat port: * static port: no It doesn't matter what order these rules are in. You need to go to static routes and create a static route to each of your wans' dns servers if you want DNS forwarder to work: iface: WAN network: wan1 dns ip/32 gateway: wan1 gateway iface: WAN2 network: wan2 dns ip/32 gateway: wan2 gateway You need to setup your LAN firewall rules. You will need a few rules to override the load balancing rule. I'm pretty sure I don't need all of these, but this is what I have: Proto Source Port Destination Port Gateway Description * LAN net * (wan1 pub ips) * (wan1 gw) don't LB WAN1 Subnet traffic * LAN net * (wan2 pub ips) * (wan2 gw) don't LB WAN2 Subnet traffic UDP LAN net * LAN net 53(DNS) * don't LB local DNS traffic ICMP LAN net * LAN net * * don't LB local icmp traffic * LAN net * 10.31.0.0/16 * * don't LB my ipsec traffic TCP LAN net * * 25(SMTP) (wan1 gw) don't LB SMTP * 192.168.0.96/31 * ! LAN net * (wan2 gw) don't LB this user TCP LAN net * * 443(HTTPS) * don't LB HTTPS traffic * LAN net * * * OutboundLB ** DEFAULT RULE ** |
Title: Dual WAN - major problems
- [pfSense Support] Dual WAN - major problems Alastair Stevens
- Re: [pfSense Support] Dual WAN - major problems Royce Mitchell III
- Re: [pfSense Support] Dual WAN - major problem... Justin Wilson
- Re: [pfSense Support] Dual WAN - major pro... Scott Ullrich
- RE: [pfSense Support] Dual WAN - major... Alastair Stevens
- RE: [pfSense Support] Dual WAN - major problem... Alastair Stevens
