Alter outgoing port number is it possible?
-
Kinda weird question but is it possible to alter port number?
Let me explain what problem i have
i have two locations1st 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 reasonsSo 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
-
@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 > 7878On the remote site you can translate the port back to 445.
-
@viragomann thanks mate