Skip to content

Commit f6b5cbc

Browse files
authored
Merge pull request #365 from linuxserver/legacy-cap-desc
2 parents 1b88ee7 + a6e00eb commit f6b5cbc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

readme-vars.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,8 +35,8 @@ param_env_vars:
3535
- { env_var: "TZ", env_value: "Europe/London", desc: "Specify a timezone to use EG Europe/London"}
3636
cap_add_param: true
3737
cap_add_param_vars:
38-
- { cap_add_var: "NET_ADMIN" }
39-
- { cap_add_var: "SYS_MODULE" }
38+
- { cap_add_var: "NET_ADMIN", desc: "Neccessary for Wireguard to create its VPN interface." }
39+
- { cap_add_var: "SYS_MODULE", desc: "Neccessary for loading Wireguard kernel module if it's not already loaded." }
4040
custom_params:
4141
- { name: "sysctl", name_compose: "sysctls", value: ["net.ipv4.conf.all.src_valid_mark=1"], desc: "Required for client mode.", array: "true" }
4242

@@ -118,9 +118,9 @@ app_setup_block: |
118118
Site-to-site VPN in server mode requires customizing the `AllowedIPs` statement for a specific peer in `wg0.conf`. Since `wg0.conf` is autogenerated when server vars are changed, it is not recommended to edit it manually.
119119
120120
In order to customize the `AllowedIPs` statement for a specific peer in `wg0.conf`, you can set an env var `SERVER_ALLOWEDIPS_PEER_<peer name or number>` to the additional subnets you'd like to add, comma separated and excluding the peer IP (ie. `"192.168.1.0/24,192.168.2.0/24"`). Replace `<peer name or number>` with either the name or number of a peer (whichever is used in the `PEERS` var).
121-
121+
122122
For instance `SERVER_ALLOWEDIPS_PEER_laptop="192.168.1.0/24,192.168.2.0/24"` will result in the wg0.conf entry `AllowedIPs = 10.13.13.2,192.168.1.0/24,192.168.2.0/24` for the peer named `laptop`.
123-
123+
124124
Keep in mind that this var will only be considered when the confs are regenerated. Adding this var for an existing peer won't force a regeneration. You can delete wg0.conf and restart the container to force regeneration if necessary.
125125
126126
Don't forget to set the necessary POSTUP and POSTDOWN rules in your client's peer conf for lan access.

0 commit comments

Comments
 (0)