The new FortiConverter is designed as a web application. The application (FortiConverter.py) should be run with Administrator privileges because it reads and writes data from/to high privilege directories. For security concerns, the default configuration only allows connections from users on the localhost.
To enable remote access to the web application
-
Run notepad as an administrator and open the start.bat file located in the directory C:\Program Files\Fortinet\FortiConverter\.
-
Append string 0.0.0.0:<port_num> after the keyword runserver. The port number used by default is 8000.For example:call “%install_dir%\Python36\python.exe” manage.py runserver 0.0.0.0:8000 –insecure
-
Run notepad.exe as an administrator and open C:\Program Files\Fortinet\FortiConverter\converter\backend\mysite\mysite\settings.py
-
Add the wildcard IP address ‘*’ (match ANY) into allowed ALLOWED_HOSTS.For example:
ALLOWED_HOSTS = [
'localhost',
'127.0.0.1',
'*',
]