Skip to content

Networking

DNS

Blocklist

Protocols

Tools

Speedtest

  • Fast.com - How fast is your download speed? In seconds, FAST.com's simple Internet speed test will estimate your ISP speed.
  • Internet Speed Test

Wireguard

bash
# place wireguard config at `/etc/wireguard/wg0.conf`

wg-quick up wg0
wg-quick down wg0

SSH

Create SSH key

bash
ssh-keygen -t ed25519

SSH Config

bash
Host github.com
  HostName github.com
  User git
  IdentityFile ~/.ssh/id_rsa

Proxy setup

bash
Host my-bastion
    HostName 1.2.3.4 (Bastion Public IP)
    User ec2-user
    IdentityFile ~/.ssh/my-key.pem

Host private-vm
    HostName 10.0.1.50 (VM Private IP)
    User ec2-user
    IdentityFile ~/.ssh/my-key.pem
    ProxyJump my-bastion

Disable password auth

bash
sudo nano /etc/ssh/sshd_config

# change this line
PasswordAuthentication no

# restart
sudo /etc/init.d/ssh restart

Port forwarding

bash
ssh -L 5000:targethost:5000 NAME@TUNNEL_HOST

Add key to ssh-agent

bash
ssh-add --apple-use-keychain $KEY_PATH

Fix Bad owner or permissions on ~/.ssh/config

bash
chown $USER ~/.ssh/config
chmod 644 ~/.ssh/config

Interface

bash
# disable network interface
sudo ifconfig wlan0 down

Cookbook

Intercepting HTTPS traffic on iOS

  1. Start proxy server
  2. Specify proxy for Wi-Fi SSID
  3. Obtain SSL cert via magic domain
  4. Install cert (Settings > General > VPN & Device Management)
  5. Trust cert (Settings > General > About > Certificate Trust Settings)

Tools