Exercises firewall: Difference between revisions

(Created page with "= Exercise: Firewall = * Topology is the same as that used for loadbalancing * (40P) Simple firewall ** We will be using the load-balancer experiment as basis ** put blocker.py ...")
 
Line 5: Line 5:
** We will be using the load-balancer experiment as basis
** We will be using the load-balancer experiment as basis
** put blocker.py (https://dl.dropboxusercontent.com/u/1652374/SDN_course_WS2015-2016/Exercises/ex3/blocker.py) in pox/ext/blocker.py
** put blocker.py (https://dl.dropboxusercontent.com/u/1652374/SDN_course_WS2015-2016/Exercises/ex3/blocker.py) in pox/ext/blocker.py
** $ sudo mn --topo single,6 --mac --arp --controller remote
  $ sudo mn --topo single,6 --mac --arp --controller remote
** $ ./pox.py forwarding.l2_learning blocker py
  $ ./pox/pox.py forwarding.l2_learning blocker py (Note that there is a space between blocker and py to enable interactive mode)
*** Note that there is a space between blocker and py to enable interactive mode
*** or  
*** or $ ./pox.py forwarding.l2_learning blocker.py --ports=80,8888,8000
  $ ./pox/pox.py forwarding.l2_learning blocker.py --ports=80,8888,8000 (not recommended)
 
** start Webserver in h1
** start Webserver in h1
*** h1$ python -m SimpleHTTPServer 80
  h1$ python -m SimpleHTTPServer 80
** Try to perform curl or wget from h2 to h1
** Try to perform curl or wget from h2 to h1
*** h2$ curl 10.0.0.1
  h2$ curl 10.0.0.1
** Then block port 80 in pox controller
** Then block port 80 in pox controller
*** pox> block(80)
  pox> block(80)
** Now, again try the following and report what happens
** Now, again try the following and report what happens
*** h2$ curl 10.0.0.1
  h2$ curl 10.0.0.1


* (60P) Advanced Firewall ( I will give you hints)
* (60P) Advanced Firewall ( I will give you hints)
783

edits