Skip to content

Commit

Permalink
updated docs
Browse files Browse the repository at this point in the history
  • Loading branch information
Snawoot committed Aug 13, 2017
1 parent 0b73740 commit 177e0a7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,19 @@ Place file anywhere you want and run.
Server example:

```bash
./pyknockd.py 60120 MySecretPSK 'ipset add -exist myallowedset $ip timeout 3600' 'ipset del -exist myallowedset $ip'
./pyknockd.py MySecretPSK 'ipset add -exist myallowedset $ip timeout 3600' 'ipset del -exist myallowedset $ip'
```

Client example:

```bash
./pyknock.py open my-protected-host.com 60120 MySecretPSK
./pyknock.py open my-protected-host.com MySecretPSK
```

Client behind NAT example:

```bash
./pyknock.py -S $(curl -s http://canihazip.com/s) open my-protected-host.com MySecretPSK
```

See help for more options.

0 comments on commit 177e0a7

Please sign in to comment.