Skip to main content
mturic
Staff & Editor
Staff & Editor
July 8, 2021

Technical Tip: Check FortiNAC proxy settings from CLI

  • July 8, 2021
  • 0 replies
  • 941 views
Description
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.conf
Example of adding proxy server to FortiNAC and verifying the settings from CLI:
FortiNAC FNVMCA
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
The output above does not contain any proxy configuration line.

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.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
proxy = http://192.168.16.2:8080
The newly added entry 'proxy = http://192.168.16.2:8080' should be visible as above.

Thought Leadership Security Summit. Outpace New Threats with AI - enhanced defense. Tuesday, Septmeber 15, 8:30 AM - 2:30 PM PT. The Golf Club at Newcastle, WA.
Fortinet Flag the Hack. Wednesday, August 26, 9:00 AM - 5:00 PM ET, COSM, Atlanta, GA.
Virtual event | September 2026. SASE summit. The age of autonomous trust. Register here!