Results 1 to 3 of 3
Enjoy an ad free experience by logging in. Not a member yet? Register.
Question: How do I block someone using MAC or IP Address? (IPTables)
How can I block this buggy guys trying to flood my server using iptables with MAC filtering (preferrable) or IP (last solution)? Please try to give me a full syntax and some little samples.
I'm still an trainee and training the hard way (by my own and continously reading my logs @.@) 'cause they don't teach this right now at my college (I'm a Linux geek Freshman XD), so please, patience about this question.
Thx for reading, I appreciate your answers & comments
- Join Date
- Feb 2006
/sbin/iptables -A INPUT -m mac --mac-source XX:XX:XX:XX:XX:XX -j DROP /sbin/iptables -A INPUT -s <address[/mask]> -j DROP
For example this could be a file which you load with iptables-restore (because iptables interpretes this, you don't need to give "/sbin/iptables"). Note this example config won't give a full protection for you!
*filter :INPUT DROP [0:0] :FORWARD DROP [0:0] :OUTPUT ACCEPT [0:0] -A INPUT -m mac --mac-source 00:00:00:00:00:00 -j DROP -A INPUT -s 192.168.1.1 -j DROP COMMIT
Thanks 4 your help and pacience ! It really helps me a lot !
Well... I'm going to still searching effective ways to stop attacks, still learning and I thought It would be easy to stop them via MAC...
Thank you ! See you around.