Task 1: Preparation
You can find the starter files in the directory: switchyard/examples/exercises/firewall. Let's start with it.
- Create a directory named
lab_7inswitchyard. - Copy
examples/exercises/firewall/start_mininet.pytolab_7/start_mininet.py. - Copy
examples/exercises/firewall/firewall.pytolab_7/firewall.py. - Copy
examples/exercises/firewall/firewalltests.pytolab_7/firewalltests.py. - Copy
examples/exercises/firewall/www/start_webserver.shtolab_7/www/start_webserver.sh. - Download the rules text file
firewall_rules.txtinto the folderlab_7.
Finally, your project will look like
switchyard
├─docs/
├─.../
+ ├─lab_7/
+ │ ├─123456789拾佰仟_lab_7.pdf
+ │ ├─firewall.py
+ │ ├─firewall_rules.txt
+ │ ├─firewalltests.py
+ │ ├─www
+ │ │ ├─start_webserver.sh
│ ├─...
+ │ └─start_mininet.py
├─.gitignore
└─...
[!WARNING] All of your modifications should be done on the files under your directory
lab_7. We will check and compare the git commits to judge the originality of your work. So remember to commit every time you complete one small task.