[root@rhce-ryanrudolf]# rm -rf / 2> /dev/null

things I break/fix for fun and learning

Jan 10, 2018 - 2 minute read - Comments

Accessing RHEL7 Labservers remotely

Lately I’ve been pushing myself to work extra hard in preparation for the RHCSA exam. I’ve paid the exam fees and just wating for the official statement from my credit card to had it reimbursed. One of the perks in the company is continuous learning - they have a great certification program and I am taking advantage of it. All the certs I have acquired so far are all paid for by the company. I didn’t spend any cent, and to my last count I had acquired several certs and the cost is at least $1,200cad!

Back to my RHEL7 labservers, the latest I’ve done is to be able to access my labservers remotely, so that I can practice in the lab environment even if I’m not at home (library, office, etc etc). My labservers are being hosted on my study laptop (2nd-gen core i5, 16GB ram and SSD storage). Several things I’ve done -

  • Put the laptop in it’s docking station.
  • Plug in an ethernet cable on the docking station port.
  • Reconfigure the labserver VMs to use bridge networking (hence the need for ethernet cable) from NAT

By using bridge networking, my labserver VMs are now getting the IP address in the same range as my home network. I have not enabled port forwarding on the firewall to access the labservers from the Internet for security reasons. To be able to access the labserver, I had to ssh first to my webserver, and then ssh again to the labserver. My webserver is now a jumpbox to my labservers, which I find pretty cool. In one of my previous employer, we had similar setup. We use a jumpbox to login to other remote servers - no direct access to those remote servers except from the jumpbox.


##What does my labservers look like? Nothing fancy, all of them are running a minimal install of RHEL 7.x with 1 year free subscription. I signed up last year for the Red Hat Enterprise Linux Developer Suite and it comes with 1 year free subscription. I have 3 labservers to be able to simulate copying files across servers and mounting shares remotely. They also have several virtual HDD attached so that I can simulate creating / deleting logical volumes.


Webserver and labservers in action!

Like this page? Share it!