mirror of
https://github.com/outbackdingo/firezone.git
synced 2026-01-27 10:18:54 +00:00
docs(infra): Update staging README to include NAT instructions (#7338)
Instructions for how to enable/disable symmetric NAT on the AWS VM in staging.
This commit is contained in:
@@ -14,3 +14,23 @@ This directory houses the Firezone staging environment.
|
||||
$(aws ec2 describe-instances --filters "Name=tag:Name,Values=gateway - staging" --query "Reservations[*].Instances[*].InstanceId" --output text) \
|
||||
--os-user ubuntu --connection-type eice
|
||||
```
|
||||
|
||||
## Set NAT type on AWS NAT gateway VM
|
||||
|
||||
Note: The NAT gateway VM will default to using a non-symmetric NAT when deployed or restarted.
|
||||
|
||||
### Enable Symmetric NAT
|
||||
|
||||
1. SSH in to the NAT gateway VM using the instructions above by replacing `gateway` with `nat`
|
||||
1. Run the following:
|
||||
```
|
||||
sudo iptables -t nat -F && sudo iptables -t nat -A POSTROUTING -o ens5 -j MASQUERADE --random
|
||||
```
|
||||
|
||||
### Enable Non-Symmetric NAT
|
||||
|
||||
1. SSH in to the NAT gateway VM using the instructions above by replacing `gateway` with `nat`
|
||||
1. Run the following:
|
||||
```
|
||||
sudo iptables -t nat -F && sudo iptables -t nat -A POSTROUTING -o ens5 -j MASQUERADE
|
||||
```
|
||||
|
||||
Reference in New Issue
Block a user