Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion menu/navigation.json
Original file line number Diff line number Diff line change
Expand Up @@ -946,7 +946,7 @@
},
{
"label": "Troubleshooting inaccessibility issues to Mac minis",
"slug": "mac-mini-inacessible"
"slug": "mac-mini-inaccessible"
},
{
"label": "Troubleshooting Mac mini installation issues",
Expand Down
38 changes: 19 additions & 19 deletions pages/apple-silicon/troubleshooting/cant-connect-using-vnc.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -83,29 +83,29 @@ If all else fails, [reinstall macOS](/apple-silicon/how-to/reinstall-mac-mini/)
## Advanced configuration and security

### Enabling and configuring Packet Filter (pf)
To restrict access to screen sharing:
```sh
sudo nano /etc/pf.conf
```
Add:
```sh
block in on en0 proto tcp from any to any port 5900
pass in on en0 proto tcp from <static IP> to any port 5900
```
Apply:
```sh
sudo pfctl -f /etc/pf.conf
```
1. Open the pf configuration file in a text editor to restrict access to screen sharing:
```sh
sudo nano /etc/pf.conf
```
2. Add the following lines to the file and save it:
```sh
block in on en0 proto tcp from any to any port 5900
pass in on en0 proto tcp from <static IP> to any port 5900
```
3. Apply the configuration:
```sh
sudo pfctl -f /etc/pf.conf
```

### Restarting screen sharing via SSH
1. Connect via SSH:
```sh
ssh your_mac_mini_username@<your_mac_mini_ip>
```
```sh
ssh your_mac_mini_username@<your_mac_mini_ip>
```
2. Restart screen sharing:
```sh
sudo killall screensharingd
```
```sh
sudo killall screensharingd
```

## Further troubleshooting
If the issue persists, contact [Scaleway's support](https://console.scaleway.com/support) for assistance.