Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 5bbd19635e |
@@ -288,7 +288,7 @@ int main(int argc, char *argv[])
|
|||||||
fprintf(wg_config_f, "Address = %hhu.%hhu.%hhu.%hhu/24\n", vpn.last_ip.a, vpn.last_ip.b, vpn.last_ip.c, vpn.last_ip.d);
|
fprintf(wg_config_f, "Address = %hhu.%hhu.%hhu.%hhu/24\n", vpn.last_ip.a, vpn.last_ip.b, vpn.last_ip.c, vpn.last_ip.d);
|
||||||
fprintf(wg_config_f, "PrivateKey = %s\n", priv_b64);
|
fprintf(wg_config_f, "PrivateKey = %s\n", priv_b64);
|
||||||
fprintf(wg_config_f, "PostUp = firewall-cmd --zone=public --add-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text);
|
fprintf(wg_config_f, "PostUp = firewall-cmd --zone=public --add-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text);
|
||||||
fprintf(wg_config_f, "PostUp = firewall-cmd --zone=public --remove-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text);
|
fprintf(wg_config_f, "PostDown = firewall-cmd --zone=public --remove-port=%.*s/udp\n", vpn.server_port.length, vpn.server_port.text);
|
||||||
fprintf(wg_config_f, "ListenPort = %.*s\n", vpn.server_port.length, vpn.server_port.text);
|
fprintf(wg_config_f, "ListenPort = %.*s\n", vpn.server_port.length, vpn.server_port.text);
|
||||||
|
|
||||||
fclose(wg_config_f);
|
fclose(wg_config_f);
|
||||||
|
|||||||
Reference in New Issue
Block a user