VPP ACL

Membuat/Menimpa rule ACL

Sintaks Dasar:

sudo vppctl "set acl-plugin acl index <nomor_index> <aturan_1> , <aturan_2> , <aturan_terakhir_permit>"

Contoh (Blokir SMTP Port 25, Izinkan sisanya):

vppctl "set acl-plugin acl index 0 deny src 0.0.0.0/0 dst 0.0.0.0/0 proto 6 sport 0-65535 dport 25-25 , permit src 0.0.0.0/0 dst 0.0.0.0/0"
Nama ProtokolKode VPPPenggunaan Umum
ICMPproto 1Ping, Traceroute IPv4
TCPproto 6Web (80/443), BGP (179), SMTP (25), SSH (22)
UDPproto 17DNS (53), SNMP (161), QUIC, WireGuard
ICMPv6proto 58Ping dan Neighbor Discovery IPv6
Semuaproto 0Mengizinkan atau memblokir seluruh tipe trafik

Melihat rule ACL

Untuk melihat rule ACL yang telah kita buat perintahnya:

vppctl show acl-plugin acl

Menerapkan ACL ke Interface (Bind / Apply)

Sintaks Dasar:

vppctl set acl-plugin interface <nama_interface> <input/output> acl <nomor_index>

Contoh (Terapkan ACL Index 0 ke VLAN 1001 pelanggan):

vppctl set acl-plugin interface sfpplus2.1001 input acl 0

Melihat interface yang dipasangi/bind ACL

Melihat Singkat Interface Mana yang Dipasangi ACL:

vppctl show acl-plugin interface

Melepas ACL dari Interface (Unbind / Detach)

Contoh (Melepas ACL Index 0 dari VLAN 1001):

vppctl set acl-plugin interface sfpplus2.1001 input del acl 0

Menghapus rule ACL

Sintaks Dasar:

sudo vppctl set acl-plugin acl index <nomor_index> del

Contoh (Mengosongkan Index 0):

vppctl set acl-plugin acl index 0 del