Aug 12

Bloqueando IP’s via iptables no servidor

Para bloquear:

sudo iptables -t filter -A FORWARD -d 0/0 -s IP -m mac –mac-source MAC_ADDRESS -j REJECT

Para liberar:

sudo iptables -t filter -D FORWARD -d 0/0 -s IP -m mac –mac-source MAC_ADDRESS -j ACCEPT

Bastando mudar IP e MAC_ADDRESS.

Share and Enjoy:
  • E-mail this story to a friend!
  • Print this article!
  • del.icio.us
  • Digg
  • Google
  • TwitThis
  • Facebook
  • Live
  • StumbleUpon

No Comments

Leave a comment