783
edits
Line 112: | Line 112: | ||
** We have done kinetic firewall in exercise VII and imitated the same firewall using pox in exercise VIII. Now, we will imitate the same firewall using pyretic. | ** We have done kinetic firewall in exercise VII and imitated the same firewall using pox in exercise VIII. Now, we will imitate the same firewall using pyretic. | ||
** The basic solution is taken from the Internet [https://dl.dropboxusercontent.com/u/1652374/SDN_Course/Exercises/pyretic_gardenwall_internetsolution1.py], test if it is able to block h1 when "infected". Note that we will only use the "infected == True" for this exercise. | ** The basic solution is taken from the Internet [https://dl.dropboxusercontent.com/u/1652374/SDN_Course/Exercises/pyretic_gardenwall_internetsolution1.py], test if it is able to block h1 when "infected". Note that we will only use the "infected == True" for this exercise. | ||
*** start controller (in /home/mininet/pyretic folder): pyretic.py pyretic.examples. | *** Copy the above code into /home/mininet/pyretic/pyretic/examples as gardenwall_internetsolution.py | ||
*** start controller (in /home/mininet/pyretic folder): pyretic.py pyretic.examples.gardenwall_internetsolution | |||
*** start mininet: sudo mn --controller=remote --topo=single,3 --mac --arp | *** start mininet: sudo mn --controller=remote --topo=single,3 --mac --arp | ||
*** check h1 ping h2 | *** check h1 ping h2 |
edits