Hi,
The basic format in CLI is this
static (inside,outside) tcp interface 88 88 netmask 255.255.255.255
static (inside,outside) tcp interface 5445 5445 netmask 255.255.255.255
access-list OUTSIDE-IN permit tcp any host eq 88
access-list OUTSIDE-IN permit tcp any host eq 5445
access-group OUTSIDE-IN in interface outside
The above ofcourse presumes that
- Your interfaces are called "inside" and "outside"
- The LAN host is located behind "inside" interface
- The public IP address used will be that of the "outside" interface
- We are only forwarding TCP ports (for UDP just change the "tcp" -> "udp" naturally)
- You dont have an ACL created and attached to the "outside" interface yet (if you have, you use the existing ACL)
Hope this helps
Let us know if you need more information and maybe provide the current configuration for more specific suggestions on the configurations to be added
If this answered your question, please remember to mark the reply as the correct answer
- Jouni