| Command | Comments |
|---|---|
| wireless mssid ifadd ssid=MyDMZ | "MyDMZ"
could be any SSID This command give the response "Allocated ssid id[0/1] ethernet port[wl_ssid1_local0]" Make a note of of the ssid_id, in this case it's "1" and the ethernet port name, in this case it's "wl_ssid1_local0" you'll need them later. |
| wireless mssid ifconfig | This command asks the following questions |
| ssid_id = 1 | Answer with the ssid_id provided above. |
| [ssid] = MyDMZ | Answer with the same SSID used in the first command. |
| [apisolation] = disabled | |
| [any] = enabled | |
| [secmode] = wpa-psk | Options are { disabled | wep | wpa-psk } |
| [WEPkey] = 1234567890 | Enter your own wep key |
| [WPAPSKkey] = secure password | Enter your own wpa key |
| [WPAPSKversion] = WPA+WPA2 | Options are { WPA | WPA2 | WPA+WPA2 } |
| [radio_id] = 0 | Always answer 0 |
| wireless mssid ifattach ssid_id=1 | Use the ssid_id provided above. |
| eth bridge ifadd intf=Wdmz dest=wl_ssid1_local0 logging=disabled | Use the ethernet port name from the first command , in this case it's "wl_ssid1_local0" |
| eth bridge ifattach intf=Wdmz logging=disabled | |
| eth bridge iflist | Optional -- just checking. |
| saveall | Make the settings permanent. |

| Command | Comments |
|---|---|
| eth bridge vlan iflist | Optional -- check progress. |
| eth vlan add name=dmz vid=2 | Required for all options |
| eth bridge vlan ifadd name=dmz intf=OBC untagged=disabled | Required for all options |
| eth bridge vlan ifadd name=dmz intf=ethport2 untagged=enabled | Option (a): add ethernet port 2 |
| eth bridge vlan ifadd name=dmz intf=ethport3 untagged=enabled | Option (b): add ethernet port 3 |
| eth bridge vlan ifadd name=dmz intf=ethport4 untagged=enabled | Option (c) add ethernet port 4 |
| eth bridge vlan ifadd name=dmz intf=Wdmz untagged=enabled | Option (d) add virtual wireless created above |
| eth bridge vlan iflist | Optional -- check progress. |
| eth bridge vlan ifdelete name=default intf=ethport2 | Required only if Option (a) above was used |
| eth bridge vlan ifdelete name=default intf=ethport3 | Required only if Option (b) above was used |
| eth bridge vlan ifdelete name=default intf=ethport4 | Required only if Option (c) above was used |
| eth bridge vlan ifdelete name=default intf=Wdmz | Required only if Option (d) above was used |
| eth bridge vlan iflist | Optional -- check progress. |
| saveall |

| Command | Comments |
|---|---|
| eth ifadd intf=Eth_DMZ1 | |
| eth ifconfig intf=Eth_DMZ1 dest=bridge vlan=dmz | |
| eth ifattach intf=Eth_DMZ1 | |
| ip ifadd intf=DMZ1 dest=Eth_DMZ1 | |
| ip ifconfig intf=DMZ1 group=dmz | |
| ip ifattach intf=DMZ1 | |
| ip ipadd intf=DMZ1 addr=192.168.3.254 netmask=24 | Set the IP range |
| ip ipconfig addr=192.168.3.254 preferred=enabled primary=enabled | |
| nat ifconfig intf=DMZ1 translation=transparent | |
| service system ifadd name=DNS-S group=dmz | Enable DNS in the network |
| saveall |
| Command |
|---|
| dhcp server pool add name=DMZ1_private |
| dhcp server pool config name=DMZ1_private intf=DMZ1 poolstart=192.168.3.1 poolend=192.168.3.20 netmask=24 gateway=192.168.3.254 server=192.168.3.254 leasetime=86400 |
| dhcp relay ifconfig intf=DMZ1 relay=enabled |
| dhcp relay add name=DMZ1_to_127.0.0.1 |
| dhcp relay modify name=DMZ1_to_127.0.0.1 addr=127.0.0.1 intf=DMZ1 giaddr=192.168.3.254 |
| saveall |
| Command |
|---|
| firewall rule add chain=forward_level_Standard index=1 name=DMZtoWAN srcintf=dmz dstintf=wan state=enabled action=accept |
| firewall rule add chain=forward_level_Standard index=2 name=WANtoDMZ srcintf=wan dstintf=dmz state=enabled action=accept |
| firewall rule add chain=forward_level_Standard index=3 name=DMZtoDMZ srcintf=dmz dstintf=dmz state=enabled action=accept |
| saveall |

