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

    Redirecting Traffic from an Internal IP through PFSense to another subnet

    Scheduled Pinned Locked Moved NAT
    5 Posts 3 Posters 2.1k 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.
    • D
      DallasF
      last edited by

      So I have an issue with moving printers to a new subnet.

      For normal print jobs I can send to the new subnet fine without any problems. It's just this service (3rd party) that is expensive to make changes to. So my question is I have a service that uses the ip of the printer to dump pcl print jobs too and I was wondering if there is a way to have pfsense take traffic from the original ip and redirect it to the new ip on the new subnet.

      Printer: 10.20.5.1 255.255.0.0
      Printers new address on different subnet: 192.168.5.1 255.255.255.0

      Any help/suggestions would be appreciated.

      1 Reply Last reply Reply Quote 0
      • DerelictD
        Derelict LAYER 8 Netgate
        last edited by

        Sounds like you just need a port forward on an inside (LAN) interface.

        It would be just like you do on WAN to port forward to something on the inside, but on an inside interface instead.

        On the 10.20.0.0/16 interface, create an IP Alias VIP for 10.20.5.1.

        Then create a port forward (or maybe a 1:1 NAT would be better, depending on the ports/protocols in play) from 10.20.5.1 to 192.168.5.1.

        Chattanooga, Tennessee, USA
        A comprehensive network diagram is worth 10,000 words and 15 conference calls.
        DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
        Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

          Why would something on 10.20/16 even talk to pfsense to get to 10.20.5.1 ?  That is the same network..  So how would a port forward work?

          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

          1 Reply Last reply Reply Quote 0
          • DerelictD
            Derelict LAYER 8 Netgate
            last edited by

            You put a VIP on the interface so it responds to ARP as 10.20.5.1.

            Chattanooga, Tennessee, USA
            A comprehensive network diagram is worth 10,000 words and 15 conference calls.
            DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
            Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

              Ah - Great point.. Did not think of that!!  That is great idea!

              Just need to make sure the printer can talk back to the 10.20/16 network - or you would also need to source nat it to be on the printer segment.

              I hope part of this project is to also use a more realistic network size - /16 is freaking HUGE!!

              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

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