Firewall Policy Group:
Firewall Name:
Change Rule Description rule 99 description 'Rule description' Change Address
Change port
Enable or Disable Logging Enable: ## set firewall name WAN_IN rule 99 log enable Disable: ## set firewall name WAN_IN rule 99 log disable Change the protocol if needed
Change the NAT rule Description:
Change the External IP if you have multiple External IPS of not remove the rule
Change port:
Change inbound-interface if needed:
Change inbound-address:
Change inside-address port:
Enable or Disable Logging Enable: ## set service nat rule 21 log enable Disable: ## set service nat rule 21 log disable Change protocol:
Change the commit comment:
############ Code to execute on Router ############
configure
set firewall group address-group WAN_IN address 192.168.1.160
set firewall name WAN_IN rule 99 action accept
set firewall name WAN_IN rule 99 description 'Rule description'
set firewall name WAN_IN rule 99 destination address 192.168.1.160
set firewall name WAN_IN rule 99 destination port 80
set firewall name WAN_IN rule 99 log enable
set firewall name WAN_IN rule 99 protocol tcp
set service nat rule 21 description 'Rule description port 80'
set service nat rule 21 destination address 185.40.40.1
set service nat rule 21 destination port 80
set service nat rule 21 inbound-interface eth0
set service nat rule 21 inside-address address 192.168.1.160
set service nat rule 21 inside-address port 80
set service nat rule 21 log enable
set service nat rule 21 protocol tcp
set service nat rule 21 type destination
commit comment “Comment what you have changed”
save