Setup BigFix 10 Modern Client for agent less enrollment

Setup BigFix 10 Modern Client for agent less enrollment





More and more companies are utilizing MDM capabilities with workstations and end users. This enables employees to BYOD for a laptop or desktop or ship out device straight to the employees home. From there the new employee would have the ability to enroll their device in BigFix and set polices that tie into those MDM API's that Microsoft and Apple provide. From there we then can deploy the BigFix agent set it to provision mode to that machine and continue managing the device with the agent less policies and keep the machine, complaint, and secure.

Below is a guide on how to setup your MDM server. Some steps are needed for a lab environment for enrollment but if you are using public facing certificates some steps would not be needed. Also not everyone has Redhat experience so i broke down the setup of how to setup a RHEL machine along with installing the BigFix agent.

https://help.hcltechsw.com/bigfix/10.0/mcm/index.html

Download the 7.8 ISO from Redhat

No alt text provided for this image

Install the Server with GUI

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Set your user account and root password

No alt text provided for this image

Select Network and Host Name

No alt text provided for this image

Set the hostname

No alt text provided for this image

Select Not Listed

No alt text provided for this image

Login as root

No alt text provided for this image

Open Red Hat Subscription Manager and register your device in order to receiver docker

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Run the commands

yum-config-manager --enable rhel-7-server-extras-rpms

No alt text provided for this image

Yum install docker

No alt text provided for this image
No alt text provided for this image

curl -L "https://github.com/docker/compose/releases/download/1.25.4/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose && chmod 755 /usr/local/bin/docker-compose

No alt text provided for this image

Service docker start

No alt text provided for this image

Set dockers so it starts when OS boots

No alt text provided for this image

Set your DNS of your local DNS Server

No alt text provided for this image
No alt text provided for this image

Open /etc/ host to edit the host file to your bigfix server if dns does not resolve

No alt text provided for this image

Copy the BigFix installer to your machine and run the command to install the agent

No alt text provided for this image

Create a new folder under /etc/opt called BESClient (Case Sensative)

No alt text provided for this image

Copy the actionsite.afxm to this folder

No alt text provided for this image

Run the command to start the bigfix agent

No alt text provided for this image

Once machine is checking into BigFix remote into your BigFix Server

On the BigFix Server run the command change the path to export the cert to and the common name of your BigFix Server

BESAdmin.exe /generateplugincertificates /certificatespath:C:\Tools [/commonname:bigfixserver]

No alt text provided for this image
No alt text provided for this image

This will extract files to the patch specified

No alt text provided for this image

Make sure you have a DNS alias for your MDM server or use the fully qualified name

No alt text provided for this image

We will have create self signed certs since we do not have public facing certs for our labs. These will be the certs used for the MDM server. This is a setup for a lab environment so here you would create your public facing certs for production installs.

On the RHEL 76 machine run the command

Change the name with your mdm server

Note: This is just for a lab to generate a cert. You will need to use a public facing cert for production

(cat /etc/pki/tls/openssl.cnf; printf "\n[SAN]\nsubjectAltName=MDMSERVERNAMEHERE\n") | openssl req -new -newkey rsa:2048 -days 365 -nodes -x509 -sha256 -keyout mdmserver.key -out mdmserver.crt -subj "/CN=MDMSERVERNAMEHERE" -config /dev/stdin;
No alt text provided for this image
No alt text provided for this image

Copy the two files to a secure location and open them in a text viewer to copy the contents to the Bigfix action

Run the action in you Bigfix Console Install BigFix Windows MDM Server

No alt text provided for this image

Note I did not use LDAPS since I do not have a CA with SSL enabled for my lab

No alt text provided for this image

Set the password to BigFix (This sets the password to encrypt the private key)

No alt text provided for this image

Open each file in notepad and copy the contents

__________________________________________________________________________

No alt text provided for this image

mdmserver.crt (1 of 2 files on the RHEL machine)

__________________________________________________________________________

No alt text provided for this image

mdmserver.key (1 of 2 files on the RHEL machine)

__________________________________________________________________________

No alt text provided for this image

Ca.cert.pem from the certs generated from besadmin tool

__________________________________________________________________________

No alt text provided for this image

server.cert.pem from the certs generated from besadmin tool

__________________________________________________________________________

No alt text provided for this image

Server.key from the certs generated from besadmin tool

__________________________________________________________________________

Run the action Install Bigfix Plugin for MDM on Windows

No alt text provided for this image

__________________________________________________________________________

No alt text provided for this image

ca.cert.pem from the certs generated from besadmin tool

__________________________________________________________________________


No alt text provided for this image

client.cert.pem from the certs generated from besadmin tool

__________________________________________________________________________

No alt text provided for this image

client.key from the certs generated from besadmin tool

__________________________________________________________________________

On the MDM server Rhel 7 machine

Open var/opt/BESUEM/windows

Note if you are on MCM 1.1 look in var/opt/BESUEM folder

No alt text provided for this image

Note this next step is optional since i am not using LDAPS

Run the command

No alt text provided for this image

Edit the file so LDAP_AUTH=false and save the file and close it

No alt text provided for this image

run the command sh service-mdm.sh restart from the location /opt/BESUEM/ to restart the MDM server to make the changes active.

No alt text provided for this image

Note: These next steps are due to not having a public facing cert. This step is only required due not having that cert.

On my MDM Sever machine go to the /var/opt/BESUEM/certs folder and backup the mdmserver.pfx file to a secure location to be copied to your client machine

No alt text provided for this image


Open mmc

No alt text provided for this image

Go to file add/remove snap-in

No alt text provided for this image

Select Certificates and hit add

No alt text provided for this image

Select Computer Account

No alt text provided for this image

Click Finish and Ok

No alt text provided for this image

Select Trusted Root Certificate - Certificates

No alt text provided for this image

Right click on certificates

Select all task - import

No alt text provided for this image
No alt text provided for this image

Browse to the mdmserver.pfx cert file we created backed up from the REHL machine and select the pfx file

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Now is a good time to take a snapshot of your VM of your test device

Open your web browser and browse to your MDM server with https

https://mdm.

login with your AD account

No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image
No alt text provided for this image

Now you can install a MDM action or Bigfix Agent

No alt text provided for this image



Troubleshooting

Restart MDM service on the MDM server


No alt text provided for this image

要查看或添加评论,请登录

Brad Sexton的更多文章

社区洞察

其他会员也浏览了