Jump to content

MAC Filtering


codeforge

Recommended Posts

Hi,

i'm trying to block all connection from a specified mac address but it doesn't work. The payload that i'm using is this:

#!/bin/bash
# LOCK MAC ADDRESS

function setup() {
        # Show SETUP LED
        LED SETUP

        # Set the network mode to NAT
        NETMODE BRIDGE
        sleep 7

}

function run() {
        # Show  ATTACK LED
        LED ATTACK

        # Block all traffic for/from specified mac address
        iptables -A INPUT -m mac --mac-source 00:12:34:56:78:90 -j DROP
        sleep 3
}

setup
run

What i'm doing wrong?

 

Thanks

Link to comment
Share on other sites

7 hours ago, Dave-ee Jones said:

I already see this page and try it but nothing change, i try many google result but no one can block traffic from mac address (in or out).

I try to use NETMODE BRIDGE and NETMODE NAT too.

I want to try to restart iptables service but in PS i cannot find service command or /etc/init.d/iptables command, so i don't know how to restart it when in arming mode.

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...