On this page
article
KILLPORT
The KILLPORT command inspects network traffic for activity on the specified ports. Traffic on those ports will be killed with TCP FIN packet injection.
Options
The KILLPORT command expects several options:
KILLPORT [interface] [port] ... [portN]
The KILLPORT command only works on TCP connections; the FIN injection method required to terminate a connection is part of the TCP protocol.
Interface
KILLPORT requires a network interface. Typically on the Packet Squirrel this is br-lan, the virtual interface which connects the Ethernet ports.
Ports
KILLPORT can match any number of ports.
Examples
The KILLPORT command can be used as part of a payload to prevent traffic on the specified ports.
#!/bin/bash
NETMODE BRIDGE
LED G SINGLE
KILLPORT br-lan 443