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

  1. Get your partner. (Group in pair, A & B)
  2. Import the VM.
  3. Connect to your partner through SSH.(Testing)
  4. Make an SSH tunnel.(A -> B)
  5. Set the Network proxy in A.
  6. Start tcpdump(B).
  7. 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?

  1. Download VM
  2. Open VMware
  3. Import VM
  4. Turn the Network connection to BRIDGE
  5. Generate a new MAC-address
  6. 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