tcp/run
2024-01-12 07:57:39 -05:00

6 lines
184 B
Bash
Executable file

#!/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