In Class Lab 3 (11/22).
Please download lab setup files from here.
You will also need DNS Cache Poisoning.
The following commands will also be useful:
rndc dumpdb -cache
rndc flush
cat /var/cache/bind/dump.db
tc qdisc add dev eth0 root netem delay 100ms
tc qdisc del dev eth0 root netem
tc qdisc show dev eth0
In Class Lab 4 (11/29).
Please download lab setup files from here.
The following commands will also be useful:
iptables -t filter -L -n --line-numbers
iptables -A INPUT -p icmp --icmp-type echo-request -j ACCEPT
iptables -A FORWARD -p icmp --icmp-type echo-request -j DROP
iptables -A FORWARD -i eth0 -p tcp --sport 5000 -j ACCEPT
iptables -A FORWARD -p tcp -m conntrack --ctstate ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -p tcp -i eth0 --dport 8080 --syn -m conntrack --ctstate NEW -j ACCEPT