# 配置内网地址
add network 192.168.1.0 netmask 255.255.255.0
add host 192.168.1.1
# 配置外网地址
add network 203.0.113.0 netmask 255.255.255.0
add host 203.0.113.1
# 配置默认路由
set static-route 0.0.0.0/0 nexthop gateway address 203.0.113.254 on
# 配置NAT
set nat source rule 10 source-address 192.168.1.0/24 destination-address !192.168.1.0/24 service any translated-address 203.0.113.1 on
set nat destination rule 10 destination-address 203.0.113.1 destination-port 80 translation-address 192.168.1.1 on