Skip to content

Commit 5567c70

Browse files
bene2k1nerda-codes
andauthored
feat(aps): remove public ip (#4954)
* feat(aps): remove public ip * docs(aps): fix typo * docs(aps): update formatting * fix(aps): fix typo * docs(aps): fix * fix(aps): fix wording * Apply suggestions from code review Co-authored-by: Néda <[email protected]> --------- Co-authored-by: Néda <[email protected]>
1 parent b3454e9 commit 5567c70

File tree

3 files changed

+172
-96
lines changed

3 files changed

+172
-96
lines changed

menu/navigation.json

Lines changed: 98 additions & 94 deletions
Original file line numberDiff line numberDiff line change
@@ -1055,6 +1055,10 @@
10551055
"label": "Use Private Networks",
10561056
"slug": "use-private-networks"
10571057
},
1058+
{
1059+
"label": "Remove the public IP address",
1060+
"slug": "remove-public-ip"
1061+
},
10581062
{
10591063
"label": "Install a package manager",
10601064
"slug": "install-package-manager-mac-mini"
@@ -4402,111 +4406,111 @@
44024406
"slug": "queues"
44034407
},
44044408
{
4405-
"items": [
4406-
{
4407-
"label": "Overview",
4408-
"slug": "../topics-and-events"
4409-
},
4410-
{
4411-
"label": "Concepts",
4412-
"slug": "concepts"
4413-
},
4414-
{
4415-
"label": "Quickstart",
4416-
"slug": "quickstart"
4417-
},
4418-
{
4419-
"label": "FAQ",
4420-
"slug": "faq"
4421-
},
4422-
{
4423-
"items": [
4424-
{
4425-
"label": "Create credentials",
4426-
"slug": "create-credentials"
4427-
},
4428-
{
4429-
"label": "Manage credentials",
4430-
"slug": "manage-credentials"
4431-
},
4432-
{
4433-
"label": "Create and manage topics",
4434-
"slug": "create-manage-topics"
4435-
},
4436-
{
4437-
"label": "Create and manage subscriptions",
4438-
"slug": "create-manage-subscriptions"
4439-
},
4440-
{
4441-
"label": "Monitor Topics and Events with Cockpit",
4442-
"slug": "monitor-topics-cockpit"
4443-
}
4444-
],
4445-
"label": "How to",
4446-
"slug": "how-to"
4447-
},
4448-
{
4449-
"items": [
4450-
{
4451-
"label": "Topics and Events API Reference",
4452-
"slug": "https://www.scaleway.com/en/developers/api/messaging-and-queuing/sns-api/"
4453-
},
4454-
{
4455-
"label": "Connecting Topics and Events to the AWS-CLI",
4456-
"slug": "connect-aws-cli"
4457-
},
4458-
{
4459-
"label": "Using Topics and Events with the AWS-CLI",
4460-
"slug": "topics-events-aws-cli"
4461-
},
4462-
{
4463-
"label": "Using Go, Python or Node.js with Topics and Events",
4464-
"slug": "python-node-topics-events"
4465-
}
4466-
],
4467-
"label": "API/CLI",
4468-
"slug": "api-cli"
4469-
},
4470-
{
4471-
"items": [
4472-
{
4473-
"label": "Topics and Events overview",
4474-
"slug": "topics-and-events-overview"
4475-
},
4476-
{
4477-
"label": "Topics and Events - supported actions",
4478-
"slug": "topics-and-events-support"
4479-
},
4480-
{
4481-
"label": "Limitations",
4482-
"slug": "limitations"
4483-
}
4484-
],
4485-
"label": "Additional Content",
4486-
"slug": "reference-content"
4487-
}
4488-
],
4489-
"label": "Topics and Events",
4490-
"slug": "topics-and-events"
4409+
"items": [
4410+
{
4411+
"label": "Overview",
4412+
"slug": "../topics-and-events"
4413+
},
4414+
{
4415+
"label": "Concepts",
4416+
"slug": "concepts"
4417+
},
4418+
{
4419+
"label": "Quickstart",
4420+
"slug": "quickstart"
4421+
},
4422+
{
4423+
"label": "FAQ",
4424+
"slug": "faq"
44914425
},
44924426
{
44934427
"items": [
44944428
{
4495-
"label": "Overview",
4496-
"slug": "../serverless-sql-databases"
4429+
"label": "Create credentials",
4430+
"slug": "create-credentials"
4431+
},
4432+
{
4433+
"label": "Manage credentials",
4434+
"slug": "manage-credentials"
4435+
},
4436+
{
4437+
"label": "Create and manage topics",
4438+
"slug": "create-manage-topics"
4439+
},
4440+
{
4441+
"label": "Create and manage subscriptions",
4442+
"slug": "create-manage-subscriptions"
4443+
},
4444+
{
4445+
"label": "Monitor Topics and Events with Cockpit",
4446+
"slug": "monitor-topics-cockpit"
4447+
}
4448+
],
4449+
"label": "How to",
4450+
"slug": "how-to"
4451+
},
4452+
{
4453+
"items": [
4454+
{
4455+
"label": "Topics and Events API Reference",
4456+
"slug": "https://www.scaleway.com/en/developers/api/messaging-and-queuing/sns-api/"
44974457
},
44984458
{
4499-
"label": "Concepts",
4500-
"slug": "concepts"
4459+
"label": "Connecting Topics and Events to the AWS-CLI",
4460+
"slug": "connect-aws-cli"
45014461
},
45024462
{
4503-
"label": "Quickstart",
4504-
"slug": "quickstart"
4463+
"label": "Using Topics and Events with the AWS-CLI",
4464+
"slug": "topics-events-aws-cli"
45054465
},
45064466
{
4507-
"label": "FAQ",
4508-
"slug": "faq"
4467+
"label": "Using Go, Python or Node.js with Topics and Events",
4468+
"slug": "python-node-topics-events"
4469+
}
4470+
],
4471+
"label": "API/CLI",
4472+
"slug": "api-cli"
4473+
},
4474+
{
4475+
"items": [
4476+
{
4477+
"label": "Topics and Events overview",
4478+
"slug": "topics-and-events-overview"
45094479
},
4480+
{
4481+
"label": "Topics and Events - supported actions",
4482+
"slug": "topics-and-events-support"
4483+
},
4484+
{
4485+
"label": "Limitations",
4486+
"slug": "limitations"
4487+
}
4488+
],
4489+
"label": "Additional Content",
4490+
"slug": "reference-content"
4491+
}
4492+
],
4493+
"label": "Topics and Events",
4494+
"slug": "topics-and-events"
4495+
},
4496+
{
4497+
"items": [
4498+
{
4499+
"label": "Overview",
4500+
"slug": "../serverless-sql-databases"
4501+
},
4502+
{
4503+
"label": "Concepts",
4504+
"slug": "concepts"
4505+
},
4506+
{
4507+
"label": "Quickstart",
4508+
"slug": "quickstart"
4509+
},
4510+
{
4511+
"label": "FAQ",
4512+
"slug": "faq"
4513+
},
45104514
{
45114515
"items": [
45124516
{
Lines changed: 72 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,72 @@
1+
---
2+
meta:
3+
title: How to remove the public IP address of a Mac mini
4+
description: This page explains how to remove the public IP and secure your Mac mini with Private Network and SSH Bastion
5+
content:
6+
h1: How to remove the public IP address of a Mac mini
7+
paragraph: This page explains how to remove the public IP and secure your Mac mini with Private Network and SSH Bastion
8+
tags: mac-mini private network bastion
9+
dates:
10+
validation: 2025-05-13
11+
posted: 2022-05-13
12+
categories:
13+
- bare-metal
14+
---
15+
16+
After enabling Virtual Private Cloud (VPC) on your Mac mini, you can enhance the security of your server by further restricting external access.
17+
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.
18+
19+
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.
20+
21+
<Macro id="requirements" />
22+
23+
- A Scaleway account logged into the [console](https://console.scaleway.com)
24+
- [Owner](/iam/concepts/#owner) status or [IAM permissions](/iam/concepts/#permission) allowing you to perform actions in the intended Organization
25+
- A [Mac mini](/apple-silicon/how-to/create-mac-mini/)
26+
27+
<Message type="important">
28+
Before proceeding, note that removing the public IP from your Mac mini will have some side effects:
29+
* You will no longer be able to reload SSH keys from the console.
30+
* 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).
31+
</Message>
32+
33+
## Enabling Private Networks for your Mac mini
34+
35+
1. Click **Apple silicon** in the **Bare Metal** section of the side menu. The Apple silicon splash screen displays.
36+
2. Click the Mac mini you want to enable Private Networks on. The Mac mini's **Overview** page displays.
37+
3. In the **Private Networks feature** section, click **Enable Private Networks** to enable the feature.
38+
A pop-up displays, asking you to confirm that you want to enable Private Networks, and showing the estimated cost.
39+
4. Click **Enable Private Networks**.
40+
41+
42+
## Setting up Private Networks/VLAN
43+
44+
1. Click **Apple silicon** in the **Bare Metal** section of the side menu. The Apple silicon splash screen displays.
45+
2. Click the Mac mini you want to attach to a Private Network. The Mac mini's **Overview** page displays.
46+
3. Click the **Private Networks** tab.
47+
4. Click **+ Attach to a Private Network**. A pop-up displays.
48+
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/).
49+
6. Click **Attach to Private Network**.
50+
51+
## Configuring the Private Network on your Mac mini
52+
53+
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.
54+
55+
## Setting up a Public Gateway with SSH Bastion
56+
57+
1. [Create a Public Gateway](/public-gateways/how-to/create-a-public-gateway/).
58+
2. [Enable SSH Bastion](/public-gateways/how-to/use-ssh-bastion/). This will allow you to securely access your Mac mini.
59+
3. Connect to your machine through the Bastion. Verify that you can connect to your Mac mini through the Bastion.
60+
<Message type="tip">
61+
You can also use the Bastion to connect to the remote desktop of your Mac using SSH port-forwarding.
62+
To do this, forward traffic to port `5900` of your machine to reach the VNC service.
63+
**This is a different port than the public VNC port displayed in your console.**
64+
</Message>
65+
66+
## Disabling DHCP on the public interface and removing the public IP address
67+
68+
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.
69+
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.
70+
<Message type="tip">
71+
Your Mac mini will still be able to access the internet through the gateway if needed.
72+
</Message>

pages/apple-silicon/how-to/use-private-networks.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Before you can attach your Mac mini to a Private Network, you must enable the fe
3131

3232
1. Click **Apple silicon** in the **Bare Metal** section of the side menu. The Apple silicon splash page displays.
3333
2. Click the Mac mini you want to enable Private Networks on. The Mac mini's **Overview** page displays.
34-
3. In the **Private Networks feature** panel, use the <Icon name="toggle" /> toggle button to enable the feature.
34+
3. In the **Private Networks feature** section, click **Enable Private Networks** to enable the feature.
3535
A pop-up displays, asking you to confirm that you want to enable Private Networks, and showing the estimated cost.
3636
4. Click **Enable Private Networks**.
3737

@@ -59,7 +59,7 @@ Private Networks are disabled, and you are returned to your Mac mini's **Overvie
5959
2. Click the Mac mini you want to attach to a Private Network. The Mac mini's **Overview** page displays.
6060
3. Click the **Private Networks** tab.
6161
4. Click **+ Attach to a Private Network**. A pop-up displays.
62-
5. Select the Private Network you want to attach the Mac mini to. It will be automatically assigned private IPv4 and IPv6 addresses on this network. The ability to use specific reserved IP addresses for the attachment is planned for the future.
62+
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/).
6363
6. Click **Attach to Private Network**.
6464

6565
The Mac mini is attached to the Private Network, and you are returned to the **Private Networks** tab. The IPv4 and the IPv6 addresses for the Mac mini on the Private Network are displayed, along with the ID of the VLAN interface that was created.

0 commit comments

Comments
 (0)