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

    2 gateways

    Scheduled Pinned Locked Moved NAT
    2 Posts 2 Posters 2.2k 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.
    • C
      conehead
      last edited by

      I we have 2 gateways at our location and two networkranges (migration)

      default gateway 1 primary: 10.0.10.254 /23
      default gateway 2 decondary: 200.0.0.254 /24 (pfsense box)

      situation: everything is sent through the 10.0.10.254 gateway but if the outgoing port is not allowed gateway 1 forwards it to gateway two.

      But since this tradffice is comming from another network range it is getting blocked, tried just adding the 10.0.10.254 address as a host to the alowed internal network but that doesn' seem to work.

      Where do i need to put the 10.0.10.254 address so that it works

      thanks in advance

      1 Reply Last reply Reply Quote 0
      • C
        clarknova
        last edited by

        Is gateway 1 a router outside of the pfsense box (gateway 2)? If so, for gateway 2 to be able to forward to gateway 1 they need to both be on the same broadcast domain (I think you have that) and network (You don't have this). Try adding an alias to your pfsense box like this:

        ifconfig em1 inet 10.0.11.254 netmask 255.255.254.0 alias

        where em1 is the interface that is 200.0.0.254 and 10.0.11.254 is an unused address on gateway 1's network.

        If this setting works and you need it to survive a reboot then add the above command to the appropriate place in your config file with tags.

        db

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