Skip to content

Commit 265c329

Browse files
committed
fix(pgw): add message
1 parent 5fa5a73 commit 265c329

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

pages/public-gateways/concepts.mdx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ categories:
1414

1515
## Allowed IPs
1616

17+
The Allowed IPs feature is only available to [IPAM-mode](#ipam) Public Gateways. Legacy gateways are not compatible with this feature.
18+
</Message>
19+
1720
Allowed IPs is a feature of [SSH bastion](#ssh-bastion). It allows you to specify a list of IP address ranges which should be allowed to connect to the SSH bastion and the resources behind it. All other IP addresses will be blocked from connecting. Find out more in the [SSH bastion](/public-gateways/how-to/use-ssh-bastion/#how-to-configure-allowed-ips) documentation.
1821

1922
## Default route

pages/public-gateways/how-to/use-ssh-bastion.mdx

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,10 @@ The [Allowed IPs](#how-to-configure-allowed-ips) feature lets you control which
4141

4242
## How to configure allowed IPs
4343

44+
<Message type="note">
45+
The Allowed IPs feature is only available to [IPAM-mode](/public-gateways/concepts/#ipam) Public Gateways. Legacy gateways are not compatible with this feature.
46+
</Message>
47+
4448
The [Allowed IPs](#how-to-configure-allowed-ips) feature lets you control which public IPs can connect to resources behind the bastion. All IPs are blocked except those specified in your Allowed IPs list.
4549

4650
When you first activate SSH bastion, the Allowed IPs list has one entry: a default IP range of `0.0.0.0/0` which gives access to **all** public IPs.
@@ -101,7 +105,7 @@ The command to use is:
101105
```bash
102106
ssh -J bastion@PUBLIC_IP_OF_PUBLIC_GATEWAY:61000 user@FQDN
103107
```
104-
108+
q
105109
The FQDN is `<resource-name>.<private-network-name>.internal`.
106110

107111
When connecting as the user `alex` on an Instance named `scw-frosty-cannon` on a Private Network named `pvn-silly-goodall`, where the Public Gateway has an IP `51.158.125.88` and SSH bastion is configured on port 6100, the full connection command would therefore be:
@@ -112,7 +116,7 @@ ssh -J [email protected]:61000 [email protected]
112116

113117
<Message type="note">
114118

115-
For [Legacy Private Networks](/network/public-gateways/concepts/#ipam) not in IPAM mode and still using DHCP configuration objects, the FQDN may be different. The domain to use was set when the Public Gateway was attached to the Private Network. Therefore, the FQDN to use depends on how you made this attachment:
119+
For [Legacy Private Networks](/public-gateways/concepts/#ipam) not in IPAM mode and still using DHCP configuration objects, the FQDN may be different. The domain to use was set when the Public Gateway was attached to the Private Network. Therefore, the FQDN to use depends on how you made this attachment:
116120

117121
- **Via the Scaleway console**: The FQDN takes the form `resource-name.priv`
118122
- **Via Terraform**: The FQDN takes the form `resource-name.dns_local_name` where `dns_local_name` is [this](https://registry.terraform.io/providers/scaleway/scaleway/latest/docs/resources/vpc_public_gateway_dhcp#dns_local_name) Terraform option.

0 commit comments

Comments
 (0)