Filtering Mac Address di Debian

Kita bisa mengunakan iptables untuk melakukan filtering terhadap mac address tertentu.

1. Block mac Address:
iptables -A INPUT -m mac –mac-source 0a:00:27:00:00:00 -j DROP
iptables -A INPUT -m mac –mac-source 52:54:00:12:35:02 -j DROP

2. Mengijinkan mac address:
iptables -A INPUT -m mac –mac-source 0a:00:27:00:00:00 -j ACCEPT
iptables -A INPUT -m mac –mac-source 52:54:00:12:35:02 -j ACCEPT

3. Menambahkan IP, dipastikan IP yang ditambahkan sesuai dengan mac address kalau tidak akan ditolak.
iptables -A INPUT -s 192.168.1.102 -m mac –mac-source 0a:00:27:00:00:00 -j ACCEPT
iptables -A INPUT -s 192.168.1.105 -m mac –mac-source 52:54:00:12:35:02 -j ACCEPT

This entry was posted in LINUX, SECURITY, Server. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s