Skip to content

Commit

Permalink
added NTP and route to NTP for client
Browse files Browse the repository at this point in the history
  • Loading branch information
mcfly722 committed Nov 30, 2024
1 parent 99bda53 commit 0f9e172
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 3 deletions.
19 changes: 16 additions & 3 deletions config.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ var params = {
clientArch: '',
serverArch: '',
clientOS: '',
serverOS: ''
serverOS: '',
clientNTP: ''
}

var validators = {
Expand All @@ -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) {
Expand Down Expand Up @@ -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>
`

Expand Down
Binary file modified index.html
Binary file not shown.

0 comments on commit 0f9e172

Please sign in to comment.