Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to block incoming netbios broadcasts using iptables?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Wed Mar 09, 2005 7:40 pm    Post subject: how to block incoming netbios broadcasts using iptables? Reply with quote

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
View user's profile Send private message
SerfurJ
l33t
l33t


Joined: 10 Apr 2004
Posts: 824
Location: Texas

PostPosted: Wed Mar 09, 2005 9:18 pm    Post subject: Reply with quote

i figured it out. it was the order. they were after a rule that filtered all packets.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum