Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I tried to use the following command from iw tools: dev <devname> station set <MAC address> plink_action <open|block> like this : iw dev wlan0 station set 30:14:4a:3e:f0:98 plink_action block. And I get the following error: command failed: Invalid argument (-22) . I don't know what I am doing wrong. This is for my adhoc (ibss) mesh network so that I can force multihopping.

I am using PC Alix boards, and an Atheros chipset and ATH5k driver.

share|improve this question
up vote 2 down vote accepted

iptables -A INPUT -m mac --mac-source <mac_addr> -j DROP is the way to go. A very very useful tool this.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.