Installation
Comprehensive guide on installation & basic setup
This document will describe the process for locating, installing & verifying GoNetSim. Please ensure you are following the correct instructions for your operating system.
Prerequisites
Section titled “Prerequisites”- Windows 10+ OR Windows Server 2016+
- x86_64 or ARM64 CPU architecture
- x86_64 or ARM64 CPU architecture
Download
Section titled “Download”The source repository can be found here (github.com/lachlanharrisdev/gonetsim). It is periodically mirrored to here (git.lachlanharris.dev/lachlanharris.dev/gonetsim), and a GitLab mirror is soon to be established.
-
Go to the releases page and find the latest release.
-
Download the correct release for your platform
Download
GoNetSim_Windows_x86_64.zipDownload
GoNetSim_Windows_arm64.zip -
Extract the downloaded archive
-
Move the extracted
gonetsim.exeto a directory in your PATH (e.g.C:\Windows\System32) -
Verify the installation
Terminal window gonetsim --version
-
Run the install script
Terminal window curl https://gonetsim.lachlanharris.dev/install.sh | sh
-
Download the latest release directly from the releases page
Terminal window curl -L -O https://github.com/lachlanharrisdev/gonetsim/releases/latest/download/GoNetSim_Linux_x86_64.tar.gzTerminal window curl -L -O https://github.com/lachlanharrisdev/gonetsim/releases/latest/download/GoNetSim_Linux_arm64.tar.gz -
Extract the downloaded archive
Terminal window tar -xzf GoNetSim_Linux_x86_64.tar.gzTerminal window tar -xzf GoNetSim_Linux_arm64.tar.gzA single binary named
GoNetSimshould be extracted to the current working directory -
Move the extracted binary to a directory in your PATH (and rename it to
gonetsim)Terminal window sudo mv GoNetSim /usr/local/bin/gonetsim -
Allow permission to listen on privileged ports. This stops the binary from requiring
sudoto runTerminal window sudo setcap 'cap_net_bind_service=+ep' /usr/local/bin/gonetsim -
Verify the installation
Terminal window gonetsim --version
Please see the Docker guide for instructions on how to use GoNetSim with Docker.
First Run
Section titled “First Run”After installing GoNetSim, it should work right out the box by running:
gonetsimgonetsim.exeThe first run of the command will create a default configuration file at $XDG_CONFIG_HOME/gonetsim/config.toml (or ~/.config/gonetsim/config.toml if XDG_CONFIG_HOME is not set).
You can edit this file to change the default configuration, or specify a different config file with the --config flag.
For more information on configuration, see the configuration documentation.
The first run will also create persistent TLS certificates if you don’t have user-provided ones configured. For more information on this, see the TLS reference.
