-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added NTP and route to NTP for client
- Loading branch information
Showing
2 changed files
with
16 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -17,7 +17,8 @@ var params = { | |
clientArch: '', | ||
serverArch: '', | ||
clientOS: '', | ||
serverOS: '' | ||
serverOS: '', | ||
clientNTP: '' | ||
} | ||
|
||
var validators = { | ||
|
@@ -33,7 +34,9 @@ var validators = { | |
wireguardServerPrivate: function(value) { return !window.curve25519.generateKeypairForPrivate(value).publicKey.includes("INCORRECT"); }, | ||
wireguardServerPublic: function(value) { return !value.includes("INCORRECT"); }, | ||
clientArch: function(value) { return !value.includes("not specified"); }, | ||
serverArch: function(value) { return !value.includes("not specified"); } | ||
serverArch: function(value) { return !value.includes("not specified"); }, | ||
clientNTP: function(value) { return isValidIPaddress(value); } | ||
|
||
} | ||
|
||
function isValidIPaddress(ipaddress) { | ||
|
@@ -263,7 +266,17 @@ sudo systemctl status [email protected] --no-pager -l | |
# --------------- 1.9 Enable IPv4 Gateway Forwarding --------------------- | ||
echo "net.ipv4.ip_forward=1" | sudo tee -a /etc/sysctl.conf | ||
echo "net.ipv4.conf.all.forwarding=1" | sudo tee -a /etc/sysctl.conf | ||
sudo sysctl -p</code></pre> | ||
sudo sysctl -p | ||
# --------------- 1.10 Configure NTP client ------------------------------ | ||
sudo tee -a /etc/systemd/timesyncd.conf << EOF | ||
NTP=:clientNTP | ||
EOF | ||
systemctl restart systemd-timesyncd | ||
sudo ip route add :clientNTP/32 via :cloakGateway | ||
</code></pre> | ||
` | ||
|
||
|
Binary file not shown.