03-30-2020 12:05 PM - edited 03-30-2020 12:07 PM
I was wondering if I can combine these two commands into only one command? if it's even possible
essentially I just need to redirect one port and everything else doesn't need redirection just being forwarded
object network PRTG_RDP host x.x.x.240 nat (INSIDE,OUTSIDE) static y.y.y.133 service tcp 3389 52520 object network PRTG_SERVER host x.x.x.240 Nat (INSIDE,OUTSIDE) after-auto source static y.y.y.133
tthx
Solved! Go to Solution.
03-30-2020 01:26 PM
If you are dead set on redirecting port 52520 then you must have two NAT rules. There is no way around this.
03-30-2020 12:54 PM
You could NAT all ports to the server.
object network PRTG_RDP host x.x.x.240 nat (INSIDE,OUTSIDE) static y.y.y.133
Then all you need to do is to add access rules to allow traffic to the server on the desired ports.
03-30-2020 01:16 PM - edited 03-30-2020 01:17 PM
But I put over there I was looking to redirect it only for one port(RDP)(from 52520 to RDP)
03-30-2020 01:26 PM
If you are dead set on redirecting port 52520 then you must have two NAT rules. There is no way around this.
03-31-2020 12:41 AM
Hi,
1. Your first NAT configuration, is correct, you're doing static PAT via object-NAT, for TCP port 3389. As long as your security-levels and configured ACL's allow this traffic, is gonna work.
2. Your second NAT configuration is NOT correct, you define an object but afterwards you configure static NAT via twice-NAT, which is globally configured, not under the object, and the statement is incomplete, you have only specified the real source, but not the mapped one.
What is it that you're trying to achieve?
Regards,
Cristian Matei.
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