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 VPN Probelm

Status
Not open for further replies.

jaguarrt

Programmer
Mar 6, 2006
1
US
I have setup a cisco 1711 router at my office. I have forwarded 2 ports to a linux box.

ip nat inside source static tcp 10.0.0.107 143 interface FastEthernet0 143
ip nat inside source static tcp 10.0.0.62 22 interface FastEthernet0 22

Every time I connect through vpn from outside, somehow the port forwarding stops working after that and I cannot connect to the above ports. I have to disconnect the vpn and retype the above statments to make it work again.

Since I am newbie any help would be great. I have pasted my conf file below

Current configuration : 8098 bytes
!
version 12.3
no service pad
service tcp-keepalives-in
service tcp-keepalives-out
service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
service password-encryption
service compress-config
service sequence-numbers
!
hostname cisco
!
boot-start-marker
boot-end-marker
!
security authentication failure rate 3 log
security passwords min-length 7
logging buffered 51200 debugging
logging console critical
enable secret 5 zzzzzzzzzz
!
username test privilege 15 secret zzzzzzzzzz

clock timezone PCTime -8
clock summer-time PCTime date Apr 6 2003 2:00 Oct 26 2003 2:00
mmi polling-interval 60
no mmi auto-configure
no mmi pvc
mmi snmp-timeout 180
aaa new-model
!
!
aaa authentication login default local
aaa authentication login sdm_vpn_xauth_ml_1 local
aaa authentication login sdm_vpn_xauth_ml_2 local
aaa authorization exec default local
aaa authorization network sdm_vpn_group_ml_1 local
aaa authorization network sdm_vpn_group_ml_2 local
aaa session-id common
ip subnet-zero
no ip source-route
!
!
ip dhcp excluded-address 10.0.0.1 10.0.0.149
ip dhcp excluded-address 10.0.0.201 10.255.255.254
!
ip dhcp pool ipool
import all
network 10.0.0.0 255.0.0.0
default-router 10.0.0.1
dns-server x.x.x.x x.x.x.x
!
!
ip domain name dataworks-ed.com
ip name-server 4.2.2.4
no ip bootp server
ip cef
ip inspect name DEFAULT100 cuseeme
ip inspect name DEFAULT100 ftp
ip inspect name DEFAULT100 h323
ip inspect name DEFAULT100 netshow
ip inspect name DEFAULT100 rcmd
ip inspect name DEFAULT100 realaudio
ip inspect name DEFAULT100 rtsp
ip inspect name DEFAULT100 smtp
ip inspect name DEFAULT100 sqlnet
ip inspect name DEFAULT100 streamworks
ip inspect name DEFAULT100 tftp
ip inspect name DEFAULT100 tcp
ip inspect name DEFAULT100 udp
ip inspect name DEFAULT100 vdolive
ip inspect name DEFAULT100 icmp
ip ids po max-events 100
ip ssh time-out 60
ip ssh authentication-retries 2
no ftp-server write-enable
!
!
!
!
!
!
crypto isakmp policy 1
encr 3des
authentication pre-share
group 2
!
crypto isakmp client configuration group ciscogroup
key zzzzzzzz
dns x.x.x.x x.x.x.x
wins x.x.x.x x.x.x.x
pool SDM_POOL_1
acl 100
!
!
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set ESP-3DES-SHA1 esp-3des esp-sha-hmac
!
crypto dynamic-map SDM_DYNMAP_1 1
set transform-set ESP-3DES-SHA
reverse-route
!
!
crypto map SDM_CMAP_1 client authentication list sdm_vpn_xauth_ml_1
crypto map SDM_CMAP_1 isakmp authorization list sdm_vpn_group_ml_1
crypto map SDM_CMAP_1 client configuration address initiate
crypto map SDM_CMAP_1 client configuration address respond
crypto map SDM_CMAP_1 65535 ipsec-isakmp dynamic SDM_DYNMAP_1
!
!
!
interface Null0
no ip unreachables
!
interface FastEthernet0
description $ETH-WAN$$FW_OUTSIDE$
ip address y.y.y.y 255.255.255.0
ip access-group 112 in
ip verify unicast reverse-path
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat outside
ip inspect DEFAULT100 out
ip virtual-reassembly
ip route-cache flow
duplex auto
speed auto
no cdp enable
crypto map SDM_CMAP_1
!
interface FastEthernet1
no ip address
no cdp enable
!
interface FastEthernet2
no ip address
no cdp enable
!
interface FastEthernet3
no ip address
no cdp enable
!
interface FastEthernet4
no ip address
no cdp enable
!
interface Vlan1
description $FW_INSIDE$
ip address 10.0.0.1 255.0.0.0
no ip redirects
no ip unreachables
no ip proxy-arp
ip nat inside
ip virtual-reassembly
ip route-cache flow
ip tcp adjust-mss 1452
!
interface Async1
no ip address
no ip redirects
no ip unreachables
no ip proxy-arp
!
ip local pool SDM_POOL_1 172.16.224.1 172.16.224.5
ip default-gateway 10.0.0.1
ip classless
ip route 0.0.0.0 0.0.0.0 x.x.x.x
ip http server
ip http authentication local
no ip http secure-server
ip nat inside source static tcp 10.0.0.107 143 interface FastEthernet0 143
ip nat inside source route-map SDM_RMAP_1 interface FastEthernet0 overload
ip nat inside source static tcp 10.0.0.62 22 interface FastEthernet0 22
!
!
!
access-list 1 remark SDM_ACL Category=16
access-list 1 permit 10.0.0.0 0.255.255.255
access-list 2 remark HTTP Access-class list
access-list 2 remark SDM_ACL Category=1
access-list 2 permit 10.0.0.0 0.255.255.255
access-list 2 permit 172.16.224.0 0.0.0.255
access-list 100 remark SDM_ACL Category=4
access-list 100 permit ip 172.16.224.0 0.0.0.255 any
access-list 100 permit ip 10.0.0.0 0.255.255.255 172.16.224.0 0.0.0.255
access-list 101 remark SDM_ACL Category=2
access-list 101 deny ip 172.16.224.0 0.0.0.255 host 172.16.224.1
access-list 101 deny ip 172.16.224.0 0.0.0.255 host 172.16.224.2
access-list 101 deny ip 172.16.224.0 0.0.0.255 host 172.16.224.3
access-list 101 deny ip 172.16.224.0 0.0.0.255 host 172.16.224.4
access-list 101 deny ip 172.16.224.0 0.0.0.255 host 172.16.224.5
access-list 101 deny ip any host 172.16.224.1
access-list 101 deny ip any host 172.16.224.2
access-list 101 deny ip any host 172.16.224.3
access-list 101 deny ip any host 172.16.224.4
access-list 101 deny ip any host 172.16.224.5
access-list 101 deny ip 10.0.0.0 0.255.255.255 host 172.16.224.1
access-list 101 deny ip 10.0.0.0 0.255.255.255 host 172.16.224.2
access-list 101 deny ip 10.0.0.0 0.255.255.255 host 172.16.224.3
access-list 101 deny ip 10.0.0.0 0.255.255.255 host 172.16.224.4
access-list 101 deny ip 10.0.0.0 0.255.255.255 host 172.16.224.5
access-list 101 permit ip 10.0.0.0 0.255.255.255 any
access-list 102 remark VTY Access-class list
access-list 102 remark SDM_ACL Category=1
access-list 102 permit ip 10.0.0.0 0.255.255.255 any
access-list 102 permit ip 172.16.224.0 0.0.0.255 any
access-list 102 permit ip any any
access-list 112 remark SDM_ACL Category=17
access-list 112 permit ip host 172.16.224.1 10.0.0.0 0.255.255.255
access-list 112 permit ip host 172.16.224.2 10.0.0.0 0.255.255.255
access-list 112 permit ip host 172.16.224.3 10.0.0.0 0.255.255.255
access-list 112 permit ip host 172.16.224.4 10.0.0.0 0.255.255.255
access-list 112 permit ip host 172.16.224.5 10.0.0.0 0.255.255.255
access-list 112 permit ip host 172.16.224.1 172.16.224.0 0.0.0.255
access-list 112 permit ip host 172.16.224.2 172.16.224.0 0.0.0.255
access-list 112 permit ip host 172.16.224.3 172.16.224.0 0.0.0.255
access-list 112 permit ip host 172.16.224.4 172.16.224.0 0.0.0.255
access-list 112 permit ip host 172.16.224.5 172.16.224.0 0.0.0.255
access-list 112 permit udp any host y.y.y.y eq non500-isakmp
access-list 112 permit udp any host y.y.y.y eq isakmp
access-list 112 permit esp any host y.y.y.y
access-list 112 permit ahp any host y.y.y.y
access-list 112 permit tcp any host y.y.y.y eq 22
access-list 112 permit tcp any host y.y.y.y eq 143
access-list 112 permit udp host 4.2.2.4 eq domain host y.y.y.y
access-list 112 permit udp host x.x.x.x eq domain host y.y.y.y
access-list 112 permit udp host x.x.x.x eq domain host y.y.y.y
access-list 112 permit icmp any any echo
access-list 112 permit icmp any any echo-reply
access-list 112 permit icmp any any time-exceeded
access-list 112 deny ip 127.0.0.0 0.255.255.255 any
access-list 112 deny ip host 255.255.255.255 any
access-list 112 deny ip host 0.0.0.0 any
access-list 112 deny ip any any log
no cdp run
!
route-map SDM_RMAP_1 permit 1
match ip address 101
!
!
control-plane
!
banner login ^CAuthorized access only!
Disconnect IMMEDIATELY if you are not an authorized user!^C
!
line con 0
transport output telnet
line 1
stopbits 1
speed 115200
flowcontrol hardware
line aux 0
transport output telnet
line vty 0 4
access-class 102 in
transport input telnet ssh
!
scheduler allocate 4000 1000
scheduler interval 500
end
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top