6 lines
184 B
Bash
Executable file
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
|