VPN's and port forwarding

Soldato
Joined
18 Oct 2002
Posts
5,804
Location
Liverpool :-)
hi all,

I've been setting up an old pix 501 for use with my lab environment, I've updated it to 6.3.5(145) and all is working well, internet connection, access rules etc.

My setup is like this, nothing fancy, just at home.

internets -> netgear router --> pix --> lab bits and pieces

I set up a ipsec vpn last night, i've forwarded udp/500, udp/4500 and ip 50 and 51 to the outside interface of the pix and It connects and authenticates fine when I'm connected via 3g, but I then can't RDP onto anything.

If I connect to my wireless network on the netgear router, vpn to the outside interface of the pix, it connects and I can RDP fine.

Am I missing a port to forward? I've tried adding 3389 just to be sure and it made no difference, anyone got any ideas?
 
I will do when I get a chance, but I wouldn't of thought it would have been anything to do with the config as I can connect/rdp internally but not from outside?
 
Chances are something odd is going on and it will be a config issue; but without it nobody on here can answer as its purely guesswork

- GP
 
Good point :)

PIX Version 6.3(5)145
interface ethernet0 auto
interface ethernet1 100full
nameif ethernet0 outside security0
nameif ethernet1 inside security100
enable password ** encrypted
passwd ** encrypted
hostname test
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
access-list outbound permit tcp any any eq https
access-list outbound permit tcp any any eq www
access-list outbound permit udp any any eq domain
access-list inside_outbound_nat0_acl permit ip 192.168.100.0 255.255.255.0 192.168.100.0 255.255.255.192
access-list outside_cryptomap_dyn_20 permit ip any 192.168.100.0 255.255.255.192
pager lines 24
mtu outside 1500
mtu inside 1500
ip address outside 192.168.1.190 255.255.255.0
ip address inside 192.168.100.1 255.255.255.0
ip audit info action alarm
ip audit attack action alarm
ip local pool VPN-POOL 192.168.100.30-192.168.100.35
failover timeout 0:00:00
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 192.168.100.0 255.255.255.0 0 0
nat (inside) 1 0.0.0.0 0.0.0.0 0 0
access-group outbound in interface inside
route outside 0.0.0.0 0.0.0.0 192.168.1.1 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 192.168.100.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-ipsec
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-3DES-MD5 esp-3des 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-AES-256-SHA
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 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
vpngroup Test1 address-pool VPN-POOL
vpngroup Test1 dns-server 192.168.100.202
vpngroup Test1 default-domain test
vpngroup Test1 idle-time 1800
vpngroup Test1 password ********
telnet timeout 5
ssh timeout 5
console timeout 0
dhcpd lease 3600
dhcpd ping_timeout 750
dhcpd auto_config outside
username test password ** encrypted privilege 15
terminal width 80
: end
 
Last edited:
What's the IP address of your server, 192.168.100.202? You would probably be best having a different pool of addresses for the VPN, and one of those entries for the nat (inside) 1 can be removed. I take it you can't ping it by IP either? When the client connects can you ping it from the server?

- GP
 
Last edited:
202 is the server, no I can't ping. Still makes no sense why I can connect internally to the outside interface, but not externally.

Thanks Iaind, is that the encrypted form of the passwords?
 
In the VPN client do you have "allow local lan access" ticked? It maybe be going locally rather than over the VPN. Swap the VPN pool over to, say, 10.0.0.0/24. Add a permit ICMP statement to your ACLs for testing and fixup protocol icmp

- GP
 
Nope, have it separate. I have on or two clients with the pool on the same subnet as the local lan but they are on newer ASAs running 8.2(x)+. Bit rusty on PIXos as only have one client left using it and mine is in storage. Definitely change it over though. Don't forget to amend the no-nat.

- GP
 
Agreed, the VPN pool should be separate.

Encrypted passwords can be decrypted with free tools, safest to blank them out
 
Thanks, I will next time, it doesnt matter too much as it's only a test with random passwords at the moment. I'll be more careful in the future.
 
Update on this little problem, I changed the vpn pool to a different range and it's still the same. I setup a syslog server on ubuntu tonight so I do have some logs to go through, hopefully that might point me in a direction to solve the problem.

It's doing my nut in :) I probably wont really use it, but I want to get it working now out of prinicple :)

The outbound access list name was me, anything to do with the vpn was down to the wizard in the pdm.
 
Last edited:
Forgot about this...can you post the new config after you made the changes?

Also, when the VPN is up and you're connected, try to RDP to the server, then run the commands

sh cry ips sa det
sh xlate

And paste the output here

- GP
 
Last edited:
Back
Top Bottom