Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    NAT on WAN2 failed if WAN1 down

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 830 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • A
      anhvt
      last edited by

      Hello,

      I have setup a pfSense (2.3.1-RELEASE-p1) with 1 LAN and 2 WAN. Both 2 WAN are PPPoE connections to 2 ISP. For internet access, I've configured 3 gateway groups: 1 for load balancing and 2 for failover, also set the rules for LAN to access internet via those groups.

      I've add 2 rules for port forwarding TCP/80 from 2 WAN to an internal ip address:

      | Interface | Protocol | Source Address | Source Port | Destination Address | Destination Port | NAT IP | NAT Port |
      | WAN1 | TCP | * | * | WAN1 Address | 80 (HTTP) | 192.168.1.100 | 80 (HTTP) |
      | WAN2 | TCP | * | * | WAN2 Address | 80 (HTTP) | 192.168.1.100 | 80 (HTTP) |

      Both 2 above rules is set NAT Reflection: Enable (NAT + Proxy). Other settings are left default.

      When both 2 WAN online, from the internet, I can telnet port 80 on each WAN's public IP address, means above rules work. But if the WAN1 down, I cannot telnet port 80 on WAN2. From the internal host 192.168.1.100, it can ping to the internet.

      There is another problem, if WAN1 down, squid proxy cannot access internet, every clients in LAN cannot access web, so I have to disable squid to allow web access.

      Can anyone help me why, and how to fix this?

      Regards,

      Anh

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Your telnet to port 80 is likely going to squid, and then failing because squid can't get out (no default gateway).

        Activate Default Gateway Switching under System > Advanced, Miscellaneous.

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • First post
          Last post
        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.