Skip to content

Lab notes

Marius Ciepluch edited this page May 11, 2024 · 4 revisions

Lab notes

OpenVPN endpoint

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

NAT instance is the VPN endpoint.

OpenVPN route for Elasticsearch DB access

The .ovpn config needs to be extended for the route:

...
-----END OpenVPN Static key V1-----
</tls-auth>


# Add this line to route traffic to 192.168.20.106 through the VPN
route 192.168.20.106 255.255.255.255

GitHub file site limit

Data cannot get pushed directly into the repo. The release function is used instead.

remote: error: File data/lab_logs_normal_activity_may_6_2024.json is 1811.83 MB; this exceeds GitHub's file size limit of 100.00 MB
remote: error: GH001: Large files detected. You may want to try Git Large File Storage - https://git-lfs.github.com.
To https://github.com/norandom/log2ml.git
 ! [remote rejected] main -> main (pre-receive hook declined)
error: failed to push some refs to 'https://github.com/norandom/log2ml.git
Clone this wiki locally