Skip to content

Instantly share code, notes, and snippets.

View alexpyattaev's full-sized avatar
💘
Make code not war.

Alex Pyattaev alexpyattaev

💘
Make code not war.
  • Tampere, Finland
View GitHub Profile
@alexpyattaev
alexpyattaev / virtual_pair.sh
Created January 11, 2025 22:39
Veth setup with packet loss
echo "This script should be run as root"
DELAY_MS=100
DELAY_DISTRIBUTION=50
LOSS_PERCENT=2
CLI="ip netns exec client"
SRV="ip netns exec server"
echo "Cleanup, ignore errors if this is first run"
ip netns del client
ip netns del server