06-30-2016 11:55 AM - edited 03-12-2019 12:58 AM
I have attempted to open three ports on our firewall. Only when I test the ports using an open port checker tool online, I get a response that the ports are closed. I'm not understanding why these ports are not getting hits or showing open. Can someone please tell me what I am missing?
My current configuration is as follows:
: Saved : ASA Version 8.2(5) ! hostname PC domain-name .com enable password XXXXXXX encrypted passwd XXXXXXX encrypted names name 192.168.1.3 Server ! 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 ! interface Ethernet0/7 ! interface Vlan1 nameif inside security-level 100 ip address 192.168.1.1 255.255.255.0 ! interface Vlan2 nameif outside security-level 0 ip address 000.000.000.000 255.255.255.252 ! regex url4 "twitter.com" boot system disk0:/asa825-k8.bin ftp mode passive clock timezone EST -5 clock summer-time EDT recurring dns server-group DefaultDNS domain-name .com object-group protocol DM_INLINE_PROTOCOL_1 protocol-object udp protocol-object tcp object-group network NAS object-group service Practice-Perfct tcp-udp port-object eq 8100 object-group service Practice-Perfect tcp-udp port-object eq 8099 object-group service Practice-Perfet tcp-udp port-object eq 8102 access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 10.254.254.0 255.255.255.0 access-list split standard permit 192.168.1.0 255.255.255.0 access-list http extended permit tcp any any eq www access-list http extended permit tcp any host Server eq 3389 access-list outside_access_in extended permit object-group DM_INLINE_PROTOCOL_1 any host Server object-group Practice-Perfet access-list outside_access_in extended permit object-group DM_INLINE_PROTOCOL_1 any host Server object-group Practice-Perfct access-list outside_access_in extended permit object-group DM_INLINE_PROTOCOL_1 any host Server object-group Practice-Perfect access-list outside extended permit udp any host Server range 8099 8100 access-list outside extended permit tcp any host Server range 8099 8100 access-list outside extended permit tcp any host Server eq 8102 access-list outside extended permit udp any host Server eq 8102 pager lines 24 logging asdm informational mtu inside 1500 mtu outside 1500 ip local pool RemoteAccess 10.254.254.1-10.254.254.254 mask 255.255.255.0 icmp unreachable rate-limit 1 burst-size 1 asdm image disk0:/asdm-645-206.bin no asdm history enable arp timeout 14400 nat-control global (outside) 1 interface nat (inside) 0 access-list inside_nat0_outbound nat (inside) 1 0.0.0.0 0.0.0.0 static (inside,outside) udp interface 8102 Server 8102 netmask 255.255.255.255 static (inside,outside) tcp interface 8102 Server 8102 netmask 255.255.255.255 static (inside,outside) tcp interface 8099 Server 8099 netmask 255.255.255.255 static (inside,outside) udp interface 8099 Server 8099 netmask 255.255.255.255 static (inside,outside) tcp interface 8100 Server 8100 netmask 255.255.255.255 static (inside,outside) udp interface 8100 Server 8100 netmask 255.255.255.255 access-group outside_access_in in interface outside route outside 0.0.0.0 0.0.0.0 23.25.105.134 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 telnet console LOCAL aaa authentication ssh console LOCAL http server enable http 192.168.1.0 255.255.255.0 inside no snmp-server location no snmp-server contact snmp-server enable traps snmp authentication linkup linkdown coldstart sysopt connection tcpmss 1300 crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac 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-256-MD5 crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set security-association lifetime seconds 28800 crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set security-association lifetime kilobytes 4608000 crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP crypto map outside_map interface outside crypto ca server shutdown cdp-url http://PRFC.default.domain.invalid/+CSCOCA+/asa_ca.crl issuer-name CN=PRFC.default.domain.invalid smtp from-address admin@PRFC.default.domain.invalid crypto isakmp enable outside crypto isakmp policy 10 authentication pre-share encryption aes-256 hash md5 group 2 lifetime 86400 telnet 192.168.1.0 255.255.255.0 inside telnet timeout 5 ssh 192.168.1.0 255.255.255.0 inside ssh 000.000.000.000 255.255.255.255 outside ssh timeout 30 console timeout 0 management-access inside dhcpd address 192.168.1.100-192.168.1.199 inside dhcpd dns 4.2.2.2 8.8.8.8 interface inside dhcpd lease 28800 interface inside dhcpd enable inside ! threat-detection basic-threat threat-detection statistics access-list no threat-detection statistics tcp-intercept ntp server 67.159.5.90 source outside webvpn group-policy RemoteAccess internal group-policy RemoteAccess attributes dns-server value 75.75.75.75 75.75.76.76 vpn-tunnel-protocol IPSec split-tunnel-policy tunnelspecified split-tunnel-network-list value split username PRFC password TGRLBheRPU8ynGyC encrypted privilege 15 username NetInnov password 5v5Z3XEBY7affMrB encrypted privilege 15 tunnel-group RemoteAccess type remote-access tunnel-group RemoteAccess general-attributes address-pool RemoteAccess default-group-policy RemoteAccess tunnel-group RemoteAccess ipsec-attributes pre-shared-key ***** ! class-map type regex match-any urlreg match regex url4 class-map inspection_default match default-inspection-traffic class-map acl match access-list http class-map type inspect http match-all http_url_policy match request header host regex class urlreg ! ! policy-map type inspect dns preset_dns_map parameters message-length maximum 512 policy-map type inspect http http_policy parameters class http_url_policy drop-connection policy-map httpdrop class acl inspect http http_policy policy-map global_policy class inspection_default inspect dns preset_dns_map inspect ftp inspect h323 h225 inspect h323 ras inspect rsh inspect rtsp inspect esmtp inspect sqlnet inspect skinny inspect sunrpc inspect xdmcp inspect sip inspect netbios inspect tftp inspect ip-options inspect icmp ! service-policy global_policy global service-policy httpdrop interface outside prompt hostname context no call-home reporting anonymous call-home profile CiscoTAC-1 no active destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService destination address email callhome@cisco.com destination transport-method http subscribe-to-alert-group diagnostic subscribe-to-alert-group environment subscribe-to-alert-group inventory periodic monthly subscribe-to-alert-group configuration periodic monthly subscribe-to-alert-group telemetry periodic daily Cryptochecksum
06-30-2016 04:59 PM
Hi,
You can check whether the ports are open or not by using packet tracer on the ASA and also test by passing traffic on these three ports.
Regards,
Aditya
Please rate helpful posts and mark correct answers.
07-01-2016 08:31 AM
Thank you for that suggestion. I have been testing the ports using an external port checker website. They are coming back closed. I'm asking if there is something in this configuration that I am missing or over looking.
07-02-2016 05:20 AM
Are the ports actually listening on the server?
If it's actually specifying CLOSED, then this could suggest you got an actual response such as a TCP reset.
FILTERED would be different
What happens when you try to telnet to the public IP on these ports?
I'd also add to test with Packet Tracer, it's a quick test and will point you in the right direction
07-05-2016 06:20 AM
Yes, David, they are listening on the server. If I bypass the firewall the server replies to the ports. If I telnet to the public IP using these ports the session times out.
07-01-2016 02:19 PM
So, I believe after looking at this more that the problem is within these command lines:
object-group protocol DM_INLINE_PROTOCOL_1
protocol-object udp
protocol-object tcp
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 10.254.254.0 255.255.255.0
access-list split standard permit 192.168.1.0 255.255.255.0
access-list http extended permit tcp any any eq www
access-list outside_access_in extended permit tcp any host Server eq 8099
access-list outside_access_in extended permit udp any host Server eq 8099
access-list outside_access_in extended permit tcp any host Server eq 8100
access-list outside_access_in extended permit udp any host Server eq 8100
access-list outside_access_in extended permit tcp any host Server eq 8102
access-list outside_access_in extended permit udp any host Server eq 8102
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool RemoteAccess 10.254.254.1-10.254.254.254 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-645-206.bin
no asdm history enable
arp timeout 14400
nat-control
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) udp interface 8102 Server 8102 netmask 255.255.255.255
static (inside,outside) tcp interface 8102 Server 8102 netmask 255.255.255.255
static (inside,outside) tcp interface 8099 Server 8099 netmask 255.255.255.255
static (inside,outside) udp interface 8099 Server 8099 netmask 255.255.255.255
static (inside,outside) tcp interface 8100 Server 8100 netmask 255.255.255.255
static (inside,outside) udp interface 8100 Server 8100 netmask 255.255.255.255
Any advice or assistance is appreciated!
07-02-2016 01:16 PM
check
show conn detail long
while connecting
07-05-2016 05:34 AM
Peter,
Thanks for that suggestion. I ran the command while a connection attempt was being made and didn't see any hits from the IP address or that port number.
07-05-2016 05:37 AM
Also, if I remove the firewall from the network, the ports work. I know that sounds like a "duh" statement, but I was verifying that the server wasn't the cause of the blocking.
07-04-2016 09:41 AM
Looking at your configuration, it looks as though the "outside" access list has not been applied on the access-group section. To add this, please issue "access-group outside in interface outside" in global configuration mode.
If this was left off intentionally, I would recommend at looking at your NAT's. Remember that on the IOS version you are running, in access lists you should specify the NAT IP rather than the real IP.
07-05-2016 06:38 AM
Simrid, I have changed the configuration slightly from what is posted here in an attempt to simplify the configuration. I did try applying the change you suggested with the outside_access_in list. It still does not work. Also, here is the part of the config that has changed.
dns server-group DefaultDNS
domain-name prfeedingclinc.com
object-group protocol DM_INLINE_PROTOCOL_1
protocol-object udp
protocol-object tcp
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 10.254.254.0 255.255.255.0
access-list split standard permit 192.168.1.0 255.255.255.0
access-list http extended permit tcp any any eq www
access-list outside_access_in extended permit tcp any host Server eq 8099
access-list outside_access_in extended permit udp any host Server eq 8099
access-list outside_access_in extended permit tcp any host Server eq 8100
access-list outside_access_in extended permit udp any host Server eq 8100
access-list outside_access_in extended permit tcp any host Server eq 8102
access-list outside_access_in extended permit udp any host Server eq 8102
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool RemoteAccess 10.254.254.1-10.254.254.254 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-645-206.bin
no asdm history enable
arp timeout 14400
nat-control
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) udp interface 8102 Server 8102 netmask 255.255.255.255
static (inside,outside) tcp interface 8102 Server 8102 netmask 255.255.255.255
static (inside,outside) tcp interface 8099 Server 8099 netmask 255.255.255.255
static (inside,outside) udp interface 8099 Server 8099 netmask 255.255.255.255
static (inside,outside) tcp interface 8100 Server 8100 netmask 255.255.255.255
static (inside,outside) udp interface 8100 Server 8100 netmask 255.255.255.255
route outside 0.0.0.0 0.0.0.0 xxx.xxx.xxx.xxx 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 telnet console LOCAL
aaa authentication ssh console LOCAL
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
sysopt connection tcpmss 1300
07-05-2016 06:45 AM
It sounds as though it's an issue on the NAT's of your ACL's. To simulate this, please could you try and perform a packet-tracer through your firewall and let me know the output? Here's some information on the packet-tracer command if you are unfamiliar:
http://www.cisco.com/c/en/us/td/docs/security/asa/asa-command-reference/I-R/cmdref2/p1.html
I would imagine it will fail on the RPF check. Let me know the outcome - The syntax would be something like
"packet-trace input outside tcp x.x.x.x src_prt 192.168.1.3 dst_prt"
07-05-2016 06:56 AM
Here is the result:
Phase: 1
Type: ACCESS-LIST
Subtype:
Result: ALLOW
Config:
Implicit Rule
Additional Information:
MAC Access list
Phase: 2
Type: ROUTE-LOOKUP
Subtype: input
Result: ALLOW
Config:
Additional Information:
in 192.168.1.0 255.255.255.0 inside
Phase: 3
Type: ACCESS-LIST
Subtype:
Result: DROP
Config:
Implicit Rule
Additional Information:
Result:
input-interface: outside
input-status: up
input-line-status: up
output-interface: inside
output-status: up
output-line-status: up
Action: drop
Drop-reason: (acl-drop) Flow is denied by configured rule
07-05-2016 07:07 AM
Interesting, have you got the access-group applied? I can't see the configuration in the new up to date configuration you sent.
"show run access-group"
07-05-2016 07:31 AM
Apparently not. I get a command prompt when I run the command. Here is the complete configuration:
!
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
!
interface Ethernet0/7
!
interface Vlan1
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface Vlan2
nameif outside
security-level 0
ip address xxx.xxx.xxx.xxx 255.255.255.252
!
regex url4 "twitter.com"
boot system disk0:/asa825-k8.bin
ftp mode passive
clock timezone EST -5
clock summer-time EDT recurring
dns server-group DefaultDNS
domain-name prfeedingclinc.com
object-group protocol DM_INLINE_PROTOCOL_1
protocol-object udp
protocol-object tcp
access-list inside_nat0_outbound extended permit ip 192.168.1.0 255.255.255.0 10.254.254.0 255.255.255.0
access-list split standard permit 192.168.1.0 255.255.255.0
access-list http extended permit tcp any any eq www
access-list outside_access_in extended permit tcp any host 192.168.1.3 eq 8100
access-list outside_access_in extended permit udp any host 192.168.1.3 eq 8100
access-list outside_access_in extended permit tcp any host 192.168.1.3 eq 8102
access-list outside_access_in extended permit udp any host 192.168.1.3 eq 8102
access-list outside_access_in extended permit tcp any host 192.168.1.3 eq 8099
access-list outside_access_in extended permit udp any host 192.168.1.3 eq 8099
pager lines 24
logging asdm informational
mtu inside 1500
mtu outside 1500
ip local pool RemoteAccess 10.254.254.1-10.254.254.254 mask 255.255.255.0
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-645-206.bin
no asdm history enable
arp timeout 14400
nat-control
global (outside) 1 interface
nat (inside) 0 access-list inside_nat0_outbound
nat (inside) 1 0.0.0.0 0.0.0.0
static (inside,outside) udp interface 8102 192.168.1.3 8102 netmask 255.255.255.255
static (inside,outside) tcp interface 8102 192.168.1.3 8102 netmask 255.255.255.255
static (inside,outside) tcp interface 8099 192.168.1.3 8099 netmask 255.255.255.255
static (inside,outside) udp interface 8099 192.168.1.3 8099 netmask 255.255.255.255
static (inside,outside) tcp interface 8100 192.168.1.3 8100 netmask 255.255.255.255
static (inside,outside) udp interface 8100 192.168.1.3 8100 netmask 255.255.255.255
route outside 0.0.0.0 0.0.0.0 23.25.105.134 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 telnet console LOCAL
aaa authentication ssh console LOCAL
http server enable
http 192.168.1.0 255.255.255.0 inside
no snmp-server location
no snmp-server contact
snmp-server enable traps snmp authentication linkup linkdown coldstart
sysopt connection tcpmss 1300
crypto ipsec transform-set ESP-AES-256-MD5 esp-aes-256 esp-md5-hmac
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-256-MD5
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set security-association lifetime seconds 28800
crypto dynamic-map SYSTEM_DEFAULT_CRYPTO_MAP 65535 set security-association lifetime kilobytes 4608000
crypto map outside_map 65535 ipsec-isakmp dynamic SYSTEM_DEFAULT_CRYPTO_MAP
crypto map outside_map interface outside
crypto ca server
shutdown
cdp-url http://PPPP.default.domain.invalid/+CSCOCA+/asa_ca.crl
issuer-name CN=PPPP.default.domain.invalid
smtp from-address admin@PRFC.default.domain.invalid
crypto isakmp enable outside
crypto isakmp policy 10
authentication pre-share
encryption aes-256
hash md5
group 2
lifetime 86400
telnet 192.168.1.0 255.255.255.0 inside
telnet timeout 5
ssh 192.168.1.0 255.255.255.0 inside
ssh xxx.xxx.xxx.xxx 255.255.255.255 outside
ssh timeout 30
console timeout 0
management-access inside
dhcpd address 192.168.1.100-192.168.1.199 inside
dhcpd dns 4.2.2.2 8.8.8.8 interface inside
dhcpd lease 28800 interface inside
dhcpd enable inside
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ntp server 67.159.5.90 source outside
webvpn
group-policy RemoteAccess internal
group-policy RemoteAccess attributes
dns-server value 75.75.75.75 75.75.76.76
vpn-tunnel-protocol IPSec
split-tunnel-policy tunnelspecified
split-tunnel-network-list value split
username PPPP password xxxx encrypted privilege 15
username NNNN password xxxx encrypted privilege 15
tunnel-group RemoteAccess type remote-access
tunnel-group RemoteAccess general-attributes
address-pool RemoteAccess
default-group-policy RemoteAccess
tunnel-group RemoteAccess ipsec-attributes
pre-shared-key *****
!
class-map type regex match-any urlreg
match regex url4
class-map inspection_default
match default-inspection-traffic
class-map acl
match access-list http
class-map type inspect http match-all http_url_policy
match request header host regex class urlreg
!
!
policy-map type inspect dns preset_dns_map
parameters
message-length maximum 512
policy-map type inspect http http_policy
parameters
class http_url_policy
drop-connection
policy-map httpdrop
class acl
inspect http http_policy
policy-map global_policy
class inspection_default
inspect dns preset_dns_map
inspect ftp
inspect h323 h225
inspect h323 ras
inspect rsh
inspect rtsp
inspect esmtp
inspect sqlnet
inspect skinny
inspect sunrpc
inspect xdmcp
inspect sip
inspect netbios
inspect tftp
inspect ip-options
inspect icmp
!
service-policy global_policy global
service-policy httpdrop interface outside
prompt hostname context
no call-home reporting anonymous
call-home
profile CiscoTAC-1
no active
destination address http https://tools.cisco.com/its/service/oddce/services/DDCEService
destination address email callhome@cisco.com
destination transport-method http
subscribe-to-alert-group diagnostic
subscribe-to-alert-group environment
subscribe-to-alert-group inventory periodic monthly
subscribe-to-alert-group configuration periodic monthly
subscribe-to-alert-group telemetry periodic daily
Cryptochecksum:82dc492a50c40837f25cb47c211f5996
: end
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide