Technical Tip: Check FortiNAC proxy settings from CLI
Description
This article describes how to check the proxy settings on FortiNAC from CLI
Solution
Create SSH session towards FortiNAC, run the following command:
1) Configure Proxy settings from GUI. Setup the hostname or address of the proxy server.


This article describes how to check the proxy settings on FortiNAC from CLI
Solution
Create SSH session towards FortiNAC, run the following command:
cat /etc/yum.confExample of adding proxy server to FortiNAC and verifying the settings from CLI:
FortiNAC FNVMCAThe output above does not contain any proxy configuration line.
root@fnac:~
> cat /etc/yum.conf
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
1) Configure Proxy settings from GUI. Setup the hostname or address of the proxy server.

2) Save Settings.

Connect to FortiNAC via SSH again and run again 'cat /etc/yum.conf':
> cat /etc/yum.confThe newly added entry 'proxy = http://192.168.16.2:8080' should be visible as above.
[main]
cachedir=/var/cache/yum/$basearch/$releasever
keepcache=0
debuglevel=2
logfile=/var/log/yum.log
exactarch=1
obsoletes=1
gpgcheck=1
plugins=1
installonly_limit=5
bugtracker_url=http://bugs.centos.org/set_project.php?project_id=23&ref=http://bugs.centos.org/bug_report_page.php?category=yum
distroverpkg=centos-release
proxy = http://192.168.16.2:8080
