#cloud-config
users:
- name: ftr
sudo: ALL=(ALL) NOPASSWD:ALL
shell: /bin/bash
ssh_authorized_keys:
- ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIPEgoBch01fihQVuSDbwzKfnKIdG6oX0LVQ7hBejH3KQ ftr-test-key
packages:
- build-essential
- git
- curl
- libpcap-dev
- net-tools
- iputils-ping
- traceroute
runcmd:
# Install Rust
- curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sudo -u ftr sh -s -- -y
- echo 'source /Users/dew/.cargo/env' >> /home/ftr/.bashrc
# Clone ftr repository
- sudo -u ftr git clone https://github.com/dweekly/ftr /home/ftr/ftr
# Configure SSH for easy access
- sed -i 's/#Port 22/Port 22022/' /etc/ssh/sshd_config
- systemctl restart sshd
# Enable IP forwarding for testing
- echo 'net.ipv4.ip_forward=1' >> /etc/sysctl.conf
- sysctl -p
final_message: "ftr Ubuntu test VM ready!"