> For the complete documentation index, see [llms.txt](https://documentation.hak5.org/packet-squirrel-mark-ii/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://documentation.hak5.org/packet-squirrel-mark-ii/payload-development/duckyscript-for-packet-squirrel/netmode.md).

# NETMODE

The `NETMODE` command sets the [networking mode of the Packet Squirrel](/packet-squirrel-mark-ii/getting-started/networking-and-modes.md).

## Options

`NETMODE` accepts one option:  The network mode to set.  For more information on each networking mode, check the "[Networking and modes](/packet-squirrel-mark-ii/getting-started/networking-and-modes.md)" portion of the manual!

* `NAT`\
  Basic NAT mode.
* `BRIDGE`\
  Transparent bridge mode with networking enabled for the Packet Squirrel.
* `TRANSPARENT`\
  Silent transparent bridge mode with no networking enabled for the Packet Squirrel.
* `JAIL`\
  Isolate devices on the Target port while the Packet Squirrel remains online.
* `ISOLATE`\
  Disconnect devices on the Target port and disconnect the Packet Squirrel from the network.

{% hint style="info" %}
Remember - Ducky Script commands are *case sensitive*. Be sure to send them in all caps!
{% endhint %}

## Examples

```bash
#!/bin/bash

# Title: Simple NAT mode
# Description: Put the Packet Squirrel in NAT mode and set the LED to solid green

NETMODE NAT
LED G SOLID
```
