cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
848
Views
0
Helpful
1
Replies

configure static NAT in FWSM

mylove142
Level 1
Level 1

Hi all,

I use FWSM and now I want to configure static NAT in FWSM:

Diagram:

Webserver : 192.0.2.6/32 , interface: inside

NAT IP : 202.78.x.x /32 , interface: outside

I want to configuse static NAT from Webserver to IP Puplic and everyone can connect to Webserver with Service Any.

I only configure :

nameif vlan2 inside security100

access-list INSIDE extended permit ip 192.0.2.0 255.255.255.0 any

access-list acl_mdc_inside_access extended permit ip object-group any

ip address inside 192.0.2.x 255.255.255.0 standby 192.0.2.x

nat (inside) 0 access-list INSIDE

access-group acl_mdc_inside_access in interface inside

static (inside, outside) 202.78.x.x 192.0.2.6 netmask 255.255.255.255

I must configure access-list and routing?

If you need more information, please ask me.

Thank you very much!

Duy Khang

1 Reply 1

JORGE RODRIGUEZ
Level 10
Level 10

Duy, you have to configure static nat which you already have in script, access-list to allow inbound traffic and apply acl to outside interface. Don't have to configure routing unless this is new PIX fwsm setup, if it is new setup you need to configure global nat and default route to access outside internet. Is outside interface the only public IP address you have for NAT?

e.g, if you are using spare public IP address for webserver NAT config would look as:

static (inside,outside) 202.78.x.x 192.0.2.6 netmask 255.255.255.255

access-list outside_access_in permit tcp any host 202.78.x.x

access-group outside_access_in in interface outside

if using outside pix interface IP address as your NAT/PAT address static should be as:

static (inside,outside) interface 192.0.2.6 netmask 255.255.255.255

access-list outside_access_in permit tcp any host 202.78.x.x

access-group outside_access_in in interface outside

to configuire glonal nat

global (oustide) 1 interface

to configure default route

route outside 0 0 x.x.x.x 1

where x is ISP router and 1 is next hop.

HTH

Jorge

Jorge Rodriguez
Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:

Review Cisco Networking products for a $25 gift card