mirror of
https://github.com/PrivSec-dev/privsec.dev
synced 2025-02-20 18:31:35 -05:00
mac settings
This commit is contained in:
parent
9f9bd0c156
commit
d7cf633f97
@ -122,20 +122,24 @@ If you are confused about what this configuration is doing, here are some quick
|
||||
|
||||
* We get our time from 4 different sources:
|
||||
|
||||
`
|
||||
```
|
||||
server time.cloudflare.com iburst nts
|
||||
server ntppool1.time.nl iburst nts
|
||||
server nts.netnod.se iburst nts
|
||||
server ptbtime1.ptb.de iburst nts
|
||||
`
|
||||
```
|
||||
|
||||
* Should there be a discrepancy, a time change will only happen if at least 2 sources agree on it:
|
||||
|
||||
`minsources 2`
|
||||
```
|
||||
minsources 2
|
||||
```
|
||||
|
||||
* Finally, we add this line to the configuration file to allow macOS to get time from it:
|
||||
|
||||
`allow 10.0.2.2/32`.
|
||||
```
|
||||
allow 10.0.2.2/32
|
||||
```
|
||||
|
||||
Note that `10.0.2.2/32` is the default IP address of the macOS host from the virtual machine's perspective. If you changed the Host Address using the Advanced Settings in the virtual machine's network configuration, you need to adjust it accordingly here.
|
||||
|
||||
@ -163,3 +167,18 @@ sudo firewall-cmd --permanent --add-service=ntp
|
||||
sudo firewall-cmd --reload
|
||||
```
|
||||
|
||||
## Use the NTP server with macOS
|
||||
|
||||
Now, we can use our NTP server as the time server for your macOS. Set the time source to `127.0.0.1` in your macOS settings:
|
||||
|
||||

|
||||
|
||||
Verify that NTP works on your macOS host:
|
||||
|
||||
```
|
||||
sntp 127.0.0.1
|
||||
```
|
||||
|
||||

|
||||
|
||||
Once you have verified that everything is working, you can optionally remove the port 22/TCP forwarding since we will no longer need it.
|
BIN
static/images/macos-sntp-verification.png
Normal file
BIN
static/images/macos-sntp-verification.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 366 KiB |
BIN
static/images/macos-time-source.png
Normal file
BIN
static/images/macos-time-source.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 87 KiB |
Loading…
Reference in New Issue
Block a user