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

    Alter outgoing port number is it possible?

    Scheduled Pinned Locked Moved NAT
    3 Posts 2 Posters 498 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.
    • R
      RazorBladeHNT
      last edited by

      Kinda weird question but is it possible to alter port number?

      Let me explain what problem i have
      i have two locations

      1st operated by pfSense 44.55.66.77
      and in this local network i have Ricoh 325SNw printer 192.168.0.241 and this printer for some reason doen't have telnet so i cant change port wich it use to send scans (default 445)

      2nd location operated by Keenetic omni router 100.101.102.103
      and this ISP block 445 port for security reasons

      So iwas wanderring is it possible to do something like this

      192.168.0.241:445 -> pfsense alter 445 to 7878 -> nat rule on 100.101.102.103 accept 7878 and redirects it to local adress on 445 port

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

        @razorbladehnt
        You can do this with a port forwarding rule in Firewall > NAT > Port Forward.

        Add a rule, select the interface which is facing to the printer, e.g. LAN. Open Source settings and "single host" and enter the printers IP, at destination also select "single host" and enter the 100.101.102.103, for dest. port enter "445".
        Redirect target: "single host" > 100.101.102.103
        Redirect target port: other > 7878

        On the remote site you can translate the port back to 445.

        R 1 Reply Last reply Reply Quote 1
        • R
          RazorBladeHNT @viragomann
          last edited by

          @viragomann thanks mate

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