01-20-2017 03:55 PM - edited 03-12-2019 01:48 AM
Hi All,
I did this configuration in my ASA firewall but i don't have the access to the internet:
ASA Version 9.2(2)4
!
hostname ciscoasa
enable password 8Ry2YjIyt7RRXU24 encrypted
names
!
interface GigabitEthernet0/0
nameif outside
security-level 0
ip address 100.30.60.100 255.255.255.0
!
interface GigabitEthernet0/1
duplex full
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/1.1
vlan 2
nameif TC
security-level 100
ip address 10.30.60.254 255.255.255.0
!
interface GigabitEthernet0/1.2
vlan 3
nameif CAC
security-level 100
ip address 10.30.70.254 255.255.255.0
!
interface GigabitEthernet0/2
nameif dmz
security-level 50
no ip address
!
interface GigabitEthernet0/2.1
vlan 9
nameif TCDMZ
security-level 50
no ip address
!
interface GigabitEthernet0/2.2
vlan 10
nameif CACDMZ
security-level 50
no ip address
!
interface GigabitEthernet0/2.3
vlan 11
nameif TFDMZ
security-level 50
no ip address
!
interface GigabitEthernet0/2.4
vlan 12
nameif TPIDMZ
security-level 50
no ip address
!
interface GigabitEthernet0/3
no nameif
no security-level
no ip address
!
!
interface GigabitEthernet0/4
shutdown
no nameif
no security-level
no ip address
!
interface GigabitEthernet0/5
shutdown
no nameif
no security-level
no ip address
!
interface Management0/0
management-only
nameif management
security-level 100
ip address 192.168.1.1 255.255.255.0
!
boot system disk0:/asa922-4-smp-k8.bin
ftp mode passive
object network inside-tc
subnet 10.30.60.0 255.255.255.0
object network inside-cac
subnet 10.30.70.0 255.255.255.0
pager lines 24
logging asdm informational
mtu outside 1500
mtu TC 1500
mtu CAC 1500
mtu TCDMZ 1500
mtu CACDMZ 1500
mtu TFDMZ 1500
mtu TPIDMZ 1500
mtu dmz 1500
mtu management 1500
icmp unreachable rate-limit 1 burst-size 1
asdm image disk0:/asdm-7221.bin
no asdm history enable
arp timeout 14400
no arp permit-nonconnected
!
object network inside-tc
nat (CAC,outside) dynamic interface
route outside 0.0.0.0 0.0.0.0 100.30.60.1 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 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
user-identity default-domain LOCAL
http server enable
http 192.168.1.0 255.255.255.0 management
no snmp-server location
no snmp-server contact
crypto ipsec security-association pmtu-aging infinite
crypto ca trustpool policy
telnet timeout 5
no ssh stricthostkeycheck
ssh timeout 5
ssh key-exchange group dh-group1-sha1
console timeout 0
dhcpd address 192.168.1.2-192.168.1.254 management
dhcpd enable management
!
threat-detection basic-threat
threat-detection statistics access-list
no threat-detection statistics tcp-intercept
ssl encryption rc4-sha1 aes128-sha1 aes256-sha1 3des-sha1
!
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
!
service-policy global_policy global
prompt hostname context
no call-home reporting anonymous
Cryptochecksum:baa46f791c408d1b9699c7bf0e60abae
: end
so where is the problem?
thanks in advance
Regards,
MM
01-20-2017 07:58 PM
Only the CAC 10.30.70.0/24 subnet has a NAT rule.
If you are initiating traffic from a host on that subnet, it should work.
01-20-2017 08:31 PM
Hi
you won't have internet from either TC or CAC.
In your config, you've a missconfiguration:
object network inside-tc
nat (CAC,outside) dynamic interface
To mae it working, you'll need to remove the nat above and do the config below:
object network inside-cac
nat (CAC,outside) dynamic interface
object network inside-tc
nat (TC,outside) dynamic interface
Thanks
let me know if that works
PS: Please don't forget to rate and mark as correct answer if this answered your question
01-21-2017 08:56 AM
The NAT command is misconfigured with wrong real interface in your configuration. The object inside-tc is having the subnet which is directly connected behind TC interface. So NAT statement should have TC as the real interface, not the CAC interface. Correct NAT statement should be following
Object network inside-tc
Nat (TC,outside) dynamic interface
Regards,
Mohammad Aakil
01-23-2017 12:49 PM
thanks fo you all
01-23-2017 02:40 PM
You're very welcome.
If this solved your issue please don't forget to rate and mark as correct answer
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