Software Defined Networking
cancel
Showing results for 
Search instead for 
Did you mean: 

SDN Controller to drop packet from a specify IP address?

 
Highlighted
Visitor

SDN Controller to drop packet from a specify IP address?

SDN Controller to drop packet from a specify IP address.

can this be done? How?

2 REPLIES 2
Highlighted
Valued Contributor

Re: SDN Controller to drop packet from a specify IP address?

Hello,

 

You can create add a flow from the controller to your DPID matching the source or destination IP.

You can achieve this using the controller RSdocs or via the cli (using Curl).

 

Please check our REST API guide for more information:

 

 

http://h20564.www2.hpe.com/hpsc/doc/public/display?docId=c04647295&lang=en-us&cc=us

 

Regards,

 

Antonio

SDN Team

Highlighted
Visitor

Re: SDN Controller to drop packet from a specify IP address?

what do i need to put under instructions in order to drop it? 

example that 10.0.0.1 is the malicous address and i want to drop packet from this 10.0.0.1

 

POST /sdn/v2.0/of/datapaths/10.0.0.1/flows

 

{ "flow":{ "priority":30000, "table_id":200, "idle_timeout":60,

 

"match":[ { "ipv4_src":"10.0.0.1" } ],

 

 

"instructions":[ { "apply_actions":[ { "drop" } ] }

 

] } }

 

can i put it this way? did i do it correctly?

 

edited- at RSdoc i tried but the response code is 0. even i tried doing /auth with

{ "login":{ "user":"sdn", "password":"skyline", "domain":"sdn" } }  

andi i still get response code is still 0.

why?