Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| networking:cisco:extd-acl [2026/02/04 23:24] – [Some acction] ilyasa | networking:cisco:extd-acl [2026/02/04 23:38] (current) – [Testing] ilyasa | ||
|---|---|---|---|
| Line 68: | Line 68: | ||
| ===== Topologi ===== | ===== Topologi ===== | ||
| - | Gambar topology | + | {{ : |
| - | Goals Topology | + | Tujuan: |
| - | ===== Konfigurasi ===== | + | |
| - | | + | - Block akses ssh pada LAN 2 ke Server-C |
| - | < | + | |
| - | Switch(config)# | + | |
| - | Switch(config-vlan)#name BIRU | + | |
| - | Switch(config-vlan)#exit | + | |
| - | Switch(config)# | + | <hidden Preconfig> |
| - | Switch(config-vlan)#name MAGENTA | + | * **R1: Preconfig** |
| - | Switch(config-vlan)#exit | + | <code js> |
| + | hostname R1 | ||
| + | ! | ||
| + | ip dhcp excluded-address 192.168.1.1 | ||
| + | ip dhcp excluded-address 192.168.2.1 | ||
| + | ! | ||
| + | ip dhcp pool LAN1 | ||
| + | | ||
| + | | ||
| + | ! | ||
| + | ip dhcp pool LAN2 | ||
| + | | ||
| + | | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address 172.16.1.1 255.255.255.252 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address 192.168.1.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface FastEthernet1/ | ||
| + | ip address 192.168.2.1 255.255.255.0 | ||
| + | no shutdown | ||
| + | ! | ||
| + | router ospf 1 | ||
| + | | ||
| + | | ||
| + | | ||
| + | ! | ||
| </ | </ | ||
| - | * **Step 2 : Assign VLANs ke Ports** | ||
| - | < | ||
| - | Switch(config)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config-if)# | ||
| - | Switch(config)# | + | * **R2: Preconfig** |
| - | Switch(config-if)# | + | <code js> |
| - | Switch(config-if)# | + | hostname R2 |
| - | Switch(config-if)# | + | ! |
| + | ip dhcp pool SERVER | ||
| + | | ||
| + | | ||
| + | ! | ||
| + | interface | ||
| + | ip address 172.16.1.2 255.255.255.252 | ||
| + | no shutdown | ||
| + | ! | ||
| + | interface FastEthernet0/ | ||
| + | ip address | ||
| + | no shutdown | ||
| + | ! | ||
| + | router ospf 1 | ||
| + | | ||
| + | | ||
| </ | </ | ||
| + | </ | ||
| + | ===== Konfigurasi ===== | ||
| + | <WRAP center round info 90%> | ||
| + | Apabilsa standar ACL umumnya ditempatkan paling dekat dengan tujuan. Extended ACL lebih baik ditempatkan paling dekat dengan sumber. | ||
| + | </ | ||
| + | ==== Membuat extended ACL rules ==== | ||
| + | === block https access dari lan1 === | ||
| + | * Membuat access control liss | ||
| + | <code js> | ||
| + | R1(config)# | ||
| + | R1(config-ext-nacl)# | ||
| + | R1(config-ext-nacl)# | ||
| + | </ | ||
| + | * terapkan pada interface | ||
| + | <code js> | ||
| + | R1(config)# | ||
| + | R1(config-if)# | ||
| + | </ | ||
| + | === block ssh access dari lan2 === | ||
| + | * Membuat access control list | ||
| + | <code js> | ||
| + | R1(config)# | ||
| + | R1(config-ext-nacl)# | ||
| + | R1(config-ext-nacl)# | ||
| + | </ | ||
| + | * terapkan pada interface | ||
| + | <code js> | ||
| + | R1(config)# | ||
| + | R1(config-if)# | ||
| + | </ | ||
| ===== Testing ===== | ===== Testing ===== | ||
| + | * **LAN1 Mencoba akses http❌, dan ssh✅** | ||
| + | {{ : | ||
| + | * **LAN2 Mencoba akses http✅, dan ssh❌** | ||
| + | {{ : | ||
| + | |||