cancel
Showing results forĀ 
Search instead forĀ 
Did you mean:Ā 
cancel
577
Views
0
Helpful
4
Replies

Issues with FTP S

erbr00001
Level 1
Level 1

Hello.

We have a ftp server hosted as FTP Internal/External with the NAT and i have setup rules to allow traffic on ports 11000-13000,989-990,21,22

Internally all ftp protocols work but externally FTP S does not work and i have tried to figure out why if it has something to do with the default inspection policy we use but i cant see how it should affect it. Could someone please take a look at the config and see what im doing wrong?

Result of the command: "show run"

: Saved
:
ASA Version 8.2(5)
!

Hello.

We have a ftp server hosted as FTP Internal/External with the NAT and i have setup rules to allow traffic on ports 11000-13000,989-990,21,22

Internally all ftp protocols work but externally FTP S does not work and i have tried to figure out why if it has something to do with the default inspection policy we use but i cant see how it should affect it. Could someone please take a look at the config and see what im doing wrong?

Result of the command: "show run"

: Saved
:
ASA Version 8.2(5)
!
hostname company
domain-name company.local

names
name ***.78.***.210 DNS-Extern
name ***.78.***..211 Devel-Extern
name ***.78.***.214 Fw-Extern
name ***.78.***.213 Mail-Extern
name 10.4.41.9 Mail-Intern
name 10.4.41.1 Fw-Intern
name **.99.23.26 mailfilter.**.se
name ***.45.120.10 mailfilter2.**.se
name ***.78.***.209 ownit-route description default
name 10.4.10.14 DNS-Intern
name 10.4.41.220 Devel-Intern
name 192.168.201.0 Internal_City_Cloud
name ***.78.***.212 FTP-Extern
name 10.4.10.17 FTP-Intern
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
switchport access vlan 5
!
interface Ethernet0/7
!
interface Vlan1
nameif inside
security-level 100
ip address Fw-Intern 255.255.0.0
!
interface Vlan2
nameif outside
security-level 0
ip address Fw-Extern 255.255.255.248
!
ftp mode passive
clock timezone CEST 1
clock summer-time CEDT recurring last Sun Mar 2:00 last Sun Oct 3:00
dns server-group DefaultDNS
domain-name company.local
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object-group service company tcp
port-object eq 21212
object-group service company-Webclient tcp
port-object eq 843
port-object eq 8787
object-group network DM_INLINE_NETWORK_1
network-object host mailfilter2.**.se
network-object host mailfilter.**.se
object-group service DM_INLINE_SERVICE_1
service-object tcp-udp eq domain
service-object tcp eq www
service-object tcp eq https
object-group service Forward-SSH tcp
port-object eq 20022
object-group service Forward-company tcp
port-object range 21220 21229
port-object eq 10022
object-group service DM_INLINE_TCP_2 tcp
group-object company-Webclient
port-object eq www
port-object eq https
port-object eq ssh
group-object Forward-SSH
group-object Forward-company
object-group service DM_INLINE_TCP_3 tcp
port-object eq www
port-object eq https
port-object eq smtp
port-object eq imap4
port-object eq pop3
object-group service IPSEC-L2TP tcp-udp
port-object eq 1701
port-object eq 500
port-object eq 5500
object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
object-group protocol ESP
protocol-object esp
object-group service VPNIPSECL2TP udp
port-object eq 1701
port-object eq 4500
port-object eq isakmp
object-group service DM_INLINE_TCP_4 tcp
port-object eq https
port-object eq smtp
port-object eq www
object-group service OpenVPN tcp-udp
port-object eq 1194
port-object eq 443
port-object eq 943
object-group service FTP-Service tcp
port-object eq ftp
port-object eq https
port-object eq ssh
port-object range 989 990
port-object range 11000 13000
object-group service All tcp
port-object range 1 65535
object-group service FTPS tcp-udp
port-object range 989 990
object-group service DM_INLINE_TCP_1 tcp
group-object FTP-Service
port-object eq www
port-object eq https
port-object eq ssh
group-object FTPS
object-group service DNS tcp-udp
port-object eq domain
access-list outside_access_in extended permit icmp any interface outside
access-list outside_access_in extended permit tcp object-group DM_INLINE_NETWORK_1 host Mail-Extern object-group DM_INLINE_TCP_4
access-list outside_access_in extended permit tcp any host Devel-Extern object-group DM_INLINE_TCP_2
access-list outside_access_in extended permit object-group DM_INLINE_SERVICE_1 any host DNS-Extern
access-list outside_access_in extended permit tcp any host Mail-Extern object-group DM_INLINE_TCP_3
access-list outside_access_in extended permit tcp any host FTP-Extern object-group DM_INLINE_TCP_1
access-list inside_nat0_outbound extended permit ip any any
access-list DefaultRAGroup_splitTunnelAcl standard permit 10.4.0.0 255.255.0.0
access-list inside_nat0_outbound_1 extended permit ip 10.4.0.0 255.255.0.0 10.5.2.0 255.255.255.0
access-list External standard permit host DNS-Intern
access-list LifeStyle standard permit host 10.4.20.53
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool companyVPN 10.5.2.10-10.5.2.254 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound_1
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) Devel-Extern Devel-Intern netmask 255.255.255.255 dns
static (inside,outside) DNS-Extern DNS-Intern netmask 255.255.255.255 dns
static (inside,outside) Mail-Extern Mail-Intern netmask 255.255.255.255 dns
static (inside,outside) FTP-Extern FTP-Intern netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 ownit-route 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
aaa authentication ssh console LOCAL
http server enable
http 192.168.1.0 255.255.255.0 inside
http 192.168.1.0 255.255.255.255 inside
http 10.4.41.0 255.255.255.0 inside
http 10.4.0.0 255.255.0.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set TRANS_ESP_3DES_SHA esp-3des esp-sha-hmac
crypto ipsec transform-set TRANS_ESP_3DES_SHA mode transport
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5 TRANS_ESP_3DES_SHA
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto map inside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map inside_map interface inside
crypto isakmp enable inside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
telnet timeout 5
ssh 10.4.41.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!

threat-detection basic-threat
threat-detection statistics access-list
threat-detection statistics tcp-intercept rate-interval 30 burst-rate 400 average-rate 200
webvpn
group-policy DefaultRAGroup internal
group-policy DefaultRAGroup attributes
dns-server value 10.4.41.9
vpn-filter none
vpn-tunnel-protocol IPSec l2tp-ipsec
default-domain value company.local
group-policy DefaultRAGroup_1 internal
group-policy DefaultRAGroup_1 attributes
dns-server value 10.4.41.9
vpn-tunnel-protocol l2tp-ipsec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value DefaultRAGroup_splitTunnelAcl
default-domain value company.local
group-policy Initiva internal
group-policy Initiva attributes
vpn-filter value External
group-policy External internal
group-policy External attributes
vpn-filter value LifeStyle

tunnel-group DefaultRAGroup general-attributes
address-pool companyVPN
default-group-policy DefaultRAGroup_1
tunnel-group DefaultRAGroup ipsec-attributes
pre-shared-key *****
tunnel-group DefaultRAGroup ppp-attributes
authentication ms-chap-v2
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
inspect pptp
inspect ils
inspect ipsec-pass-thru
inspect ftp
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:b3100cd27103b20b8b22c9eef8560f2c
: end


hostname company
domain-name company.local

names
name ***.78.***.210 DNS-Extern
name ***.78.***..211 Devel-Extern
name ***.78.250.214 Fw-Extern
name ***.78.250.213 Mail-Extern
name 10.4.41.9 Mail-Intern
name 10.4.41.1 Fw-Intern
name **.99.23.26 mailfilter.**.se
name ***.45.120.10 mailfilter2.**.se
name ***.78.250.209 ownit-route description default
name 10.4.10.14 DNS-Intern
name 10.4.41.220 Devel-Intern
name 192.168.201.0 Internal_City_Cloud
name ***.78.250.212 FTP-Extern
name 10.4.10.17 FTP-Intern
!
interface Ethernet0/0
switchport access vlan 2
!
interface Ethernet0/1
!
interface Ethernet0/2
!
interface Ethernet0/3
!
interface Ethernet0/4
!
interface Ethernet0/5
!
interface Ethernet0/6
switchport access vlan 5
!
interface Ethernet0/7
!
interface Vlan1
nameif inside
security-level 100
ip address Fw-Intern 255.255.0.0
!
interface Vlan2
nameif outside
security-level 0
ip address Fw-Extern 255.255.255.248
!
ftp mode passive
clock timezone CEST 1
clock summer-time CEDT recurring last Sun Mar 2:00 last Sun Oct 3:00
dns server-group DefaultDNS
domain-name company.local
same-security-traffic permit inter-interface
same-security-traffic permit intra-interface
object-group service company tcp
port-object eq 21212
object-group service company-Webclient tcp
port-object eq 843
port-object eq 8787
object-group network DM_INLINE_NETWORK_1
network-object host mailfilter2.**.se
network-object host mailfilter.**.se
object-group service DM_INLINE_SERVICE_1
service-object tcp-udp eq domain
service-object tcp eq www
service-object tcp eq https
object-group service Forward-SSH tcp
port-object eq 20022
object-group service Forward-company tcp
port-object range 21220 21229
port-object eq 10022
object-group service DM_INLINE_TCP_2 tcp
group-object company-Webclient
port-object eq www
port-object eq https
port-object eq ssh
group-object Forward-SSH
group-object Forward-company
object-group service DM_INLINE_TCP_3 tcp
port-object eq www
port-object eq https
port-object eq smtp
port-object eq imap4
port-object eq pop3
object-group service IPSEC-L2TP tcp-udp
port-object eq 1701
port-object eq 500
port-object eq 5500
object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
object-group protocol ESP
protocol-object esp
object-group service VPNIPSECL2TP udp
port-object eq 1701
port-object eq 4500
port-object eq isakmp
object-group service DM_INLINE_TCP_4 tcp
port-object eq https
port-object eq smtp
port-object eq www
object-group service OpenVPN tcp-udp
port-object eq 1194
port-object eq 443
port-object eq 943
object-group service FTP-Service tcp
port-object eq ftp
port-object eq https
port-object eq ssh
port-object range 989 990
port-object range 11000 13000
object-group service All tcp
port-object range 1 65535
object-group service FTPS tcp-udp
port-object range 989 990
object-group service DM_INLINE_TCP_1 tcp
group-object FTP-Service
port-object eq www
port-object eq https
port-object eq ssh
group-object FTPS
object-group service DNS tcp-udp
port-object eq domain
access-list outside_access_in extended permit icmp any interface outside
access-list outside_access_in extended permit tcp object-group DM_INLINE_NETWORK_1 host Mail-Extern object-group DM_INLINE_TCP_4
access-list outside_access_in extended permit tcp any host Devel-Extern object-group DM_INLINE_TCP_2
access-list outside_access_in extended permit object-group DM_INLINE_SERVICE_1 any host DNS-Extern
access-list outside_access_in extended permit tcp any host Mail-Extern object-group DM_INLINE_TCP_3
access-list outside_access_in extended permit tcp any host FTP-Extern object-group DM_INLINE_TCP_1
access-list inside_nat0_outbound extended permit ip any any
access-list DefaultRAGroup_splitTunnelAcl standard permit 10.4.0.0 255.255.0.0
access-list inside_nat0_outbound_1 extended permit ip 10.4.0.0 255.255.0.0 10.5.2.0 255.255.255.0
access-list External standard permit host DNS-Intern
access-list LifeStyle standard permit host 10.4.20.53
pager lines 24
logging enable
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool companyVPN 10.5.2.10-10.5.2.254 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
no asdm history enable
arp timeout 14400
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound_1
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) Devel-Extern Devel-Intern netmask 255.255.255.255 dns
static (inside,outside) DNS-Extern DNS-Intern netmask 255.255.255.255 dns
static (inside,outside) Mail-Extern Mail-Intern netmask 255.255.255.255 dns
static (inside,outside) FTP-Extern FTP-Intern netmask 255.255.255.255
access-group outside_access_in in interface outside
route outside 0.0.0.0 0.0.0.0 ownit-route 1
timeout xlate 3:00:00
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 icmp 0:00:02
timeout sunrpc 0:10:00 h323 0:05:00 h225 1:00:00 mgcp 0:05:00 mgcp-pat 0:05:00
timeout sip 0:30:00 sip_media 0:02:00 sip-invite 0:03:00 sip-disconnect 0:02:00
timeout sip-provisional-media 0:02:00 uauth 0:05:00 absolute
timeout tcp-proxy-reassembly 0:01:00
timeout floating-conn 0:00:00
dynamic-access-policy-record DfltAccessPolicy
aaa authentication ssh console LOCAL
http server enable
http 192.168.1.0 255.255.255.0 inside
http 192.168.1.0 255.255.255.255 inside
http 10.4.41.0 255.255.255.0 inside
http 10.4.0.0 255.255.0.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
crypto ipsec transform-set ESP-3DES-MD5 esp-3des esp-md5-hmac
crypto ipsec transform-set ESP-DES-MD5 esp-des esp-md5-hmac
crypto ipsec transform-set ESP-AES-128-SHA esp-aes esp-sha-hmac
crypto ipsec transform-set ESP-AES-192-SHA esp-aes-192 esp-sha-hmac
crypto ipsec transform-set ESP-AES-128-MD5 esp-aes esp-md5-hmac
crypto ipsec transform-set ESP-AES-192-MD5 esp-aes-192 esp-md5-hmac
crypto ipsec transform-set ESP-AES-256-SHA esp-aes-256 esp-sha-hmac
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
crypto ipsec transform-set ESP-DES-SHA esp-des esp-sha-hmac
crypto ipsec transform-set ESP-3DES-SHA esp-3des esp-sha-hmac
crypto ipsec transform-set TRANS_ESP_3DES_SHA esp-3des esp-sha-hmac
crypto ipsec transform-set TRANS_ESP_3DES_SHA mode transport
crypto ipsec security-association lifetime seconds 28800
crypto ipsec security-association lifetime kilobytes 4608000
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set transform-set ESP-AES-128-SHA ESP-AES-128-MD5 ESP-AES-192-SHA ESP-AES-192-MD5 ESP-AES-256-SHA ESP-AES-256-MD5 ESP-3DES-SHA ESP-3DES-MD5 ESP-DES-SHA ESP-DES-MD5 TRANS_ESP_3DES_SHA
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto map inside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map inside_map interface inside
crypto isakmp enable inside
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption 3des
hash sha
group 2
lifetime 86400
telnet timeout 5
ssh 10.4.41.0 255.255.255.0 inside
ssh timeout 5
console timeout 0
dhcpd auto_config outside
!

threat-detection basic-threat
threat-detection statistics access-list
threat-detection statistics tcp-intercept rate-interval 30 burst-rate 400 average-rate 200
webvpn
group-policy DefaultRAGroup internal
group-policy DefaultRAGroup attributes
dns-server value 10.4.41.9
vpn-filter none
vpn-tunnel-protocol IPSec l2tp-ipsec
default-domain value company.local
group-policy DefaultRAGroup_1 internal
group-policy DefaultRAGroup_1 attributes
dns-server value 10.4.41.9
vpn-tunnel-protocol l2tp-ipsec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value DefaultRAGroup_splitTunnelAcl
default-domain value company.local
group-policy Initiva internal
group-policy Initiva attributes
vpn-filter value External
group-policy External internal
group-policy External attributes
vpn-filter value LifeStyle

tunnel-group DefaultRAGroup general-attributes
address-pool companyVPN
default-group-policy DefaultRAGroup_1
tunnel-group DefaultRAGroup ipsec-attributes
pre-shared-key *****
tunnel-group DefaultRAGroup ppp-attributes
authentication ms-chap-v2
!
class-map inspection_default
match default-inspection-traffic
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum client auto
message-length maximum 512
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
inspect pptp
inspect ils
inspect ipsec-pass-thru
inspect ftp
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:b3100cd27103b20b8b22c9eef8560f2c
: end

4 Replies 4

Pawan Raut
Level 4
Level 4

You have not allowed ftp-data port in service object FTP-Service. Kindly add that and test it.

Hi

I Added ftp-data to the FTP-Service no change.

When i try to connect via FTP S it stops on Initializing TLS and on the FTP server it says 421 Unable to negotiate secure connection

I don't think this is network error. It look like certificate error.

can you apply packet capture on inside interface and check

***.212 is the FTP server 

Hope this is what your after.

This is an external client running a FTP with TLS request to the FTP server.


But can it be a cert issue if it works internally? It also works via SFTP externally

EDIT the file had the wrong extension so was not attached i have fixed it now.

Review Cisco Networking for a $25 gift card