05-19-2011 06:23 AM - edited 03-04-2019 12:27 PM
I know this will be easy for most of you to answer.
I need to be able to print to a LAN IP printer from a WAN service that prints to a certain port. The lan print server is a HP JetDirect.
Ex.
External WAN Address 216.x.x.x Port 9156 prints to 192.168.200.6 printer IP address. JetDirect is at all default except for the IP information.
Currently my ISP has it setup like this. NAT: 216.x.x.x 9156 to 192.168.200.6 9156. The wan service cannot print. Is this because of the 192.168.200.6 9156, since the JetDirect is at its default, which I think is port 9100.
What should the translation command look like. Can it be NAT: 216.x.x.x 9156 to 192.168.200.6 with no internal port defined?
Thanks in advance.
Solved! Go to Solution.
05-19-2011 09:56 AM
I think this won't work either you specify ports on both( static PAT) or none on both (static NAT) but you can't mix AFAIK.
Regards.
Alain.
05-19-2011 06:27 AM
Hi,
look out in the doc what is the default port and then change your static PAT with the correct port inside.
Regards.
Alain.
05-19-2011 06:30 AM
So it would have to be like this?
216.x.x.x 9156 to 192.168.200.6 9100, since 9100 is the default port for JetDirects.
05-19-2011 08:05 AM
Yep but the other way around: the private side first then the public side
ip nat inside source static tcp 192.168.200.6 9100 216.x.x.x 9156
Regards.
Alain.
05-19-2011 08:32 AM
What would happen if I did this.
ip nat inside source static tcp 192.168.200.6 216.x.x.x 9156
Did not define an inside port.
05-19-2011 09:56 AM
I think this won't work either you specify ports on both( static PAT) or none on both (static NAT) but you can't mix AFAIK.
Regards.
Alain.
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide