github.com/bugfan/wireguard-go@v0.0.0-20230720020150-a7b2fa340c66/README-AUTH.md (about) 1 ## 2 3 ### wg set 部分修改 4 ``` 5 // all bak.conf 6 private_key=606527c72b83849a95d377aab6598de75fa651d896e6815adca187a633190e52 7 listen_port=51820 8 fwmark=0 9 replace_peers=true 10 public_key=b0edefa7b11dbfa0bd1eb62d7a7a14e13e49b7fff1e4ac05779af122d8a26344 11 replace_allowed_ips=true 12 allowed_ip=10.0.0.10/32 13 public_key=e2428b443df5217904be4ae9f474af949f481d0ee6fbe74b1622f8e9f1fcf07d 14 replace_allowed_ips=true 15 allowed_ip=10.0.0.100/32 16 17 // go.conf 18 private_key=606527c72b83849a95d377aab6598de75fa651d896e6815adca187a633190e52 19 listen_port=51820 20 fwmark=0 21 replace_peers=true 22 23 // wg set wg0 peer sO3vp7Edv6C9HrYtenoU4T5Jt//x5KwFd5rxItiiY0Q= allowed-ips 10.0.0.10/32 24 public_key=b0edefa7b11dbfa0bd1eb62d7a7a14e13e49b7fff1e4ac05779af122d8a26344 25 replace_allowed_ips=true 26 allowed_ip=10.0.0.10/32 27 28 ```