NASA Lab 2
@piepie01
Outline
- tcpdump
- iperf
- Exercise 1 - Facebook again!?
- Import VM
- ssh tunnel
- Exercise 2 -iperf
Tcpdump
Tcpdump
- Dump the traffic on a network
- Wireshark : GUI, Tcpdump : CLI
Example
sudo tcpdump -D
sudo tcpdump -I any -A -s 1024 "dst port 443"
Iperf
Measure the bandwidth
Iperf
- iPerf is a tool for active measurements of the maximum achievable bandwidth on IP networks.
Exercise 1
Facebook again!?
Steps
- Get your partner. (Group in pair, A & B)
- Import the VM.
- Connect to your partner through SSH.(Testing)
- Make an SSH tunnel.(A -> B)
- Set the Network proxy in A.
- Start tcpdump(B).
- Login fakebook(A).
Goal
- Show the account&password in B to TA
Infrastructure
Import VM
Ubuntu 12.04.5
Why VM?
- Tcpdump needs privileged mode.
- Install packages easily.
How?
- Download VM
- Open VMware
- Import VM
- Turn the Network connection to BRIDGE
- Generate a new MAC-address
- Boot it
Account:nasa2019 password:nasa
SSH tunnel
Command
ssh nasa2019@192.168.204.X -D 8888
Network proxy
- Keyword : SOCKS Proxy
Infrastructure
Exercise 2
iperf
Install
sudo apt-get install iperf
VM A - server
VM B - client
iperf -s
iperf -c [server's IP]
Goal
- Show the results to TA
If you can't make it on time......
- TA hour : 3/5 17:20~18:10, 3/8 17:20~18:10 or 3/11 in class
- Location : R217
- Note : Build two VM in one device (change Bridge to NAT!!!!!)
NASA2019-lab2
By piepie01
NASA2019-lab2
- 729