Skip to content

atlarge-research/ANP-docker

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ANP-docker

The docker setup for Advanced network programming made with help from Job Paardekooper

Setup

Clone this repository

git clone https://github.com/atlarge-research/ANP-docker.git

Get your copy of the ANP-netskeleton

Unzip your anp-2024-netskeleton into anp-netskeleton THE NAME MATTERS

unzip anp-2024-skeleton-main.zip -d anp_netskeleton

Build or pull the docker image

chmod +x ./container.sh && ./container.sh

Start the docker container

chmod +x ./start.sh && ./start.sh

Connect over SSH or Vscode

SSH

Password: dev

ssh -p 2222 dev@localhost

Vscode

  • In vscode, go to the extentions tab, and look for Docker from Microsoft and install it.
  • Then go to the bottom-left corner of vscode, and click the >/< symbols, and Attach to running container. You should see your container here, if not, you may be (accidentally) doing something odd with docker contexts.

set up networking devices

Due to the docker setup, some scripts need fixing. When in the container, navigate to /home/ubuntu/anp_netskeleton/bin/

cd /home/ubuntu/anp_netskeleton/bin/

Setup the TUN/TAP device

sudo ./bin/sh-make-tun-dev.sh

Setup the TUN/TAP device

sudo ./bin/sh-disable-ipv6.sh

Setup NATing between the TUN/TAP device and virtual machine - use the NIC which connects to the host via NAT

sudo ./bin/sh-setup-fwd.sh eth0

End

Now you can follow the regular build instructions from the handbook PDF.

About

The docker setup for Advanced network programming

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published