How to create DHCP server and a policy in the Fortigate

Here is an example script that demonstrates how to use the  fortigate-api  package to create a DHCP server and a policy in the Fortigate   from fortigate_api import FortigateAPI # Create a FortigateAPI object fgt = FortigateAPI(host="host", username="username", password="password") # Create a DHCP server data = {     "default-gateway": "192.168.255.1",     "netmask": "255.255.255.0",     "interface": "vlan.123",     "ip-range": [         {"start-ip": "192.168.255.2", "end-ip": "192.168.255.254",}     ], } fgt.dhcp_server.create(data) # Create a policy in the Fortigate data = dict(     name="POLICY",     status="enable",     action="accept",     srcintf=[{"name": "any"}],     dstintf=[{"name": "any"}],     srcaddr=[{"name": "all"}],     dstaddr=[{"name&quo

Removable Information Storage Media

 Points to be remembered while working with storage media:-

1. Try to encrypt the data before copying into removable storage media. Because by encryption we can process the data into a coded format so that this process can convert the original representation of the information, into a plain text or we can say an alternative form known as cypher. All the text which are encoded cannot be illegally access and seen in plain text format and the original information is always hidden and kept confidential. When you encrypt any data it is in cypher format and if unfortunately anyone gets access to the data it then also he or she will not be able to see your data in plain text format and its will be kept secret. 

Encryption 🔑

2. Always scan all removable media with antivirus. Because many times hacker or scammer trys to get access your information in a pendrive or any removable media through malware or virus 🦠 attack which can only be saved by regularly scanning and checking it through antivirus. Mainly all kinds of antivirus programs works to remove the worms, virus and malware. Some of the common antivirus programs are Avast, Avg-antivirus, Eset-Smart security, Quick-Heal.

Scanning of removable media
Important Note:-
1. Don't take removable media out of office without permission.
2. Erase/remove the contents of removable media after use.
3. Always scan the removable media before working with it with antivirus.
4. Some times it's happens that when you insert any removable media it can't even detected by antivirus also so always be careful.

Comments

Popular posts from this blog

How to Configure VXLAN in FortiGate Firewall

Higher Availability in FortiGate and VRRP in Cisco

Python Script to take the Backup of Multiple device in a Network