Object groups کے ساتھ extended ACLs بنائیں اور interfaces پر apply کریں تاکہ security levels کے درمیان traffic control ہو۔
Object groups ke sath extended ACLs banao aur interfaces par apply karo taake security levels ke darmiyan traffic control ho.
Build extended ACLs with object groups and apply them to interfaces to control traffic between security levels.
ACL گارڈ کی لکھی ہوئی instruction list ہے: 'delivery trucks کو gate B سے آنے دو، gate C سے سب کو روکو۔' Object groups صرف nicknames ہیں — 50 IP addresses لکھنے کے بجائے آپ لکھتے ہیں 'finance team'۔
ACL guard ki likhi hui instruction list hai: 'delivery trucks ko gate B se ane do, gate C se sab ko roko.' Object groups sirf nicknames hain — 50 IP addresses likhne ke bajaye aap likhte hain 'finance team'.
An ACL is the guard's written instruction list: 'let delivery trucks enter through gate B, block everyone from gate C.' Object groups are just nicknames — instead of listing 50 IP addresses, you write 'the finance team'.

asa-02 والا ASAv: inside 10.1.1.0/24، dmz 172.16.1.0/24 (web server 172.16.1.10)، outside 203.0.113.0/24 کی طرف۔ Goal: دنیا صرف DMZ web server تک ports 80/443 پر پہنچے۔
asa-02 wala ASAv: inside 10.1.1.0/24, dmz 172.16.1.0/24 (web server 172.16.1.10), outside 203.0.113.0/24 ki taraf. Goal: duniya sirf DMZ web server tak ports 80/443 par pahunche.
ASAv from asa-02: inside 10.1.1.0/24, dmz 172.16.1.0/24 (web server 172.16.1.10), outside facing 203.0.113.0/24. Goal: allow the world to reach only the DMZ web server on ports 80/443.
DMZ servers کے لیے network object group اور web ports 80/443 کے لیے TCP service object group بنائیں۔
DMZ servers ke liye network object group aur web ports 80/443 ke liye TCP service object group banao.
Create a network object group for DMZ servers and a TCP service object group for web ports 80 and 443.
object-group network DMZ_SERVERSnetwork-object host 172.16.1.10exitobject-group service WEB_PORTS tcpport-object eq wwwport-object eq httpsexitExtended ACL لکھیں: کہیں سے بھی DMZ servers group تک TCP permit کریں، صرف web ports group پر۔ باقی سب end والے implicit deny سے deny ہو جائے گا۔
Extended ACL likho: kahin se bhi DMZ servers group tak TCP permit karo, sirf web ports group par. Baqi sab end wale implicit deny se deny ho jayega.
Write the extended ACL: permit TCP from anywhere to the DMZ servers group, only on the web ports group. Everything else is denied by the implicit deny at the end.
access-list OUTSIDE_IN extended permit tcp any object-group DMZ_SERVERS object-group WEB_PORTSACL کو outside interface پر inbound apply کریں۔ Direction matter کرتی ہے: 'in' کا مطلب internet سے ASA میں داخل ہونے والا traffic۔
ACL ko outside interface par inbound apply karo. Direction matter karti hai: 'in' ka matlab internet se ASA mein dakhil hone wala traffic.
Apply the ACL inbound on the outside interface. Direction matters: 'in' means traffic entering the ASA from the internet.
access-group OUTSIDE_IN in interface outsideInside users کو full outbound access دیں: inside LAN سے all IP permit کرنے والی ACL، inside interface پر inbound apply کریں۔
Inside users ko full outbound access do: inside LAN se all IP permit karne wali ACL, inside interface par inbound apply karo.
Give inside users full outbound access with an ACL permitting all IP from the inside LAN, applied inbound on the inside interface.
access-list INSIDE_OUT extended permit ip 10.1.1.0 255.255.255.0 anyaccess-group INSIDE_OUT in interface insideACLs اور ان کے hit counts verify کریں۔ ہر line بتاتی ہے کتنے packets match ہوئے — permit line پر zero hits کا مطلب traffic ASA تک نہیں پہنچ رہا یا match نہیں ہو رہا۔
ACLs aur unke hit counts verify karo. Har line batati hai kitne packets match hue — permit line par zero hits ka matlab traffic ASA tak nahi pahunch raha ya match nahi ho raha.
Verify the ACLs and their hit counts. Each line shows how many packets matched — zero hits on the permit line means the traffic isn't reaching the ASA or isn't matching.
show access-list OUTSIDE_INshow access-list INSIDE_OUT🖱️ ASDM: Configuration > Firewall > Access Rules — same rules table کی صورت میں؛ ہر row پر hit counts نظر آتے ہیں۔ASDM: Configuration > Firewall > Access Rules — same rules table ki surat mein; har row par hit counts nazar aate hain.ASDM: Configuration > Firewall > Access Rules — the same rules shown as a table; hit counts visible per row.
Configuration save کریں۔
Configuration save karo.
Save the configuration.
write memory`show access-list` میں دونوں ACLs incrementing hit counts کے ساتھ نظر آئیں، `show run access-group` میں دونوں inbound applied ہوں، اور DMZ web server outside سے صرف port 80 پر reachable ہو۔
`show access-list` mein dono ACLs incrementing hit counts ke sath nazar aain, `show run access-group` mein dono inbound applied hon, aur DMZ web server outside se sirf port 80 par reachable ho.
`show access-list` shows the two ACLs with incrementing hit counts, `show run access-group` shows both applied inbound, and the DMZ web server is reachable from outside on port 80 only.
show access-listshow run access-groupshow run object-group