View previous topic :: View next topic |
Author |
Message |
SerfurJ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 10 Apr 2004 Posts: 824 Location: Texas
|
Posted: Wed Mar 09, 2005 7:40 pm Post subject: how to block incoming netbios broadcasts using iptables? |
|
|
i'm trying to block incoming netbios broadcasts using iptables. what am i doing wrong here?
Code: |
$IPTABLES -A INPUT -p UDP --dport 135:137 -j DROP
$IPTABLES -A INPUT -p UDP --dport 135:137 -s 0/0 -j DROP
$IPTABLES -A INPUT -p UDP --dport 135:137 -s 192.168.0.0/24 -j DROP
|
this doesn't work either
Code: |
$IPTABLES -A INPUT -p UDP -i $INET_IFACE --destination-port 135:139 -j DROP
$IPTABLES -A INPUT -p TCP -i $INET_IFACE --destination-port 135:139 -j DROP
|
(and yes, i'm new to setting up rules for iptables.) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
SerfurJ l33t
![l33t l33t](/images/ranks/rank_rect_4.gif)
Joined: 10 Apr 2004 Posts: 824 Location: Texas
|
Posted: Wed Mar 09, 2005 9:18 pm Post subject: |
|
|
i figured it out. it was the order. they were after a rule that filtered all packets. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|