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

Cisco Pix 506e Static NAT inbound for http

Being New to PIX, I have a problem... I used the PDM to setup what I thought would work for static nating 4 servers to four external ip adresses on an external 255.255.255.240 sized network

I have the external address set as needed and I can get out ok.. however I cannot get to the web servers that are on the inside of the network.. what do I need to do to get it to work... I have attached the running conf file (with appropriate deletions)  

Thanks

RJ


PIX Version 6.3(3)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password XXXXXX encrypted
passwd XXXXXXXX encrypted
hostname pixfirewall
domain-name ciscopix.com
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
names
name XXXXX(external address2)  pwds1005
name XXXXX pwsd1004
name XXXXX pwvs1003
name XXXXX pwws1002
name XXXXX pwws1001
access-list outside_access_in permit tcp any eq www any eq www
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside (external address) 255.255.255.240
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
pdm location pwws1001 255.255.255.255 outside
pdm location pwws1002 255.255.255.255 outside
pdm location pwvs1003 255.255.255.255 outside
pdm location pwsd1004 255.255.255.255 outside
pdm location pwds1005 255.255.255.255 outside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (outside,inside) 192.168.1.11 pwws1001 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.12 pwws1002 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.13 pwvs1003 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.14 pwsd1004 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.15 pwds1005 netmask 255.255.255.255 0 0
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 66.23.136.17 1
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 RADIUS protocol radius
aaa-server LOCAL protocol local
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
ssh timeout 5
console timeout 0
vpdn username XXXXXX password *********
dhcpd address 192.168.1.200-192.168.1.254 inside
dhcpd dns XXXXXXX
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:10ac121b46b3d07c2a9b41a01acf194e
: end
pixfirewall#
0
rjayres
Asked:
rjayres
  • 6
  • 5
1 Solution
 
lrmooreCommented:
Pretty easy.
Remove this line:
   access-list outside_access_in permit tcp any eq www any eq www
In the above line, the source address must be 80 as well as the destination. The inbound source port is random, while the destination port is fixed to 80.

Replace it with this:
   access-list outside_access_in permit tcp any any eq www


0
 
rjayresAuthor Commented:
ok, replaced the line.. still can't get to any of the four servers pwws1001, etc from their external ip addresses
0
 
lrmooreCommented:
Did you re-apply the acl to the interface?

    re-enter this line:
      access-group outside_access_in in interface outside
0
Prepare for an Exciting Career in Cybersecurity

Help prevent cyber-threats and provide solutions to safeguard our global digital economy. Earn your MS in Cybersecurity. WGU’s MSCSIA degree program curriculum features two internationally recognized certifications from the EC-Council at no additional time or cost.

 
rjayresAuthor Commented:
yes I did.. I did a wr mem... then I rebooted it just to make sure.
0
 
lrmooreCommented:
Condition: You must be attempting connections from somewhere physically outside your network to the public IP. You cannot be using an internal PC simply trying to get to the public IP address with http://<public ip>

Given:
  name A.A.A.A pwds1005
  name A.A.A.B pwsd1004
  name A.A.A.C pwvs1003
  name A.A.A.D pwws1002
  name A.A.A.E pwws1001

Try this instead:
  access-list outside_access_in permit tcp any host A.A.A.A eq www
  access-list outside_access_in permit tcp any host A.A.A.B eq www
  access-list outside_access_in permit tcp any host A.A.A.C eq www
  access-list outside_access_in permit tcp any host A.A.A.D eq www
  access-list outside_access_in permit tcp any host A.A.A.E eq www
   access-group outside_access_in in interface outside

Then, post result of "show access-list"

0
 
rjayresAuthor Commented:
I am outside of the network when I attempt to bring up the site.



pixfirewall(config)# show access-list
access-list cached ACL log flows: total 0, denied 0 (deny-flow-max 1024)
            alert-interval 300
access-list outside_access_in; 6 elements
access-list outside_access_in line 1 permit tcp any any eq www (hitcnt=0)
access-list outside_access_in line 2 permit tcp any host pwws1001 eq www (hitcnt
=0)
access-list outside_access_in line 3 permit tcp any host pwws1002 eq www (hitcnt
=0)
access-list outside_access_in line 4 permit tcp any host pwvs1003 eq www (hitcnt
=0)
access-list outside_access_in line 5 permit tcp any host pwsd1004 eq www (hitcnt
=0)
access-list outside_access_in line 6 permit tcp any host pwds1005 eq www (hitcnt
=0)
pixfirewall(config)#
0
 
lrmooreCommented:
Can I assume that the hosts all point their default gateway to the PIX 192.168.1.1 ?
Can those servers browse out to the Internet OK?
I would assume it to be a routing issue at this point. Either the gateway on the servers is not set correctly, or the ISP is not properly routing to this IP block.
0
 
rjayresAuthor Commented:
the gateway on all hosts is indeed 192.168.1.1, and they can all access the internet, on any and all ports.. tried vpn to someplace else as well as web and terminal services

I will check with the ISP in the morning to see if there are any routing issues on their end
0
 
rjayresAuthor Commented:
Ok.. Checked with the ISP.. they say there is no problem and thats its the pix config.. I can ping the main address of the pix from ourside the network, however I still cannot see the web servers when I type in the (different but configured in the pix and on the same subnet) ip adress for that server.

Any more Ideas?
0
 
lrmooreCommented:
D'OH! I'm an idiot!
Your statics are all backwards --
static (outside,inside) 192.168.1.11 pwws1001 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.12 pwws1002 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.13 pwvs1003 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.14 pwsd1004 netmask 255.255.255.255 0 0
static (outside,inside) 192.168.1.15 pwds1005 netmask 255.255.255.255 0 0

Should be
no static (outside,inside) 192.168.1.11 pwws1001 netmask 255.255.255.255 0 0
no static (outside,inside) 192.168.1.12 pwws1002 netmask 255.255.255.255 0 0
no static (outside,inside) 192.168.1.13 pwvs1003 netmask 255.255.255.255 0 0
no static (outside,inside) 192.168.1.14 pwsd1004 netmask 255.255.255.255 0 0
no static (outside,inside) 192.168.1.15 pwds1005 netmask 255.255.255.255 0 0

static (inside,outside) pwws1001 192.168.1.11  netmask 255.255.255.255 0 0
static (inside,outside) pwws1002 192.168.1.12 netmask 255.255.255.255 0 0
static (inside,outside) pwvs1003 192.168.1.13 netmask 255.255.255.255 0 0
static (inside,outside) pwsd1004 192.168.1.14 netmask 255.255.255.255 0 0
static (inside,outside) pwds1005 192.168.1.15 netmask 255.255.255.255 0 0
0
 
rjayresAuthor Commented:
It works.... oh Yes Indeedee !

Thanks

RJ
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now