Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

website not viewable behind Cisco pix 501

Status
Not open for further replies.

BobKing123

Technical User
Joined
Mar 4, 2007
Messages
4
Location
US
I am relatively new to programming this unit so please forgive me if I have made some basic mistakes.

My issue is that everything that I need to function (VPN, pcanywhere access, basic firewall) is working except this last item. I have a web server that sits behind the pix 501 on the internal network. I can access it just fine from the internet by typing in the static ip for the outside interface of the pix. However I used to be able to access it in exactly the same way from the internal network as well, before I removed the Linksys router (was blocking my VPN) that used to sit between the pix and the cable modem. Now the one thing that I have changed is that the static outside interface IP in the pix used to be in the Linksys router. How can I set up the pix so that it will let me do this again? I have included my config below. Any help would be appreciated. Thanks.


PIX Version 6.3(4)
interface ethernet0 100full
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password xxxxxxxx encrypted
passwd xxxxxxxx encrypted
hostname pixfirewall
domain-name ciscopix.com
fixup protocol dns
fixup protocol ftp 21
fixup protocol h323 h225 1720
fixup protocol h323 ras 1718-1719
fixup protocol http 80
fixup protocol icmp error
fixup protocol pptp 1723
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
access-list no_nat permit ip [inside ip scheme] [vpn ip scheme]
access-list inbound permit icmp any any
access-list inbound permit tcp any host [outside ip]
pager lines 24
logging on
logging buffered debugging
mtu outside 1500
mtu inside 1500
ip address outside [outside ip] 255.255.255.0
ip address inside [inside ip] 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool vpnpool [vpn ip pool]
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list no_nat
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
static (inside,outside) tcp [outside ip] www [web server] 255.255.255.255 0 0
static (inside,outside) tcp [outside ip] pcanywhere-data [pca gateway] pcanywhere-data netmask 255.255.255.255 0 0
static (inside,outside) udp [outside ip] pcanywhere-status [pca gateway] pcanywhere-status netmask 255.255.255.255 0 0
access-group inbound in interface outside
route outside 0.0.0.0 0.0.0.0 [outside gateway] 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 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 ip scheme] inside
no snmp-server location
no snmp-server contact
snmp-server community public
no snmp-server enable traps
floodguard enable
sysopt connection permit-ipsec
crypto ipsec transform-set myset esp-aes-256 esp-md5-hmac
crypto dynamic-map dynmap 10 set transform-set myset
crypto map mymap 10 ipsec-isakmp dynamic dynmap
crypto map mymap interface outside
isakmp enable outside
isakmp identity address
isakmp nat-traversal 20
isakmp policy 10 authentication pre-share
isakmp policy 10 encryption aes-256
isakmp policy 10 hash md5
isakmp policy 10 group 2
isakmp policy 10 lifetime 86400
vpngroup [vpn_group] address-pool vpnpool
vpngroup [vpn_group] dns-server [outside dns 1]
vpngroup [vpn_group] default-domain ciscopix.com
vpngroup [vpn_group] split-tunnel no_nat
vpngroup [vpn_group] idle-time 1800
vpngroup [vpn_group] password ********
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd address [inside ip pool] inside
dhcpd dns [outside dns 1] [outside dns 2]
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
 
So you want to access the website from its public IP when you are located on the inside?

That is denied by default. You can either use destination nat (dnat ).

Or as i would do setup a internal dns server and use A records instead of ip numbers.
 
At this time setting up a DNS server is not an option. I will need to figure out some other way. There must be a way to do this using the pix. I have done some searching on dnat but everything seems to be old. Does anyone have any examples of this command or a different method? Thanks.
 
Try dnat ( alias command, it will do this for you )
 
The alias command is actually one of the first things that I tried. However the PIX OS version (6.3(4)) that I have does not support the alias command. Thats what I meant earlier by saying that everything seemed to be old about that command.
 
Strange, because i have one pix with 6.34 and it supports the alias command. I am pretty sure it works when configuring dnat

DNS doctoring on the other hand is another question
 
I tried both the alias and the dns doctoring method's and I can't seem to get them to work. Here is the way that I used them.

Alias statement: alias [web server][outside ip]255.255.255.255

DNS doctoring statement: static (inside,outside) tcp [outside ip] www [web server] netmask 255.255.255.255 0 0

I believe that the DNS doctoring doesn't work because I only reference the internal website by the outside static IP address. I don't really have it registered with a domain name.

This idea of using just the static IP used to work fine before except that the VPN would never get through the Linksys router. Once I removed it then the VPN worked great. I had the IPSec enabled in the router but it never worked so I took it out. Does anyone have any additional ideas about how to set up the router if I have to go back that way?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top