7 lines
184 B
Text
7 lines
184 B
Text
|
#!/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
|