HarryMuscle
Senior Member
I'm planning to switch my subnet from the super common 192.168.1.x to something more unique like 192.168.22.x for example (to avoid VPN related IP address conflicts). However I have some printers that various clients access via hard coded IP addresses. Until I get around to changing those on all the clients, is it possible to tell the router to forward any attempts to connect to 192.168.1.123 (the printer's original IP in the old subnet) to 192.168.22.123 (the printer's new IP) when coming from clients on the new subnet? Here's what I'm after illustrated:
I'm hoping it's just a matter of adding some iptables rules.
Thanks,
Harry
Code:
Client (192.168.22.50) -> Attempt connection to 192.168.1.123 (old hard code printer IP) -> Router (192.168.22.1) -> Forward to 192.168.22.123 (printer's actual IP in new subnet) -> Printer (192.168.22.123)
I'm hoping it's just a matter of adding some iptables rules.
Thanks,
Harry