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

    Routing Out To A Specific WAN IP, Belonging to a X.X.X.X/29 Subnet

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 1.3k 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
      cwager990
      last edited by

      Dear Forum Members

      Can someone confirm for me the correct approach to route traffic from LAN-Subnet X.X.X.X/24 to Public IP X.X.X.44

      The Subnet Range is X.X.X.40 - X.X.X.47 - 40 is the network address, 41 is the pfSense WAN int address and 47 is the broadcast. 42, 43, 44, 45, 46. are added as IP Aliases, in the Virtual IP panel.

      Thanks Chris

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

        You want to route traffic from LAN network to an IP assigned to the WAN  ???  That makes no sense.

        I think what you're trying to achieve is, that traffic from LAN to the internet is shown as if it is coming from X.X.X.44 outside, which is an alias on the WAN interface. That's NAT.
        This can be done by outbound NAT in pfSense. Firewall > NAT > Outbound.
        Set it in the hybrid or manual mode at first. Then add a rule:
        Interface: WAN
        source: LAN net
        dest: any
        Translation address: X.X.X.44

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

          Yes that is exactly what I meant, thank you for correcting my explanation and for providing a solution, I was wondering if it is possible to assign a public ip address directly to a server on my network, without NAT, while retaining the firewall can this be achieved do you know how or do I need to start a new post.

          Thanks Chris

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

            You can achieve this by bridging WAN and LAN interface. But this way you can only use the public /29 subnet on LAN. pfSense is still able to filter traffic, but not to forward anything, of course.
            If you don't have special reasons for bridging it isn't recommended.

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