Cisco Systems IP Directed Broadcasts

Bookmark this page:  YahooMyWeb Yahoo!  Google Google  Windows Live Favorites Windows Live  del.icio.us del.icio.us  digg digg  Add to Netscape Netscape
Subject Author Date
IP Directed Broadcasts joseph.m.carr 02-26-07
Posted by on February 26, 2007, 10:42 am
Please log in for more thread options
Hey all,

We wish to send IP Directed Broadcasts through our routers (for SMS
2003). This will be used for our Wake on Lan packet. We would like
to set up our interfaces to where the SMS server will be the only one
that the broadcast packets would be allowed to be sent through (to
prevent SMURF attacks). I've read that this was possible, but am not
sure how to proceed. Thanks in advance for an assistance!


Posted by on February 26, 2007, 1:15 pm
Please log in for more thread options
joseph.m.carr@gmail.com writes:
> Hey all,
>
> We wish to send IP Directed Broadcasts through our routers (for SMS
> 2003). This will be used for our Wake on Lan packet. We would like
> to set up our interfaces to where the SMS server will be the only one
> that the broadcast packets would be allowed to be sent through (to
> prevent SMURF attacks). I've read that this was possible, but am not
> sure how to proceed. Thanks in advance for an assistance!

One way to proceed would be with ingress ACLs on all the interfaces
where you wish to defend against SMURF attempts inbound to the router.

A similar way to proceed would be with egress ACLS on all the interfaces
where you wish to permit directed broadcasts emitted from the router.

Say your SMS server is at 1.1.1.100 and you have user segments
at 2.2.2.x and 3.3.3.x where you wish to send directed broadcasts.

Then you could use ACLs like:

ip access-list no-smurf-except-from-SMS-server
permit ip host 1.1.1.100 host 2.2.2.255
permit ip host 1.1.1.100 host 3.3.3.255
deny ip any host 2.2.2.255
deny ip any host 3.3.3.255
permit ip any any

ip access-list no-smurf-at-all
deny ip any host 2.2.2.255
deny ip any host 3.3.3.255
permit ip any any


If you were doing ingress ACLs then you'd put the following on the
interface facing the SMS server:

interface Fa0/0
ip address 1.1.1.1 255.255.255.0
ip access-group no-smurf-except-from-SMS-server in

and the following on each other interface

interface Fa0/1
ip address <whatever>
ip access-group no-smurf-at-all in


If you were doing egress ACLs then you'd put the following on your
2.2.2.x and 3.3.3.x interfaces:

interface Fa0/0
ip address 2.2.2.1 255.255.255.0
ip access-group no-smurf-except-from-SMS-server out
ip directed-broadcast


Of course, you should still make sure that you enable [or disable]
"ip directed-broadcast" appropriately on all the interfaces adjacent
[or not adjacent] to user subnets where you need the broadcasts to
work.

Posted by Thrill5 on February 28, 2007, 7:06 pm
Please log in for more thread options
Here is how you control who can do directed broadcast:

access-list 100 remark Wake on LAN
access-list 100 permit 10.1.2.1

interface fastethernet 0/0
ip directed-broadcast 100

On every interface that has PC's that you want to wake you put "ip
directed-broadcast 100". This is not required on other interfaces (such as
WAN). ACL 100 should list the IP's of the SMS servers (the servers sending
the directed broadcasts.)

Scott
> joseph.m.carr@gmail.com writes:
>> Hey all,
>>
>> We wish to send IP Directed Broadcasts through our routers (for SMS
>> 2003). This will be used for our Wake on Lan packet. We would like
>> to set up our interfaces to where the SMS server will be the only one
>> that the broadcast packets would be allowed to be sent through (to
>> prevent SMURF attacks). I've read that this was possible, but am not
>> sure how to proceed. Thanks in advance for an assistance!
>
> One way to proceed would be with ingress ACLs on all the interfaces
> where you wish to defend against SMURF attempts inbound to the router.
>
> A similar way to proceed would be with egress ACLS on all the interfaces
> where you wish to permit directed broadcasts emitted from the router.
>
> Say your SMS server is at 1.1.1.100 and you have user segments
> at 2.2.2.x and 3.3.3.x where you wish to send directed broadcasts.
>
> Then you could use ACLs like:
>
> ip access-list no-smurf-except-from-SMS-server
> permit ip host 1.1.1.100 host 2.2.2.255
> permit ip host 1.1.1.100 host 3.3.3.255
> deny ip any host 2.2.2.255
> deny ip any host 3.3.3.255
> permit ip any any
>
> ip access-list no-smurf-at-all
> deny ip any host 2.2.2.255
> deny ip any host 3.3.3.255
> permit ip any any
>
>
> If you were doing ingress ACLs then you'd put the following on the
> interface facing the SMS server:
>
> interface Fa0/0
> ip address 1.1.1.1 255.255.255.0
> ip access-group no-smurf-except-from-SMS-server in
>
> and the following on each other interface
>
> interface Fa0/1
> ip address <whatever>
> ip access-group no-smurf-at-all in
>
>
> If you were doing egress ACLs then you'd put the following on your
> 2.2.2.x and 3.3.3.x interfaces:
>
> interface Fa0/0
> ip address 2.2.2.1 255.255.255.0
> ip access-group no-smurf-except-from-SMS-server out
> ip directed-broadcast
>
>
> Of course, you should still make sure that you enable [or disable]
> "ip directed-broadcast" appropriately on all the interfaces adjacent
> [or not adjacent] to user subnets where you need the broadcasts to
> work.



Posted by response3 on March 21, 2007, 1:40 pm
Please log in for more thread options
> Here is how you control who can do directed broadcast:
>
> access-list 100 remark Wake on LAN
> access-list 100 permit 10.1.2.1
>
> interface fastethernet 0/0
> ip directed-broadcast 100
>
> On every interface that has PC's that you want to wake you put "ip
> directed-broadcast 100". This is not required on other interfaces (such as
> WAN). ACL 100 should list the IP's of the SMS servers (the servers sending
> the directed broadcasts.)
>
>
>
> > joseph.m.c...@gmail.com writes:
> >> Hey all,
>
> >> We wish to send IP Directed Broadcasts through our routers (for SMS
> >> 2003). This will be used for our Wake on Lan packet. We would like
> >> to set up our interfaces to where the SMS server will be the only one
> >> that the broadcast packets would be allowed to be sent through (to
> >> prevent SMURF attacks). I've read that this was possible, but am not
> >> sure how to proceed. Thanks in advance for an assistance!
>
> > One way to proceed would be with ingress ACLs on all the interfaces
> > where you wish to defend against SMURF attempts inbound to the router.
>
> > A similar way to proceed would be with egress ACLS on all the interfaces
> > where you wish to permit directed broadcasts emitted from the router.
>
> > Say your SMS server is at 1.1.1.100 and you have user segments
> > at 2.2.2.x and 3.3.3.x where you wish to send directed broadcasts.
>
> > Then you could use ACLs like:
>
> > ip access-list no-smurf-except-from-SMS-server
> > permit ip host 1.1.1.100 host 2.2.2.255
> > permit ip host 1.1.1.100 host 3.3.3.255
> > deny ip any host 2.2.2.255
> > deny ip any host 3.3.3.255
> > permit ip any any
>
> > ip access-list no-smurf-at-all
> > deny ip any host 2.2.2.255
> > deny ip any host 3.3.3.255
> > permit ip any any
>
> > If you were doing ingress ACLs then you'd put the following on the
> > interface facing the SMS server:
>
> > interface Fa0/0
> > ip address 1.1.1.1 255.255.255.0
> > ip access-group no-smurf-except-from-SMS-server in
>
> > and the following on each other interface
>
> > interface Fa0/1
> > ip address <whatever>
> > ip access-group no-smurf-at-all in
>
> > If you were doing egress ACLs then you'd put the following on your
> > 2.2.2.x and 3.3.3.x interfaces:
>
> > interface Fa0/0
> > ip address 2.2.2.1 255.255.255.0
> > ip access-group no-smurf-except-from-SMS-server out
> > ip directed-broadcast
>
> > Of course, you should still make sure that you enable [or disable]
> > "ip directed-broadcast" appropriately on all the interfaces adjacent
> > [or not adjacent] to user subnets where you need the broadcasts to
> > work.

I've been through this exact scenario, where we needed to forward SMS
broadcasts on port 20000. The easiest way? Just do this to every
layer-3 device in your network:

ip forward-protocol udp 20000

Brian


Similar ThreadsPosted
IP Directed Broadcasts February 26, 2007, 10:42 am
UDP Broadcasts filling log on PIX September 12, 2005, 4:15 pm
Regarding UDP Broadcasts and Multicasts April 6, 2006, 2:13 pm
Router on a stick and broadcasts August 16, 2006, 1:14 pm
DHCP broadcasts not going over VTP trunk. December 13, 2006, 9:57 am
udp broadcasts and browse master September 5, 2007, 6:57 am
Trackdown IP sending Broadcasts to PIX? January 2, 2008, 1:38 pm
MAC ACL and Cat3750 - broadcasts allowed or what? September 26, 2008, 8:44 am
How to forward ethernet broadcasts to an ISDN PRI? December 11, 2005, 5:32 am
interface showing large number of broadcasts September 2, 2005, 3:38 pm