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

    routing: forward vs redirect

    Scheduled Pinned Locked Moved Routing and Multi WAN
    7 Posts 3 Posters 599 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.
    • E
      esunarto
      last edited by

      Let me preface by saying this is my first pfsense installation and configuration. i'm more used to the cisco/fortinet/mikrotik and even straight linux network/firewall.

      i'm trying to do a simple routing, based on dest network.

      it's running on a kvm virtualization, with 1 (bridged) network interface.
      since there's only 1 interface, i have to define it twice on the vm, because pfsense require WAN setup.

      i disabled wan, this unit is actually an internal router, i mainly use these routers to do routing. just within LAN.
      here's the basic setup:
      hosts that need routing: 10.10.x.x/16
      internal router (pfsense): 10.10.3.13/16
      ext gateway1: 10.10.0.1/16
      ext gateway2: 10.10.3.9/16
      ext gateway3: 10.10.24.1/16

      the job of the internal router is to route based on source and destination IP address.

      currently, if i just put static route:
      dest x.x.x.x via gateway1

      from host 10.10.x.x, ping x.x.x.x
      pfsense actually tell the host to redirect the packet to gateway1
      instead of forwarding the packet to gateway1

      can pfSense be configured to just forward the packet to gateway1 on the same LAN interface?

      V 1 Reply Last reply Reply Quote 0
      • V
        viragomann @esunarto
        last edited by

        @esunarto said in routing: forward vs redirect:

        it's running on a kvm virtualization, with 1 (bridged) network interface.

        Why only one interface?
        The machine is virtualized, so you can assign as many interfaces as needed to it, independently from the hardware.

        E 1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          @esunarto said in routing: forward vs redirect:

          can pfSense be configured to just forward the packet to gateway1 on the same LAN interface?

          And that would be an asymmetrical mess!!

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

          E 1 Reply Last reply Reply Quote 0
          • E
            esunarto @viragomann
            last edited by

            @viragomann i did assign 2 virtual nic to the 1 interface. i meant that hardware wise, there's only 1 logical interface on the vm host.

            1 Reply Last reply Reply Quote 0
            • E
              esunarto @johnpoz
              last edited by

              @johnpoz You're correct, it'll be asymmetrical.
              what would be the ideal setup for this scenario? just masquerade everything into the router's IP ?
              is it possible to push routing table to linux VMs without having to configure each one individually?

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                The ideal setup would be a transit network connecting your other router to pfsense. Simple, clean - no asymmetrical issues.

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                E 1 Reply Last reply Reply Quote 0
                • E
                  esunarto @johnpoz
                  last edited by

                  @johnpoz thanks for taking the time to suggest transit network. I've actually never heard of it before. My quick Google search only yield to definition, not practical guide. Any article you can point me to?

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