Solved

how i can forward some port to IP address (in pix 525)

Posted on 2007-03-23
4
334 Views
Last Modified: 2013-11-16
hi
how i can forward some port to IP address
i wnat to forword port 80,110,25 to ip 172.16.110.2 (and i want to use static nat)
is the below command true

X.X.X.X = public ip
static (inside,outside) X.X.X.X 172.16.110.2 netmask 255.255.255.255 0 0
access-list OutsideIn permit tcp any host X.X.X.X eq www                                                            
access-list OutsideIn permit tcp any host X.X.X.X eq smtp                                                            
access-list OutsideIn permit tcp any host X.X.X.X eq pop3      

thanks                                                




0
Comment
Question by:nasemabdullaa
  • 2
  • 2
4 Comments
 
LVL 28

Assisted Solution

by:batry_boy
batry_boy earned 125 total points
ID: 18780579
Do this:

static (inside,outside) tcp x.x.x.x www 172.16.110.2 www netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x smtp 172.16.110.2 smtp netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x pop3 172.16.110.2 pop3 netmask 255.255.255.255

Your access list statements look fine.  Remember to apply the access list to the interface:

access-group OutsideIn in interface outside

Hope this helps...
0
 

Author Comment

by:nasemabdullaa
ID: 18780672
hi
thanks for your reply
you mean the command must be like this

static (inside,outside) X.X.X.X 172.16.110.2 netmask 255.255.255.255 0 0
static (inside,outside) tcp x.x.x.x www 172.16.110.2 www netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x smtp 172.16.110.2 smtp netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x pop3 172.16.110.2 pop3 netmask 255.255.255.255
access-list OutsideIn permit tcp any host X.X.X.X eq www                                                            
access-list OutsideIn permit tcp any host X.X.X.X eq smtp                                                            
access-list OutsideIn permit tcp any host X.X.X.X eq pop3      
access-group OutsideIn in interface outside

is that true or not

thanks
0
 
LVL 28

Accepted Solution

by:
batry_boy earned 125 total points
ID: 18780739
Well, not exactly.

The first static in your above post:

static (inside,outside) X.X.X.X 172.16.110.2 netmask 255.255.255.255 0 0

would cause ALL ports to be forwarded from x.x.x.x to 172.16.110.2.  You stated in your initial question that you wanted to forward 3 ports (smtp, pop3, and www) to 172.16.110.2.  I thought you meant you wanted to use port redirection such that only those 3 ports would be forwarded to the internal host.  If what you meant is that you want to only ALLOW those 3 ports inbound, but translate ALL ports, then your first static is all you would need and you can get rid of the last 3 statics.  Does that make sense?

In other words, the following commands are pointless if the first static is also in there:

static (inside,outside) tcp x.x.x.x www 172.16.110.2 www netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x smtp 172.16.110.2 smtp netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x pop3 172.16.110.2 pop3 netmask 255.255.255.255

So, to do what you want you only need this one static:

static (inside,outside) X.X.X.X 172.16.110.2 netmask 255.255.255.255 0 0

or these 3 statics, but not both sets of commands:

static (inside,outside) tcp x.x.x.x www 172.16.110.2 www netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x smtp 172.16.110.2 smtp netmask 255.255.255.255
static (inside,outside) tcp x.x.x.x pop3 172.16.110.2 pop3 netmask 255.255.255.255

Having said this, you will still need the access list statements as they are.  Please let me know if I need to clarify.
0
 

Author Comment

by:nasemabdullaa
ID: 18780773
thanks
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
EIGRP Configuration 2 46
How to set DHCPv6 options on a Sonicwall? 13 79
Adding VPN user with Cisco RV110W changes IP address 7 25
network error 8 34
Quality of Service (QoS) options are nearly endless when it comes to networks today. This article is merely one example of how it can be handled in a hub-n-spoke design using a 3-tier configuration.
Use of TCL script on Cisco devices:  - create file and merge it with running configuration to apply configuration changes
Both in life and business – not all partnerships are created equal. As the demand for cloud services increases, so do the number of self-proclaimed cloud partners. Asking the right questions up front in the partnership, will enable both parties …
Both in life and business – not all partnerships are created equal. Spend 30 short minutes with us to learn:   • Key questions to ask when considering a partnership to accelerate your business into the cloud • Pitfalls and mistakes other partners…

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now