Automating login to the NITC Firewall instead of wasting time on this:
- bash
- curl
git clone https://github.com/arpankapoor/forti_login.git
cd forti_login
sudo make install
sudo make uninstall
forti_login [-u <username>] [-p <password>] [-f <filename>]
Each line of input file should contain username and password delimited
by whitespace (see the file forti_list
).
Upstart and systemd service files have been included.
Start with
- Upstart:
sudo initctl start forti_login
- systemd:
sudo systemctl start forti_login.service
To start on boot:
-
Upstart: Add the following lines to the beginning of the upstart config file.
start on runlevel [2345] stop on runlevel [!2345]
-
systemd:
sudo systemctl enable forti_login.service