Skip to content

docs(aps): add details for removing public ip #5268

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
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
13 changes: 13 additions & 0 deletions pages/apple-silicon/how-to/remove-public-ip.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,19 @@ On your Mac mini, set up the Private Network/VLAN. You can follow our guide [How
## Disabling DHCP on the public interface and removing the public IP address

Once you have verified that your Mac mini is reachable through the Bastion, you can proceed with disabling DHCP on your Mac's main network interface (`en0`) and removing its public address.

1. Open a terminal on your Mac mini.
2. Run the following command to disable DHCP and remove the public IP address from the Ethernet interface:
```
sudo networksetup -setv4off "Ethernet" <PUBLIC_INTERFACE_IP_ADDRESS>
```
<Message type="tip">
You can also disable the public IP address through the graphical interface when connected via VNC through the SSH bastion. To do this, disable DHCP for the `Ethernet` network adapter.
</Message>
<Message type="important">
Incorrectly configuring the network settings can cause a loss of network connectivity. Before making changes, **back up your data**. If you lose connectivity, you might need to reinstall the system to restore it.
</Message>

Your Mac mini is now fully isolated from the public internet, and any further external access will have to occur from a resource inside the Private Network or through the Bastion.
<Message type="tip">
Your Mac mini will still be able to access the internet through the gateway if needed.
Expand Down