INetSim Guide
Overview
INetSim is a series of scripts that allows you to emulate a number of common services, and systems.
Starting INetSim
To start INetSim open a terminal window by clicking on the Terminal icon on theo toolbar on the left.
Then type:
sudo inetsim
When prompted for your password enter student.
Keep INetSim Open
Don't close this window (and don't hit control-c) otherwise INetSim will exit.
Logs
The log files for INetSim are found under /var/log/inetsim
. You can view them
using the less
command, the cat
command, gedit
, or even vi
.
-
service.log
information about connections to services -
main.log
information about INetSim itself -
debug.log
debug information if INetSim was started in debug mode -
report/report.<pid>.txt
summary information for service interactions, generated when INetSim exits.
Configuration
The configuration file for INetSim is /etc/inetsim/inetsim.conf
. You can view
it using gedit:
# gedit /etc/inetsim/inetsim.conf
Permissions
You must be root to make changes to the file.
Most of the comments explain the various settings. Some useful ones to know:
-
service_bind_address
the ip address to listen on -
service_max_childs
the maximum number of parllel connections to handle -
service_timeout
how long to wait for a client to send data before terminating the connection -
dns_default_ip
default IP address to send for DNS replies -
dns_static
static mappings for hostnames and ip addresses -
http_bind_port
port to listen for HTTP connections -
http_fakemode
turn on or off HTTP fakemode -
http_static_fakefile
return specific files based on static path -
dummy_bind_port
port to listen on and just dump data received -
redirect_enabled
set to yes to redirect IP communications -
redirect_unknown_services
redirect connections to unhandled services to the dummy service -
redirect_static_rule
connection redirection mappings