tcp/run

7 lines
184 B
Text
Raw Permalink Normal View History

2024-01-12 07:57:39 -05:00
#!/bin/bash
cargo b --release &&
sudo setcap cap_net_admin=eip ./target/release/tcp &&
./target/release/tcp &&
sudo ip addr add 192.168.69.1/24 dev tun0 &&
trap "killall tcp" INT TERM