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.loginformation about connections to services -
main.loginformation about INetSim itself -
debug.logdebug information if INetSim was started in debug mode -
report/report.<pid>.txtsummary 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_addressthe ip address to listen on -
service_max_childsthe maximum number of parllel connections to handle -
service_timeouthow long to wait for a client to send data before terminating the connection -
dns_default_ipdefault IP address to send for DNS replies -
dns_staticstatic mappings for hostnames and ip addresses -
http_bind_portport to listen for HTTP connections -
http_fakemodeturn on or off HTTP fakemode -
http_static_fakefilereturn specific files based on static path -
dummy_bind_portport to listen on and just dump data received -
redirect_enabledset to yes to redirect IP communications -
redirect_unknown_servicesredirect connections to unhandled services to the dummy service -
redirect_static_ruleconnection redirection mappings