blob: 66855e2717c4b9b391c263f75a3a99e8faf3618f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
#!/bin/bash
ROOT=$(dirname $0)/..
PATH=$ROOT/cmd/tunnel:$PATH
tunnel add name T 2000,listen auth aes 3000
tunnel add name X 3000,listen -aes -auth 4000
tunnel set tunnel.T.secret secret
tunnel set tunnel.X.secret secret
nc -l 4000 &
echo "Hello, World!" | nc -N localhost 2000
wait
tunnel clear
tunnel del T
tunnel del X
|