@ -26,10 +26,11 @@ The second match extension is called *ts3init_get_puzzle*. It matches if the pac
@@ -26,10 +26,11 @@ The second match extension is called *ts3init_get_puzzle*. It matches if the pac
$ iptables -m ts3init_get_puzzle -h
<..>
ts3init_get_puzzle match options:
--min-client n The sending client needs to be at least version n.
--check-cookie seed Check the cookie. Assume it was generated with seed.
seed is a 60 byte random number in hex. A source
could be /dev/random.
--min-client n The sending client needs to be at least version.
--check-cookie Check that the cookie was generated by same seed.
--seed <seed> Seed is a 60 byte lowercase hex number in.
A source could be /dev/random.
--seed-file <file> Read the seed from a file.
```
The min-client parameter is the same as above. The check-cookie parameter matches if it matches the cookie that was generated in the netfilter target extension ts3init_set_cookie. To match the seed needs to be exactly the same of course. It is possible to check cookies that were generated on a different machine, provided that those machines have the same date and time, and the seem seed specified. In other words: The cookie is created in a deterministic way, depending only on the current time and the seed.
@ -58,13 +64,31 @@ static int ts3init_get_puzzle_parse(int c, char **argv, int invert, unsigned int
@@ -58,13 +64,31 @@ static int ts3init_get_puzzle_parse(int c, char **argv, int invert, unsigned int