Skip to main content

Scripts to order a Fortigate from Softlayer and lock it down

Project description

Installation Preconditions

You must have a SoftLayer account; if you were not provided with one, or you cannot use the provided credentials to authenticate at https://control.softlayer.com/, please contact a support person in your group.

Installation

The SL Fortigate tool is a Python module installable from the public PyPI repository, https://pypi.python.org/pypi. If you have a system with an installed, configured copy of the SoftLayer library (https://pypi.python.org/pypi/SoftLayer), you can install the slfortigate package with this command:

pip install slfortigate

You can access usage information by invoking the command with the help argument, e.g.:

slfortigate –help

(Note that recent versions of the HTTP client used by the SoftLayer tool may complain about out-of-date SSL native libraries. For more information about this issue, consult https://urllib3.readthedocs.org/en/latest/security.html.)

If you do not have a suitable Linux system or SoftLayer installed and configured, follow the below instructions to provision a system in SoftLayer and configure it.

Setting up a Linux system in SoftLayer

Use your SoftLayer credentials to provision a Virtual Server (VS) with the SoftLayer control panel at https://control.softlayer.com/. Please provision a CentOS 7 64bit system. Once provisioned, use SSH to connect to the system and issue the following commands:

yum install -y epel-release && yum install -y python-pip python-devel gcc openssl-devel libffi-devel && pip install –upgrade pip && pip install slfortigate

Configure the SoftLayer tool

To configure the SoftLayer command line tool, execute:

slcli config setup

If you need to obtain a SoftLayer API key to complete the CLI configuration procedure, consult http://knowledgelayer.softlayer.com/procedure/generate-api-key.

Once your SoftLayer account is configured you may use the slfortigate tool. To access usage information, invoke slfortigate with the help argument, e.g.:

slfortigate –help

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distribution

slfortigate-0.1.3-py2.py3-none-any.whl (17.3 kB view details)

Uploaded Python 2 Python 3

File details

Details for the file slfortigate-0.1.3-py2.py3-none-any.whl.

File metadata

File hashes

Hashes for slfortigate-0.1.3-py2.py3-none-any.whl
Algorithm Hash digest
SHA256 a8e8246d83f0396381b0d6509af849864e5ff2f434ac17f5791c21c3b5eea066
MD5 fd3b1b9558d655ef3155c9c7e8f770dd
BLAKE2b-256 4e7cd3a625cee1f022a1c40c96adbeb26199688d71348ca37613b41b247fb8ec

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page