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

how to safe and secure windows 10 || how to secure my computer || how to secure pc

Changing user settings

Here we will be making a new user in the system to access so that whenever we give our personal computer/laptop to anyone like friends or relatives he will be accessing our system from this user and our main files and system will be isolated and he could not able to do any kind of changes in your PC. (For safety purposes)  

Step 1: Go to this PC and right-click on it.
Right-click on This Pc


Step 2: Click on manage
Click on Manage


Step 3: Click on **Local Users and Groups**
Click on Local users & Groups


Step 4: Click on **Users** folder
Users


Step 5: In the blank space right-click and go to the new user (a dialogue box will open asking for                     information)
New User


Step 6: Provide all the necessary information about the user and click on user must change the password on the next logon if you want him to have his/her own password.
New-User Info


Step 7: Press **Ctrl+Alt+Delete** and click on **Switch User** to login through the user you                 have created
Created User Login

Changing Storage settings

Here we will be enabling a setting of storage called **storage sense** to make our PC automatically delete all the files and folders which are there inside the temp (temporary) folder.

Step 1: Go to the **Notification Area** and click on it
Notification Area


Step 2: Click on **All Settings** 
All settings


Step 3: In search for **Turn on Storage Sense**
Storage Sense

Step 4: Here is the Storage Cleaning up
Cleaning Up





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