• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 406
  • Last Modified:

Problems with static route on PIX 501

I've been given a PIX 501. I have never had to work with one before now, so I am not sure i have the proper syntax.  

I have tried a static route:
static (inside,outside) tcp 10.xxx.xxx.42 netmask 255.255.255
.255 0 0

After entering the route, internet connectivity is lost and PC w/ IP 10.xxx.xxx.42 cannot ping
Any ideas what i am doing wrong? Thanks in advance.
  • 4
  • 3
2 Solutions
Ken BooneNetwork ConsultantCommented:
Well actually that is not a route.  That is a static route assignment.  What that statement says is the following:

take the "internal" ip address of and NAT it on the outside as 10.x.x.x.    So that doesn't route anything.  It would be used to allow devices on the outside to access the inside ip address of  by going to the outside ip address of 10.x.x.x.

So if you want to route the statement looks like this:

route interface x.x.x.x y.y.y.y z.z.z.z

replace interface with the interface that the packet needs to route out.
replace x.x.x.x with the destination network
replace y.y.y.y with the subnet mask of the destination network
replace z.z.z.z with the next hop address to reach the destination.
Ken BooneNetwork ConsultantCommented:
Excuse I said it was a static route assignment.  It is a static NAT assignment. ;)
andrewferrerAuthor Commented:
Should I be able to ping from 10.xxx.xxx.42 and vice-versa? When I add a static route I lose connectivity to the internet from 192.168.51.x devices. Thanks for your help. I'm a router config newbie.

Current setup:
Internet<-->ASA (inside:10.xxx.xxx.201)
      PC------------------------PIX (10.xxx.xxx.24)-outside
(10.xxx.xxx.42)                         (

PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 5RBH8LS encrypted
passwd 2KI.2KYOU encrypted
hostname xxxx-xxx-x
domain-name xxxx
fixup protocol dns maximum-length 512
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol rsh 514
fixup protocol rtsp 554
fixup protocol sip 5060
fixup protocol sip udp 5060
fixup protocol skinny 2000
fixup protocol smtp 25
fixup protocol sqlnet 1521
fixup protocol tftp 69
access-list inside_access_in permit tcp any any
access-list outside_access_in permit tcp any any
route iniside 10.xxx.xxx.42 1
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside dhcp setroute
ip address inside
ip audit info action alarm
ip audit attack action alarm
pdm location 10.xx.xx.0 outside
pdm location inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0 0
access-group inside_access_in in interface inside
timeout xlate 0:05:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 rpc 0:10:00 h225 1:00:00
timeout h323 0:05:00 mgcp 0:05:00 sip 0:30:00 sip_media 0:02:00
timeout uauth 0:05:00 absolute
aaa-server TACACS+ protocol tacacs+
aaa-server TACACS+ max-failed-attempts 3
aaa-server TACACS+ deadtime 10
aaa-server RADIUS protocol radius
aaa-server RADIUS max-failed-attempts 3
aaa-server RADIUS deadtime 10
aaa-server LOCAL protocol local
http server enable
http inside
no snmp-server location
no snmp-server contact
snmp-server community public
snmp-server enable traps
floodguard enable
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address inside
dhcpd dns 10.xxx.xxx.7 10.xxx.xxx.10
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd domain xxxxxxx
dhcpd enable inside
terminal width 80
: end
What Kind of Coding Program is Right for You?

There are many ways to learn to code these days. From coding bootcamps like Flatiron School to online courses to totally free beginner resources. The best way to learn to code depends on many factors, but the most important one is you. See what course is best for you.

Ken BooneNetwork ConsultantCommented:
Ok to start with the PIX is connected to both the 10.x.x.x network on the outside and the 192.168.x.x network on the inside.

So it already has connected routes for those two networks.  That means you can remove this line:

route iniside 10.xxx.xxx.42 1

Secondly you have this configured:

global (outside) 1 interface
nat (inside) 1 0 0

This means that anything on the inside network when passing to the outside network will have its ip address NAT'd to the ip address of the outside interface of the PIX.

Thirdly you have this configured:

access-list inside_access_in permit tcp any any
access-group inside_access_in in interface inside

So what this does is allow all tcp traffic into the inside interface and blocks all other traffic by default.  As in it blocks udp and icmp packets.

So you might want to add this line:

access-list inside_acccess_in permit icmp any any

This will now allow the icmp packets to flow in to the inside interface.

But this still is not where you need to be although it will now let the return ping go through the inside interface.  The problem you face now is that the way the PIX/ASA work is that when you go from a lower security level interface (outside) to a higher security level interface (inside) you need to have a static NAT mapping AND an access-list rule allowing the traffic on the lower level security interface (outside).

So you need this:

static (inside,outside) 10.xxx.xxx.ZZ netmask 0 0

The ZZ is a new ip address assignment that you are going to assign to the  So what this does is makes the look like 10.x.x.ZZ on the outside of the PIX.  So things on the outside will need to talk to the by using the 10.x.x.ZZ ip address.

Lastly you need an access-list applied to the outside interface in order to make this work.  It would look something like this:

access-list outside_access_in permit tcp any 10.x.x.ZZ
access-list outside_access_in permit icmp any 10.x.x.ZZ

access-group outside_access_in in interface outside

Now that will allow any ip address to come in to the outside interface of that pix using TCP or ICMP (Pings) traffic when going to the new 10.x.x.ZZ address which will NAT to the address on the inside.

Hope that helps.

andrewferrerAuthor Commented:
"So you need this:

static (inside,outside) 10.xxx.xxx.ZZ netmask 0 0

The ZZ is a new ip address assignment that you are going to assign to the  So what this does is makes the look like 10.x.x.ZZ on the outside of the PIX.  So things on the outside will need to talk to the by using the 10.x.x.ZZ ip address."

Just to clarify, in the above statement, the "ZZ". Does the "ZZ" have to be the IP of the PC that I am attempting to ping from (10.xxx.xxx.42)? or does "ZZ" refer to a new IP address that I assign from a list of unused IP addresses? Thanks again for your assistance.
Ken BooneNetwork ConsultantCommented:
The ZZ is a new ip address on the 10.x.x network that you will use that is currently unused.
andrewferrerAuthor Commented:
Thank you for your assistance.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

The IT Degree for Career Advancement

Earn your B.S. in Network Operations and Security and become a network and IT security expert. This WGU degree program curriculum was designed with tech-savvy, self-motivated students in mind – allowing you to use your technical expertise, to address real-world business problems.

  • 4
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now