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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Cisco Pix 501 and PCAnywhere - Uggg...

Status
Not open for further replies.

AM54321

Technical User
Sep 30, 2009
10
CA
This is my configuarion.

The machine 192.168.1.5 on the inside, I want to be ablet o connect to this from the outside.

I have copied old code from my old configuration from about 10 years ago, and it is still not working on the outside in.

I am posting my config, can you guys tell me what is wrong and what needs to be taken out.

By the way, in PDM, in, COMMAND LINE INTERFACE, how do I delete lines in the config?

Thanks guys!!!


Building configuration...
: Saved
:
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pixfirewall
domain-name hellothere.com
clock timezone EST -5
clock summer-time EDT recurring
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 192.168.1.5 ats-3
access-list inside_outbound_nat0_acl permit ip any 192.168.1.48 255.255.255.248
access-list acl-out permit udp any host XXX.161.244.226 eq 5631
access-list acl-out permit tcp any host XXX.161.244.226 eq 5632
access-list acl-out permit tcp any host XXX.161.244.226 eq pcanywhere-data
access-list acl-out permit udp any host XXX.161.244.226 eq pcanywhere-status
access-list acl-out deny icmp any any
access-list acl-out permit tcp any host XXX.161.244.226
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside XXX.161.244.226 255.255.255.248
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool VPN 192.168.1.50-192.168.1.52
pdm location 192.168.1.48 255.255.255.248 outside
pdm location ats-3 255.255.255.255 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.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface 5632 ats-3 5632 netmask 255.255.255.255 0 0
static (inside,outside) udp interface 5631 ats-3 5631 netmask 255.255.255.255 0 0
static (inside,outside) udp interface pcanywhere-status ats-3 pcanywhere-status netmask 255.255.255.255 0 0
access-group acl-out in interface outside
route outside 0.0.0.0 0.0.0.0 XXX.161.244.225 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 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
sysopt connection permit-pptp
telnet timeout 5
ssh timeout 5
console timeout 0
vpdn group PPTP-VPDN-GROUP accept dialin pptp
vpdn group PPTP-VPDN-GROUP ppp authentication mschap
vpdn group PPTP-VPDN-GROUP ppp encryption mppe auto
vpdn group PPTP-VPDN-GROUP client configuration address local VPN
vpdn group PPTP-VPDN-GROUP client configuration dns 207.136.100.40 209.148.64.40
vpdn group PPTP-VPDN-GROUP pptp echo 60
vpdn group PPTP-VPDN-GROUP client authentication local
vpdn username alex password *********
vpdn username lesley password *********
vpdn enable outside
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd dns 207.136.100.40 209.148.64.40
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:bfe4e86df5b6b768a60ed39a59d19786
: end
[OK]
 
Connect how? Telnet? SSH? VPN?

/

tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
 
I would be connecting on the outside via regular connection (not through a vpn).
 
You need something like

access-list out-in permit tcp any host XXX.161.244.226 255.255.255.248 eq telnet

access-group out-in in int out

/

tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
 
Those exact lines will work? Sorry I am unable to make sense of most of these lines like you guys... :(
 
Well replace the XXX.

Since you only have 1 IP that you are sharing you could just do this:

access-list out-in permit tcp any any eq telnet

But I'd put the exact line in case someone tries to spoof or something later.
 
Result of firewall command: "access-list out-in permit tcp any host xxx.161.244.226 255.255.255.248 eq telnet"

ERROR: extra command argument(s)
Usage: [no] access-list compiled


The above was the error I rec'd.

Thanks.
 
I just did it on a PIX520, version 6.3

access-list out-in permit tcp any host 192.168.69.11 eq telnet

Post a sh ver and the output of you trying the command,and then the subsequent error please.

/

tim@tim-laptop ~ $ sudo apt-get install windows
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package windows...Thank Goodness!
 
This is the error:

Result of firewall command: "access-list out-in permit tcp any host MYIP.161.244.226 255.255.255.248 eq telnet"

ERROR: extra command argument(s)
Usage: [no] access-list compiled
[no] access-list deny-flow-max <n>
[no] access-list alert-interval <secs>
[no] access-list <id> object-group-search
[no] access-list <id> compiled
[no] access-list <id> [line <line-num>] remark <text>
[no] access-list <id> [line <line-num>] deny|permit
<protocol>|object-group <protocol_obj_grp_id>
<sip> <smask> | interface <if_name> | object-group <network_obj_grp_id>
[<operator> <port> [<port>] | object-group <service_obj_grp_id>]
<dip> <dmask> | interface <if_name> | object-group <network_obj_grp_id>
[<operator> <port> [<port>] | object-group <service_obj_grp_id>]
[log [disable|default] | [<level>] [interval <secs>]]
[no] access-list <id> [line <line-num>] deny|permit icmp
<sip> <smask> | interface <if_name> | object-group <network_obj_grp_id>
<dip> <dmask> | interface <if_name> | object-group <network_obj_grp_id>
[<icmp_type> | object-group <icmp_type_obj_grp_id>]
[log [disable|default] | [<level>] [interval <secs>]]
Restricted ACLs for route-map use:
[no] access-list <id> deny|permit {any | <prefix> <mask> | host <address>}
Command failed

Result of firewall command: "access-group out-in in int out
 
ANd this is my current config:


Building configuration...
: Saved
:
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pixfirewall
domain-name xxxxxx.com
clock timezone EST -5
clock summer-time EDT recurring
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 192.168.1.5 ats-3
access-list inside_outbound_nat0_acl permit ip any 192.168.1.48 255.255.255.248
access-list acl-out permit udp any host xxx.161.244.226 eq 5631
access-list acl-out permit tcp any host xxx.161.244.226 eq 5632
access-list acl-out permit tcp any host xxx.161.244.226 eq pcanywhere-data
access-list acl-out permit udp any host xxx.161.244.226 eq pcanywhere-status
access-list acl-out deny icmp any any
access-list acl-out permit tcp any host xxx.161.244.226
access-list out-in permit tcp any any eq telnet
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 209.161.244.226 255.255.255.248
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool VPN 192.168.1.50-192.168.1.52
pdm location 192.168.1.48 255.255.255.248 outside
pdm location ats-3 255.255.255.255 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.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface 5632 ats-3 5632 netmask 255.255.255.255 0 0
static (inside,outside) udp interface 5631 ats-3 5631 netmask 255.255.255.255 0 0
static (inside,outside) udp interface pcanywhere-status ats-3 pcanywhere-status netmask 255.255.255.255 0 0
access-group out-in in interface outside
route outside 0.0.0.0 0.0.0.0 209.161.244.225 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 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
sysopt connection permit-pptp
telnet timeout 5
ssh timeout 5
console timeout 0
vpdn group PPTP-VPDN-GROUP accept dialin pptp
vpdn group PPTP-VPDN-GROUP ppp authentication mschap
vpdn group PPTP-VPDN-GROUP ppp encryption mppe auto
vpdn group PPTP-VPDN-GROUP client configuration address local VPN
vpdn group PPTP-VPDN-GROUP client configuration dns xxx.136.100.40 xxx.148.64.40
vpdn group PPTP-VPDN-GROUP pptp echo 60
vpdn group PPTP-VPDN-GROUP client authentication local
vpdn username alex password *********
vpdn username lesley password *********
vpdn enable outside
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd dns 207.136.100.40 209.148.64.40
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:1c4ebe02fe12dd69d16b02cd87f0a77f
: end
[OK]
 
A few things to try,

Change the ACL to this -
access-list acl-out permit udp any interface outside eq 5631
access-list acl-out permit tcp any interface outside eq 5632
access-list acl-out permit tcp any interface outside eq pcanywhere-data
access-list acl-out permit udp any interface outside eq pcanywhere-status
access-list acl-out deny icmp any any
access-list acl-out permit tcp any interface outside

Sometimes the ACL must match the static as far as using "interface" or ip.

Disable the nat 0 until you get it working.

Also make sure you are in exec mode and then "conf t" before you make the changes.


Brent
Systems Engineer / Consultant
CCNP, CCSP
 
I appreciate your answer, I am excited to get it working.

I am going through the MULTIPLE LINE COMMAND.

Can you paste what I need to type, as I have no idea and am stuck..

Thanks.
 
Are you using the PDM???

There is a page where you can add ACLs. Do it there. OR- get to the CLI (console cable or telnet to it) and do it there

Login
en
**** password ****
configure terminal
**** do yuor commands ****

Brent
Systems Engineer / Consultant
CCNP, CCSP
 
This is seriously the most frustrating computer thing I have done.

I have entered those lines in Command Line Interface through PDM and these are the lines that are IGNORED.

access-list acl-out permit udp any interface outside eq 5631
access-list out-in permit tcp any any eq telnet


I can't believe it could be so hard to enable PC Anywhere..

I need some help. I am going to repost my complete running config:




Building configuration...
: Saved
:
PIX Version 6.3(4)
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password 8Ry2YjIyt7RRXU24 encrypted
passwd 2KFQnbNIdI.2KYOU encrypted
hostname pixfirewall
domain-name XXXXX.com
clock timezone EST -5
clock summer-time EDT recurring
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 192.168.1.5 ats-3
access-list inside_outbound_nat0_acl permit ip any 192.168.1.48 255.255.255.248
access-list acl-out permit udp any interface outside eq 5631
access-list acl-out permit tcp any interface outside eq 5632
access-list acl-out permit tcp any interface outside eq pcanywhere-data
access-list acl-out permit udp any interface outside eq pcanywhere-status
access-list acl-out deny icmp any any
access-list acl-out permit tcp any interface outside
access-list out-in permit tcp any any eq telnet
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 209.161.244.226 255.255.255.248
ip address inside 192.168.1.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool VPN 192.168.1.50-192.168.1.52
pdm location 192.168.1.48 255.255.255.248 outside
pdm location ats-3 255.255.255.255 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.0.0 0.0.0.0 0 0
static (inside,outside) tcp interface 5632 ats-3 5632 netmask 255.255.255.255 0 0
static (inside,outside) udp interface 5631 ats-3 5631 netmask 255.255.255.255 0 0
static (inside,outside) udp interface pcanywhere-status ats-3 pcanywhere-status netmask 255.255.255.255 0 0
route outside 0.0.0.0 0.0.0.0 209.161.244.225 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 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
sysopt connection permit-pptp
telnet timeout 5
ssh timeout 5
console timeout 0
vpdn group PPTP-VPDN-GROUP accept dialin pptp
vpdn group PPTP-VPDN-GROUP ppp authentication mschap
vpdn group PPTP-VPDN-GROUP ppp encryption mppe auto
vpdn group PPTP-VPDN-GROUP client configuration address local VPN
vpdn group PPTP-VPDN-GROUP client configuration dns 207.136.100.40 209.148.64.40
vpdn group PPTP-VPDN-GROUP pptp echo 60
vpdn group PPTP-VPDN-GROUP client authentication local
vpdn username alex password *********
vpdn username lesley password *********
vpdn enable outside
dhcpd address 192.168.1.2-192.168.1.33 inside
dhcpd dns 207.136.100.40 209.148.64.40
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
dhcpd enable inside
terminal width 80
Cryptochecksum:9415b752efbc80c3a2c98db41403435a
: end
[OK]
 
You need to bind the ACL to the interface. Add

access-group acl-out in interface outside

That should do it.

You will want to make your VPN pool an entirely different subnet from your internal network (and any default ips 192.168.0.x, 192.168.1.x, 192.168.10.x, 192.168.100.x, etc.)


Brent
Systems Engineer / Consultant
CCNP, CCSP
 
I added the command.

And now in PDM it states that these command are ignored by PDM:


access-list acl-out permit udp any interface outside eq 5631
access-list acl-out permit tcp any interface outside eq 5632
access-list acl-out permit tcp any interface outside eq pcanywhere-data
access-list acl-out permit udp any interface outside eq pcanywhere-status
access-list acl-out deny icmp any any
access-list acl-out permit tcp any interface outside
access-list out-in permit tcp any any eq telnet
 
I want to thank Supergrrover, burtsbees and nosebreaker for all your help..

It worked.. I am very happy.

THANKS ALOT GUYS!!!!!
 
glad it finally worked!

Brent
Systems Engineer / Consultant
CCNP, CCSP
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top