Skip to content

Set of scripts for setting temporary servers for network services


Notifications You must be signed in to change notification settings


Repository files navigation

      .'\.         Temporary  
    .'   \'.	   Ephemeral 
   /\'.   \ '.	   Networking 
  / |\ '.  \  'x   Toolkit    
 /  |\\  ','
/__/  |\,' 'x       v1.2

Polprog's TENT

TENT (Temporary Ephemeral Networking Toolkit) is is a collection of scripts that
allow you to set up a temporary network services servers. The aim of this is to
enable creating a fast test network on a computer without the hassle of needing
to edit system-wide configuration files or enable/disable system services.

Current services

TENT v1.2 supports setting up the following services:

    - DHCP
    - FTP
    - TFTP
    - SSH (root and rootless)

DHCP and TFTP services allow you to set up a PXE server, see the "PXE server"
section below as well as netboot.notes for how to set up a Debian netboot server.

The DHCP server uses ip(8) and dhcpd(8). This was tested on Debian 10 with
isc-dhcp-server as dhcpd.

The FTP server uses bftpd. bftpd is not available in Debian repositories, you
will have to build it from source. It is available in Arch linux. 

The TFTP server uses the HPA tftpd. It is available in the tftpd-hpa package on

The SSH server uses dropbear and dropbearkey. SSH server needs to be run as
root, even when not using a privileged port.

The Rootless SSH server needs Python 3 and the paramiko module

Please note, that if you are installing these from the repository, you
will most likely have to stop and disable the system services, as they are
enabled during install by default. Leaving a DHCP/TFTP that starts on boot may
cause an unpleasant surprise when troubleshooting network issues later (who
wants to accidentally have a second DHCP server to a network?)

Each of the servers has a wrapper script. These scripts usually do not take any
arguments. Usually it is enough to run the script as root. These scripts can be
run as background jobs. Each script has got a set of user-configurable
variables, and, if necesary, a similarly named configuration file.

For example, to run the dhcp server, one would adjust the variables in
and the settings in dhcpd.conf to match, and issue a command:

$ sudo ./
# ./

All scripts can be stopped with ^C, scripts that need cleanup trap SIGINT as

Rootless SSH server
TENT comes with an SSH-compatible server written in Python 3 using the paramiko
library. This script emulates an SSH server allowing clients to connect and run
the shell. Contrary to a regular SSH server, this server always executes the
shell as the user who ran it, requiring no root priviledges. Think about it as
an SSH replacement for netcat -e

Usage: ./ -h
By default listens on localhost:2200, user is 'azurediamond', password 'hunter2'

PXE server
For a PXE server you will want to put a PXE bootloader in the tftproot
directory, and adjust the filename stanza in dhcpd.conf. The default filename in
dhcpd.conf is set for PXELINUX bootloader. For a minimal PXELINUX setup, place
the following files from the PXELINUX distribution in tftproot directory:


And place the SYSLINUX configuration file in:

More information can be found on the SYSLINUX wiki.

-----    - DHCP server script
dhcpd.conf  - DHCP server configuration file     - FTP server script
bftpd.conf  - FTP server config file    - TFTP server script
tftproot/   - root directory of TFTP server
troubleshooting.txt  - troubleshooting the TFTP server

netboot.notes - notes about setting up a PXE host serving Debian Buster - SSH server script  - Utility script to enable NAT for the DHCP server. - Rootless SSH server


Set of scripts for setting temporary servers for network services







No releases published