Updated Lab notes (markdown)

Marius Ciepluch 2024-05-11 16:15:47 +02:00
parent 9643ef43a2
commit edff9713c0

@ -5,19 +5,26 @@
The lab has a virtual machine for NAT, which acts as a bridge between the internet (WAN) and the private networks within the AWS Cloud (VPCs).
```
(labmgr) marius@mleng:~/lab-manager/home_pub/student/Desktop/lab-manager$ aws ec2 describe-instances --query "Reservations[*].Instances[*].[Tags[?Key=='Name'].Value | [0], InstanceId, PublicIpAddress]" --output text
WIN10 i-022959353ab9d20b7 None
NAT instance i-0079f0bca5638f769 3.255.200.60
CommandoVM i-0270b2fd4f8f7f9b4 54.228.141.145
SOC i-09d511bcded67da9a None
WIN19 i-051fafd0f8f29eb28 None
DC i-085923b59e1999421 None
C2 i-05ea949965233b999 None
DC2 i-02d241c00195992f3 None
SQL i-0f21573d58369ab65 None
(labmgr) marius@mleng:~/lab-manager/home_pub/student/Desktop/lab-manager$ aws ec2 describe-instances --query "Reservations[*].Instances[*].[Tags[?Key=='Name'].Value | [0], InstanceId, PublicIpAddress, PrivateIpAddress]" --output table
----------------------------------------------------------------------------
| DescribeInstances |
+--------------+-----------------------+----------------+------------------+
| DC2 | i-06b4cfdc9d7294e11 | None | 192.168.20.103 |
| C2 | i-06022fc3b129f04d6 | None | 192.168.20.107 |
| SQL | i-057b58cc1bdc58935 | None | 192.168.20.104 |
| DC | i-0ac391b51cfd3fec2 | None | 192.168.20.101 |
| WIN19 | i-0b00a16f81ef2857f | None | 192.168.20.102 |
| WIN10 | i-0c05863d51b58aa1d | None | 192.168.20.105 |
| SOC | i-092fa119ac01ed955 | None | 192.168.20.106 |
| CommandoVM | i-016d72bd9b3ca098f | 54.78.96.249 | 192.168.0.200 |
| NAT instance| i-09534d4f486c4191f | 3.249.213.213 | 192.168.0.62 |
+--------------+-----------------------+----------------+------------------+
```
`NAT instance` is the VPN endpoint.
* `NAT instance` is the VPN endpoint. The external IPs are dynamic.
* `labmgr` is a prompt indicator, for a virtualenv (Python)
## OpenVPN route for Elasticsearch DB access