-
Notifications
You must be signed in to change notification settings - Fork 258
feat(aps): remove public ip #4954
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
Merged
Changes from 6 commits
Commits
Show all changes
7 commits
Select commit
Hold shift + click to select a range
adb5d84
feat(aps): remove public ip
bene2k1 44d69fe
docs(aps): fix typo
bene2k1 720836c
docs(aps): update formatting
bene2k1 c8d864e
fix(aps): fix typo
bene2k1 72e8c91
docs(aps): fix
bene2k1 d55b15f
fix(aps): fix wording
bene2k1 843e7e5
Apply suggestions from code review
bene2k1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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
This file contains hidden or 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 |
|---|---|---|
| @@ -0,0 +1,72 @@ | ||
| --- | ||
| meta: | ||
| title: How to remove the public IP address of a Mac mini | ||
| description: This page explains how to remove the public IP and secure your Mac mini with Private Network and SSH Bastion | ||
| content: | ||
| h1: How to remove the public IP address of a Mac mini | ||
| paragraph: This page explains how to remove the public IP and secure your Mac mini with Private Network and SSH Bastion | ||
| tags: mac-mini private network bastion | ||
| dates: | ||
| validation: 2025-05-13 | ||
| posted: 2022-05-13 | ||
| categories: | ||
| - bare-metal | ||
| --- | ||
|
|
||
| After enabling Virtual Private Cloud (VPC) on your Mac Mini, you can enhance the security of your server by further restricting external access. | ||
| This guide walks you through a series of steps to ensure that your Mac Mini is isolated from unauthorized access while maintaining necessary connectivity for management and maintenance. | ||
|
|
||
| By following these instructions, you will learn how to create a secure environment that uses Private Networks and an SSH Bastion to protect your machine from being reachable on the public Internet, while maintaining outgoing connectivity from the Mac mini. | ||
|
|
||
| <Macro id="requirements" /> | ||
|
|
||
| - A Scaleway account logged into the [console](https://console.scaleway.com) | ||
| - [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization | ||
| - A [Mac mini](/apple-silicon/how-to/create-mac-mini/) | ||
|
|
||
| <Message type="important"> | ||
| Before proceeding, note that removing the public IP from your Mac mini will have some side effects: | ||
| * You will no longer be able to reload SSH keys from the console. | ||
| * Scaleway's ability to monitor your server will be limited. Some actions, such as rebooting your machine, may result in an error state displayed in the console (although it will not prevent you from using your server). | ||
| </Message> | ||
|
|
||
| ## Enabling Private Networks for your Mac mini | ||
|
|
||
| 1. Click **Apple silicon** in the **Bare Metal** section of the side menu. The Apple silicon splash page displays. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. Click the Mac mini you want to enable Private Networks on. The Mac mini's **Overview** page displays. | ||
| 3. In the **Private Networks feature** section, click **Enable Private Networks** to enable the feature. | ||
| A pop-up displays, asking you to confirm that you want to enable Private Networks, and showing the estimated cost. | ||
| 4. Click **Enable Private Networks**. | ||
|
|
||
|
|
||
| ## Setting up Private Networks/VLAN | ||
|
|
||
| 1. Click **Apple silicon** in the **Bare Metal** section of the side menu. The Apple silicon splash page displays. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| 2. Click the Mac mini you want to attach to a Private Network. The Mac mini's **Overview** page displays. | ||
| 3. Click the **Private Networks** tab. | ||
| 4. Click **+ Attach to a Private Network**. A pop-up displays. | ||
| 5. Select the Private Network you want to attach the Mac mini to. You can either auto-allocate an available IP from the Private Network's pool (default) or reserve a specific IP for your Mac mini using [IPAM](/ipam/quickstart/). | ||
| 6. Click **Attach to Private Network**. | ||
|
|
||
| ## Configuring the Private Network on your Mac mini | ||
|
|
||
| On your Mac Mini, set up the Private Network/VLAN. You can follow our guide [How to configure the VLAN interface on your Mac mini for Private Networks](/apple-silicon/how-to/use-private-networks/#how-to-configure-the-vlan-interface-on-your-mac-mini-for-private-networks) for more information. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| ## Setting up a Public Gateway with SSH Bastion | ||
|
|
||
| 1. [Create a Public Gateway](/public-gateways/how-to/create-a-public-gateway/). | ||
| 2. [Enable SSH Bastion](/public-gateways/how-to/use-ssh-bastion/). This will allow you to securely access your Mac Mini. | ||
| 3. Connect to your machine through the Bastion. Verify that you can connect to your Mac Mini through the Bastion. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| <Message type="tip"> | ||
| You can also use the Bastion to connect to the remote desktop of your Mac using SSH port-forwarding. | ||
| To do this, forward traffic to port `5900` of your machine to reach the VNC service. | ||
| **This is a different port than the public VNC port displayed in your console.** | ||
| </Message> | ||
|
|
||
| ## 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. | ||
| 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. | ||
bene2k1 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
| </Message> | ||
This file contains hidden or 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
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.