You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: .traefik.yml
+3-1Lines changed: 3 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -4,7 +4,7 @@ iconPath: .assets/icon.png
4
4
5
5
import: github.com/CAJIO/allowiprequest
6
6
7
-
summary: '[CAJIO] Allow IP Request on request path /knock-knock'
7
+
summary: 'Its plugin that allows you to whitelist your ip address by visiting a secret URL. It protects your services by blocking all requests by default while allowing users to self-whitelist their IP address by visiting a secret URL.'
Copy file name to clipboardExpand all lines: readme.md
+57Lines changed: 57 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,6 +25,8 @@ To use this plugin, you must configure it in your Traefik dynamic configuration.
25
25
|`knockUrl`|`string`|`"/knock-knock"`| The specific URL path users must visit to whitelist their IP. |
26
26
|`whitelistDuration`|`string`|`"24h"`| How long the IP remains whitelisted (e.g., "1h", "30m"). |
27
27
|`allowedSubnets`|`[]string`|`["192.168.0.0/16", ...]`| List of CIDR ranges that bypass the knock check and can view the admin page. |
28
+
|`syncAllowlist`|`bool`|`false`| Enable writing the current allowlist to a YAML file for use as a Traefik TCP middleware. |
29
+
|`allowlistFile`|`string`|`""`| Path to the YAML file (required when `syncAllowlist` is `true`). |
28
30
29
31
### Add the plugin to Traefik
30
32
```yaml
@@ -49,6 +51,61 @@ http:
49
51
- "192.168.1.0/24"
50
52
```
51
53
54
+
### TCP Allowlist Sync
55
+
56
+
The plugin can write a YAML file that Traefik's [file provider](https://doc.traefik.io/traefik/providers/file/) picks up as a TCP `IPAllowList` middleware. This lets you reuse the same dynamic allowlist for TCP routers (e.g. databases, mail servers) that don't support HTTP middleware plugins.
57
+
58
+
Enable it by setting `syncAllowlist: true` and providing the output path:
0 commit comments