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

Cisco ASA-5506 Firewall Port Forwarding

CCC_It_UK
Level 1
Level 1

Hello,

I am trying to open up ports for port forwarding on Cisco ASA-5506 Firewall.

I have NO IDEA how to do this and i like to get the CLI so i can get this done quick and learn the commands.

when using youtube vidoes, i get "TCP Access denied by ACL, from "My IP":"641969 to Outside:"External IP":80 

Thanks.

Connor.

4 Replies 4

Philip D'Ath
VIP Alumni
VIP Alumni

Can you post your config, and the IP address and port you are trying to forward to please.

I am trying to open port 80 and have it forwarded to port 80 on a webserver at 192.168.1.3.

I have changed the ip from its external to 8.8.8.8, only for security, i know this are google DNS servers.

Result of the command: "show running-config"

: Saved

:
: Serial Number: JAD200905PR
: Hardware: ASA5506, 4096 MB RAM, CPU Atom C2000 series 1250 MHz, 1 CPU (4 cores)
:
ASA Version 9.5(2)
!
hostname Firewall
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface GigabitEthernet1/1
nameif outside
security-level 0
ip address 8.8.8.8 255.255.255.248
!
interface GigabitEthernet1/2
nameif inside
security-level 100
ip address 192.168.1.1 255.255.255.0
!
interface GigabitEthernet1/3
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/4
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/5
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/6
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/7
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet1/8
shutdown
no nameif
no security-level
no ip address
!
interface Management1/1
management-only
no nameif
no security-level
no ip address
!
ftp mode passive
clock timezone GMT/BST 0
clock summer-time GMT/BDT recurring last Sun Mar 1:00 last Sun Oct 2:00
dns domain-lookup outside
dns server-group DefaultDNS
name-server 192.168.1.1 inside
name-server 194.73.82.242 inside
name-server 208.67.222.222 outside
object network obj_any
subnet 0.0.0.0 0.0.0.0
object network router
host 8.8.8.8
object network Router2
host 8.8.4.4
object network CRM7
host 192.168.1.100
object network CCTV
host 192.168.1.169
object network MYSQL
host 192.168.1.100
object network P4P
host 192.168.1.115
object network Www8083utilitystoreportal
host 192.168.1.100
object network DansPC
host 192.168.1.3
object-group protocol TCPUDP
protocol-object udp
protocol-object tcp
access-list inside_access_in extended permit ip any any log debugging
access-list inside_access_in extended permit tcp any object DansPC eq www
access-list inside_access_in remark HTTP Connection to Webservers
access-list outside_access_in extended permit tcp any eq www any eq www log debugging inactive
access-list outside_access_in extended permit tcp object DansPC interface outside eq www
access-list outside_access_in remark HTTP Connection to Webservers
access-list global_access extended permit ip any any
pager lines 24
logging enable
logging console errors
logging trap errors
logging asdm errors
logging from-address asa@DOMAIN.co.uk
logging recipient-address daniel@DOMAIN.co.uk level errors
mtu outside 1500
mtu inside 1500
icmp unreachable rate-limit 1 burst-size 1
icmp permit any outside
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
nat (inside,outside) source dynamic any interface
!
object network obj_any
nat (any,outside) dynamic interface
access-group outside_access_in in interface outside
access-group inside_access_in in interface inside
access-group global_access global
route outside 0.0.0.0 0.0.0.0 8.8.8.8 1
timeout xlate 3:00:00
timeout pat-xlate 0:00:30
timeout conn 1:00:00 half-closed 0:10:00 udp 0:02:00 sctp 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
user-identity default-domain LOCAL
aaa authentication ssh console LOCAL
http server enable
http 192.168.1.0 255.255.255.0 inside
http 0.0.0.0 0.0.0.0 outside
no snmp-server location
no snmp-server contact
service sw-reset-button
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpoint _SmartCallHome_ServerCA
no validation-usage
crl configure
crypto ca trustpoint ASDM_Launcher_Access_TrustPoint_0
enrollment self
fqdn none
subject-name CN=192.168.1.1,CN=asa5506
keypair ASDM_LAUNCHER
crl configure
crypto ca trustpoint ASDM_TrustPoint0
enrollment self
subject-name CN=asa5506
crl configure
crypto ca trustpool policy
crypto ca certificate chain _SmartCallHome_ServerCA
certificate ca 6ecc7aa5a7032009b8cebcf4e952d491
308205ec 308204d4 a0030201 0202106e cc7aa5a7 032009b8 cebcf4e9 52d49130
0d06092a 864886f7 0d010105 05003081 ca310b30 09060355 04061302 55533117
30150603 55040a13 0e566572 69536967 6e2c2049 6e632e31 1f301d06 0355040b
13165665 72695369 676e2054 72757374 204e6574 776f726b 313a3038 06035504
0b133128 63292032 30303620 56657269 5369676e 2c20496e 632e202d 20466f72
20617574 686f7269 7a656420 75736520 6f6e6c79 31453043 06035504 03133c56
65726953 69676e20 436c6173 73203320 5075626c 69632050 72696d61 72792043
65727469 66696361 74696f6e 20417574 686f7269 7479202d 20473530 1e170d31
30303230 38303030 3030305a 170d3230 30323037 32333539 35395a30 81b5310b
30090603 55040613 02555331 17301506 0355040a 130e5665 72695369 676e2c20
496e632e 311f301d 06035504 0b131656 65726953 69676e20 54727573 74204e65
74776f72 6b313b30 39060355 040b1332 5465726d 73206f66 20757365 20617420
68747470 733a2f2f 7777772e 76657269 7369676e 2e636f6d 2f727061 20286329
3130312f 302d0603 55040313 26566572 69536967 6e20436c 61737320 33205365
63757265 20536572 76657220 4341202d 20473330 82012230 0d06092a 864886f7
0d010101 05000382 010f0030 82010a02 82010100 b187841f c20c45f5 bcab2597
a7ada23e 9cbaf6c1 39b88bca c2ac56c6 e5bb658e 444f4dce 6fed094a d4af4e10
9c688b2e 957b899b 13cae234 34c1f35b f3497b62 83488174 d188786c 0253f9bc
7f432657 5833833b 330a17b0 d04e9124 ad867d64 12dc744a 34a11d0a ea961d0b
15fca34b 3bce6388 d0f82d0c 948610ca b69a3dca eb379c00 48358629 5078e845
63cd1941 4ff595ec 7b98d4c4 71b350be 28b38fa0 b9539cf5 ca2c23a9 fd1406e8
18b49ae8 3c6e81fd e4cd3536 b351d369 ec12ba56 6e6f9b57 c58b14e7 0ec79ced
4a546ac9 4dc5bf11 b1ae1c67 81cb4455 33997f24 9b3f5345 7f861af3 3cfa6d7f
81f5b84a d3f58537 1cb5a6d0 09e4187b 384efa0f 02030100 01a38201 df308201
db303406 082b0601 05050701 01042830 26302406 082b0601 05050730 01861868
7474703a 2f2f6f63 73702e76 65726973 69676e2e 636f6d30 12060355 1d130101
ff040830 060101ff 02010030 70060355 1d200469 30673065 060b6086 480186f8
45010717 03305630 2806082b 06010505 07020116 1c687474 70733a2f 2f777777
2e766572 69736967 6e2e636f 6d2f6370 73302a06 082b0601 05050702 02301e1a
1c687474 70733a2f 2f777777 2e766572 69736967 6e2e636f 6d2f7270 61303406
03551d1f 042d302b 3029a027 a0258623 68747470 3a2f2f63 726c2e76 65726973
69676e2e 636f6d2f 70636133 2d67352e 63726c30 0e060355 1d0f0101 ff040403
02010630 6d06082b 06010505 07010c04 61305fa1 5da05b30 59305730 55160969
6d616765 2f676966 3021301f 30070605 2b0e0302 1a04148f e5d31a86 ac8d8e6b
c3cf806a d448182c 7b192e30 25162368 7474703a 2f2f6c6f 676f2e76 65726973
69676e2e 636f6d2f 76736c6f 676f2e67 69663028 0603551d 11042130 1fa41d30
1b311930 17060355 04031310 56657269 5369676e 4d504b49 2d322d36 301d0603
551d0e04 1604140d 445c1653 44c1827e 1d20ab25 f40163d8 be79a530 1f060355
1d230418 30168014 7fd365a7 c2ddecbb f03009f3 4339fa02 af333133 300d0609
2a864886 f70d0101 05050003 82010100 0c8324ef ddc30cd9 589cfe36 b6eb8a80
4bd1a3f7 9df3cc53 ef829ea3 a1e697c1 589d756c e01d1b4c fad1c12d 05c0ea6e
b2227055 d9203340 3307c265 83fa8f43 379bea0e 9a6c70ee f69c803b d937f47a
6decd018 7d494aca 99c71928 a2bed877 24f78526 866d8705 404167d1 273aeddc
481d22cd 0b0b8bbc f4b17bfd b499a8e9 762ae11a 2d876e74 d388dd1e 22c6df16
b62b8214 0a945cf2 50ecafce ff62370d ad65d306 4153ed02 14c8b558 28a1ace0
5becb37f 954afb03 c8ad26db e6667812 4ad99f42 fbe198e6 42839b8f 8f6724e8
6119b5dd cdb50b26 058ec36e c4c875b8 46cfe218 065ea9ae a8819a47 16de0c28
6c2527b9 deb78458 c61f381e a4c4cb66
quit
crypto ca certificate chain ASDM_Launcher_Access_TrustPoint_0
certificate fddb1957
308202cc 308201b4 a0030201 020204fd db195730 0d06092a 864886f7 0d010105
05003028 3110300e 06035504 03130761 73613535 30363114 30120603 55040313
0b313932 2e313638 2e312e31 301e170d 31363034 32373130 31373535 5a170d32
36303432 35313031 3735355a 30283110 300e0603 55040313 07617361 35353036
31143012 06035504 03130b31 39322e31 36382e31 2e313082 0122300d 06092a86
4886f70d 01010105 00038201 0f003082 010a0282 01010090 9cac7d63 fbfd4cef
a95d73b3 834d3b7a 02e5bfce 10b99eaf 02fac52e e29f9987 f496fb91 c7f5fb19
9729f36a 7acb368f b5fdcb3b c60f5bae a3cab653 e88fb968 ad225964 bd581c7e
caf6b559 01c3d73e 62801352 4c692748 d73f729a 9b7bc207 99012fb6 b819acc1
8acdf08a 81115e44 4b2c63eb 9dd71660 c2b88e1f 0defc5ee ba585af8 b9216145
59ca7e64 5a40b76c 544e2ffe b788c6eb c0f8dc11 57321e74 f548c7d9 942582de
72e340e5 122cefae 0181ac3c 4aed7ea0 7e5a7b1a dded8940 b366879c 7c657002
5636dedf 7c0670ab 14dd7f77 1335c259 88d4d989 72c07d7e ac945617 fb52b431
568d472e a620f1b2 2f964f9b 742280d0 4b3b2aae a5e5bd02 03010001 300d0609
2a864886 f70d0101 05050003 82010100 2a7da0df 024358a6 ee30ed2e 4cd654e1
fbc7fda0 a4c7d094 fe6cd2bc 2435503a d2d25edf 455caa72 a3c9b525 c6b7b086
53c12aa5 750bc567 efc79f36 383c42e2 f6427998 6cf12c8f 0197459b 7947e41f
d30eb8b2 ec857937 e3b867bd 923a2cad 9722621d 39ba7153 3c21b6e7 93852721
b940db82 9c934a9e 9096503c 8d33fd12 acb97f71 e61b0171 00d0af7f 51bc01e5
442bdfca 4ecc18d1 d6ad6265 052a42a7 70aeb753 c462dca1 1b64d798 9e4797ec
a6ee0537 b410f56b 7bdd0f16 1f54b278 f20a0db1 b2f5c070 425ceb2c ce36d63b
7b529482 1b3690b8 166f7455 2296a8dd cbb4a5be 26f7e263 b9c18ebf 2c8447ed
8b06c38b a88b7a16 160a47c1 0e33df07
quit
crypto ca certificate chain ASDM_TrustPoint0
certificate fedb1957
308202d0 308201b8 a0030201 020204fe db195730 0d06092a 864886f7 0d010105
0500302a 3110300e 06035504 03130761 73613535 30363116 30140609 2a864886
f70d0109 02160761 73613535 3036301e 170d3136 30343237 31353237 30335a17
0d323630 34323531 35323730 335a302a 3110300e 06035504 03130761 73613535
30363116 30140609 2a864886 f70d0109 02160761 73613535 30363082 0122300d
06092a86 4886f70d 01010105 00038201 0f003082 010a0282 010100ab c6f85c4f
9d124ff8 b85d36a2 dd50aecf a62a174c ff933e68 f6836d98 8519d6cd 2efea7df
668361fa 898c9d16 4d6c90ef 993fec4c 19a8477c aa9d9c5b bb07a387 3b4f11e9
b5d9d282 5acc1c8c 3714db77 8733d3fd c76827ac bdf330d2 b6056d8f 498bdf6b
35b3b4b8 57af1213 5db6a437 a8375daf c34e6067 d4e8c589 3483fca5 0f5c2534
bd1900aa 4fdec5a5 1b762f57 980b5a6a f1f4a72e 17045214 4b505323 8b367df3
0739d220 6febb5b1 9d9118ee f960cf12 8dea7d32 173234b6 276b25d1 aee54184
a400dcc7 f6df07fb cfd8b955 2ca0abae e8e04497 0fa96bd8 122f3f39 6c09f7d1
9e34183d 4cadeb84 4862feb9 07977d1b f5726d88 d4d545ec f9445702 03010001
300d0609 2a864886 f70d0101 05050003 82010100 0a47bbfe 479a853c 7fc1dac0
7d716184 8032c2e9 5e435381 f233b5b6 0eba4cec c6a83e55 cf9ac2fd 8c6067a3
066a62b9 380b6647 15b67452 6f59d66d 7b192706 febde046 0195bde6 9a8b5b05
66a4eefa 50ad9a8c 447147c2 9471bf1c cb3c4765 4042509c d2576096 7b2417ad
1ba30838 f1e42f55 7bf0d88d 7d6752fb e8e75a54 fda69415 57cab360 90b30f66
f48c294f 37327e34 26f76472 f3e50cb6 fa8ab8b1 f3b94052 8cc43a44 7a2d6503
5f849d21 fc328433 a4fee7dc ecdf12a5 161ff799 5b04a875 96343cf8 96ae066c
70b0ed88 05552fde c8c98fd4 f0fbb661 eb308cbe 1e3d5c7b b7bbbe32 a699b43d
1e8e775b ecc7913e a5c8ac44 347c9b98 a5451b65
quit
telnet timeout 5
no ssh stricthostkeycheck
ssh 0.0.0.0 0.0.0.0 outside
ssh 192.168.1.0 255.255.255.0 inside
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 0

dhcpd auto_config outside
!
dhcpd address 192.168.1.6-192.168.1.99 inside
dhcpd dns 194.72.6.57 194.73.82.242 interface inside
dhcpd enable inside
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ntp server 129.250.35.251 source outside prefer
ssl trust-point ASDM_TrustPoint0 outside
ssl trust-point ASDM_Launcher_Access_TrustPoint_0 inside
ssl trust-point ASDM_Launcher_Access_TrustPoint_0 inside vpnlb-ip
webvpn
enable outside
cache
disable
error-recovery disable
group-policy UGP-IT-VPN internal
group-policy UGP-IT-VPN attributes
vpn-tunnel-protocol ssl-clientless
webvpn
url-list value IT
dynamic-access-policy-record DfltAccessPolicy
username sathia password /oajvBEvr04f48xm encrypted privilege 15
username danatkins password 9gPKp1KtLyOIpQ9c encrypted privilege 0
username danatkins attributes
vpn-group-policy UGP-IT-VPN
tunnel-group IT-Remote-DialIn type remote-access
tunnel-group IT-Remote-DialIn general-attributes
default-group-policy UGP-IT-VPN
!
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 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
inspect http
!
service-policy global_policy global
prompt hostname context
call-home reporting anonymous
Cryptochecksum:dfed229df82062ca920f0d3fa3a90f30
: end

You might try something like this


object network DansPC
 nat (inside,outside) static interface service tcp 80 80

HTH

Rick

HTH

Rick

What I posted would take care of the port forwarding. But when I re-read the post I see an issue with the access list. You may need to change the source and destination addresses

access-list outside_access_in extended permit tcp  any object DansPC  eq www

HTH

Rick

HTH

Rick
Review Cisco Networking for a $25 gift card