# DHCP configuration of subnets 10.0.1.0/24 and 10.0.2.0/24 edit service dhcp-server set disabled false set hostfile-update enable show top # subnet 10.0.1.0/24 edit service dhcp-server set shared-network-name LAN subnet 10.0.1.0/24 start 10.0.1.40 stop 10.0.1.139 set shared-network-name LAN subnet 10.0.1.0/24 default-router 10.0.1.1 set shared-network-name LAN subnet 10.0.1.0/24 dns-server 8.8.8.8 set shared-network-name LAN subnet 10.0.1.0/24 dns-server 8.8.4.4 set shared-network-name LAN subnet 10.0.1.0/24 lease 86400 set shared-network-name LAN subnet 10.0.1.0/24 static-mapping ip-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping mac-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping ip-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping mac-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping ip-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping mac-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping ip-address set shared-network-name LAN subnet 10.0.1.0/24 static-mapping mac-address show top # subnet 10.0.2.0/24 edit service dhcp-server set shared-network-name LAN subnet 10.0.2.0/24 start 10.0.2.40 stop 10.0.2.139 set shared-network-name LAN2 subnet 10.0.2.0/24 default-router 10.0.2.1 set shared-network-name LAN2 subnet 10.0.2.0/24 dns-server 8.8.8.8 set shared-network-name LAN2 subnet 10.0.2.0/24 dns-server 8.8.4.4 set shared-network-name LAN2 subnet 10.0.2.0/24 lease 21600 show top # Save the DHCP configuration for the two subnets commit save # DNS caching settings edit service dns set forwarding cache-size 1000 set forwarding listen-on eth1 set forwarding listen-on eth2 show top # Always show GUI on HTTPS edit service gui set https-port 443 show top # Connect to the internet via eth0 edit service nat set rule 5010 outbound-interface eth0 set rule 5010 type masquerade show top # Normal SSH configuration on port 22 using protocol 2 edit service ssh set port 22 set protocol-version v2 show top # Bittorrent and things... edit service upnp2 set listen-on eth1 set wan eth0 show top # Save DNS, GUI, SSH and UPNP2 configuration commit save