Link to home
Start Free TrialLog in
Avatar of TrevorWatson
TrevorWatsonFlag for United Kingdom of Great Britain and Northern Ireland

asked on

Cisco PIX 506 outside access to a machine

This has probably been asked before, but I have'nt been able to find a definitive answer.

I have requirement to access a machine inside our network from outside via the internet.

We have a Cisco PIX 506 on 6.3(5) and PDM 3.0(4) on a line with a range of static IP addresses.

It sits on an outside IP address of x.y.z.42 with the router being x.y.z.41. The inside machine is a.b.c.202 and should respond to ports 4580 and 4599.

If I want to use x.y.z.43 for the outside access to a.b.c.202, what series of commands are required on the PIX?

The inside internet access and outside VPN all work perfectly at present.

Avatar of Istvan Kalmar
Istvan Kalmar
Flag of Hungary image

Please show the wqhole config and we tell you the lines that you need!

Please refer this guide howto:
Avatar of TrevorWatson


OK here's the config, there is a load stuff in there from some old static VPNs. The last time I tried to remove them them firewall crashed!

Result of firewall command: "sho run"
: Saved
PIX Version 6.3(5)
interface ethernet0 auto
interface ethernet1 auto
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password ******** encrypted
passwd ******** encrypted
hostname pixfirewall
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
name turnhill
name kingslynn
access-list inside_outbound_nat0_acl permit ip any
access-list inside_outbound_nat0_acl permit ip turnhill
access-list inside_outbound_nat0_acl permit ip kingslynn turnhill
access-list inside_outbound_nat0_acl permit ip any
access-list outside_cryptomap_dyn_20 permit ip any
access-list outside_cryptomap_20 permit ip turnhill
access-list outside_cryptomap_20 permit ip kingslynn turnhill
access-list inside_access_in permit ip turnhill
access-list inside_access_in permit icmp any any
access-list inside_access_in permit ip any
access-list outside_access_in permit ip turnhill
access-list outside_access_in permit icmp any any
access-list outside_access_in permit ip turnhill kingslynn
access-list outside_access_in permit ip host host
access-list outside_cryptomap_dyn_40 permit ip any
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside
ip address inside
ip audit info action alarm
ip audit attack action alarm
ip local pool excell
ip local pool rcvpn
pdm location turnhill outside
pdm location kingslynn inside
pdm location inside
pdm location outside
pdm location outside
pdm location inside
pdm location inside
pdm logging informational 100
pdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_outbound_nat0_acl
nat (inside) 1 0 0
static (inside,outside) kingslynn kingslynn netmask 0 0
static (inside,outside) netmask 0 0
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
route outside 1
route inside kingslynn 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 sip-disconnect 0:02:00 sip-invite 0:03: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 outside
http inside
http 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 ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto dynamic-map outside_dyn_map 20 match address outside_cryptomap_dyn_20
crypto dynamic-map outside_dyn_map 20 set transform-set ESP-3DES-MD5
crypto dynamic-map outside_dyn_map 40 match address outside_cryptomap_dyn_40
crypto dynamic-map outside_dyn_map 40 set transform-set ESP-AES-256-MD5
crypto map outside_map 20 ipsec-isakmp
crypto map outside_map 20 match address outside_cryptomap_20
crypto map outside_map 20 set peer
crypto map outside_map 20 set transform-set ESP-3DES-MD5
crypto map outside_map 65535 ipsec-isakmp dynamic outside_dyn_map
crypto map outside_map client authentication LOCAL
crypto map outside_map interface outside
isakmp enable outside
isakmp key ******** address netmask no-xauth no-config-mode
isakmp identity address
isakmp nat-traversal 20
isakmp policy 20 authentication pre-share
isakmp policy 20 encryption 3des
isakmp policy 20 hash md5
isakmp policy 20 group 2
isakmp policy 20 lifetime 86400
isakmp policy 40 authentication pre-share
isakmp policy 40 encryption aes-256
isakmp policy 40 hash md5
isakmp policy 40 group 2
isakmp policy 40 lifetime 86400
vpngroup xlruvpn address-pool excell
vpngroup xlruvpn idle-time 1800
vpngroup xlruvpn password ********
vpngroup RemoteClient address-pool rcvpn
vpngroup RemoteClient dns-server
vpngroup RemoteClient wins-server
vpngroup RemoteClient default-domain
vpngroup RemoteClient idle-time 1800
vpngroup RemoteClient password ********
telnet outside
telnet inside
telnet inside
telnet timeout 5
ssh timeout 5
management-access inside
console timeout 0
username trevorw password ********* encrypted privilege 5
username iane password ********* encrypted privilege 5
username chrisg password ********* encrypted privilege 5
terminal width 80
: end


The config seems good, the follwing that enable proxy arp need:

sysopt noproxarp outside
Thanks for that.
I tried the command, then write mem and a reload. However still no joy.
The machine is a video monitoring device listening on ports 4580 and 4599. It works fine from inside the network, but we need an external alarm company to have access.
I can ping from outside but cannot (say) telnet to it.
I must be missing something simple here.
only this source address allowed from outside:

access-list outside_access_in permit ip host host
Yes that would be what I am trying to achieve. With that address visible outside, routing through to which is the machine I want to 'hit'. Preferrably on ports 4580 and 4599, but anything for the moment!
what shows the log?
I get :
date time 106023: Deny tcp src dst by access-group "outside_access_in"

I know was my testing source ip address. Interestingly I also have the same message from an 'unknown' source ipaddress. Someone else following this thread?
but you entered x.x.x.43:
access-list outside_access_in permit ip host host

you need :
access-list outside_access_in permit ip host x.x.x.243 host
and CTRL Z
clear xlate
Please remember I'm a real beginner on PIX's, but I think the light has come on.
The x.x.x.243 address was the machine I was using to 'probe' my firewall. In the future I will not know the address(es) of the machines that will access in.
Should the command read something like :
access-list outside_access_in permit ip host any host eq 4580
access-list outside_access_in permit ip host any host eq 4599
Avatar of nkwizz
Flag of United Kingdom of Great Britain and Northern Ireland image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks to ikalmar and nkwizz.

The PIX is functioning as required, although it appeared to hang up overnight and required a power off to reset it. Not surprising bearing in mind how much futzing around I've been doing!
Although a solution that would work I implemeted a service group for the two ports to simplify the access-list.

Mi comment is aloso good: ID: 26600938, but i didn't cath points:(