12-20-2006 11:02 AM - edited 03-11-2019 02:11 AM
I'm using a PIX 501 and need to turn on some tcp ports. I need to open ports 80, 443, 25, 110 and 3389. I also need to do one to one ip address translation and then be able to verify it. Any help would be greatly appreciated.
12-20-2006 01:04 PM
Here is a setup with a dynmaic IP for the outside interface.
Replace the 192.168.1.x by the internal servers or workstations real IP address.
access-list acl_out permit tcp any interface outside eq http
access-list acl_out permit tcp any interface outside eq 443
access-list acl_out permit tcp any interface outside eq 25
access-list acl_out permit tcp any interface outside eq 110
access-list acl_out permit tcp any interface outside eq 3389
access-group acl_out in interface outside
static (inside,outside) tcp interface http 192.168.1.x http netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 3389 192.168.1.x 3389 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 110 192.168.1.x 110 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 443 192.168.1.x 443 netmask 255.255.255.255 0 0
static (inside,outside) tcp interface 25 192.168.1.x 25 netmask 255.255.255.255 0 0
clear xlate
Let me know if your are looking for an example with a static public IP (NAT) my example is with Port Adress Translation (PAT).
Reference:
sincerely
Patrick
12-20-2006 01:34 PM
I presume you need to allow access to the TCP ports mentioned in your post, if so, here is the configuration.
Access list applied to the outside interface of the PIX for the relevant TCP ports:
access-list outside_in permit tcp any host
access-list outside_in permit tcp any host
access-list outside_in permit tcp any host
access-list outside_in permit tcp any host
access-list outside_in permit tcp any host
access-group outside_in in interface outside
Now we need to translate those TCP services to your internal server by using port static translation.
static (inside,outside) tcp
static (inside,outside) tcp
static (inside,outside) tcp
static (inside,outside) tcp
255.255.255.255 0 0
Static (inside,outside) tcp
If you only have one public IP address available to you then you can use the keyword ?interface? within your static translation i.e.
static (inside,outside) tcp interface 25
Also, make sure that your mail MX record corresponds to the correct public IP address that you have on your outside access-list for mail.
Of course, all of the above is configured in configuration mode and make sure that you save with: write mem and also issue: clear xlate
Please rate posts if it helps,
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