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 Configure Wifi Router

 How to Configure Wi-Fi Router:-

Step-by-step configuration of Wi-Fi router:-

Step 1:

First of all, open your CMD or your Wi-Fi settings panel in your pc or mobile and find out the Default Gateway than note down that and go to any of your browsers to make sure that at the time you're going to configure your router it should be on and working only then it is possible to configure it otherwise no.

Router login
LOGIN PANEL
Step 2:

Secondly, we should type that Default Gateway to any of the browsers we open and then log in to the router using that username and password basically the default username and password will work on the new router but if you bought any router where the username and password are already configured then you have to find that out only then it will work.

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