Port Knocker is an Android application that allows people (who are running a port knock daemon) to send TCP or UDP packets to the specified ports. Based off the other app PortKnocking (originally the only one in the Android market), but faster, and semi-more reliable.
Upon initial installation, the application will have an empty hosts list, and will present a message saying "No Hosts, use Menu->Add to add some."
- To add a host, first click the menu button on your phone (either labeled with "Menu" or a picture of an indented list)
- Choose the only option, "Add Host", which will take you to a new screen labeled "Add/Edit Host"
- Fill out the "Host Name" field (the timeout is preset, but can be changed; it adjusts how long it will wait for a response from the remote host, so it affects the speed with which the knocks are sent)
- Optional: If you want ConnectBot (available in the Market, not made by me) to be launched upon successful knocking (ex: using PortKnocker to allow ssh access into remote host), then fill out the "Host Nickname" (which should be the same as your saved settings in ConnectBot to use that profile), "Username", and "Port Number" (if different then 22).
- Click "Save", after which you will be taken to another screen that is labeled "Port list for host: ..."
- Since this is a new host, the Port list is empty, and will display a message saying "No ports for this host, use Menu->Add to add some."
- To add ports, click the Menu button, then choose "Add Port"
- If you want the knock for this port to be directed to a different host (other than the one that is automatically placed in the "Host Name" field), enter the desired host/IP address in the "Host Name" field.
- Fill out the "Port Number" field, and select the "Packet Type" to send (either TCP or UDP)
- Click "Save"
- Repeat steps 7-9 for each additional port (Ports will be knocked in the order they are listed)
- Use the back button (arrow pointing backwards) to exit the "Ports List" screen.
- To edit a host, click and hold the name of the host to be edited
- Select "Edit Host" from the contextual menu
- Make changes
*NOTE If you change the IP address here, it will only change the IP address that is used for connect bot; it will NOT change the IP address for each port, that must be done for each port individually via editing of the ports. This will most likely be fixed in a future version.
- Click "Save" to save changes, or "Cancel" to cancel changes (using the back button will also cancel changes)
- To edit a hosts ports directly, click and hold the name of the host to be edited
- Select "Edit Port(s)" from the contextual menu
- To add ports, click the "Menu" button on your device, then choose "Add Port" (look at steps 7-10 of "Adding a Host" for more information)
- To edit a port, click and hold the port to be changed. Choose "Edit Port" to change the port's settings, or choose "Delete Port" to remove the selected port from the list.
To send the port knocks to the host, either click the hostname to start knocking -- or -- Click and hold the host's name to bring up a contextual menu, then choose "Send Knock"