You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Tobias Sarnowski 1d3e20f2c0 fixed image building with ubuntu 7 years ago
examples added helper for I2P setup 7 years ago
image fixed image building with ubuntu 7 years ago
.gitignore added support for setup and teardown scripts 7 years ago
LICENSE added LICENSE 7 years ago added support for setup and teardown scripts 7 years ago added ubuntu 14.04 compatibility 7 years ago

secfox / secure firefox


  • firefox has no access to your system
  • malicious websites cannot compromise your computer
  • a fresh system on every start
  • separated from your "normal" firefox

Use case

Using I2P or Tor is not easy to set up right. Little mistakes can reveal your identity. This is especially hard if you try to set up everything in one browser. This application should make it easy to run a vanilla browser for your anonymous activities.


This is only one part in securing your computer and hiding your identity. If you really care about anonymity and security, get firm with the topics first!


Note: I only tested this with Ubuntu Linux. If you're using Mac OS X or Windows use VirtualBox to run Ubuntu Linux.

Get started

Clone this git repository to your local machine. Afterwards, go into the directory and issue the following command:


The first time, this could take some time. Further calls will only take milliseconds.


After the first start, you have a config directory. Its content will be used to set up your firefox profile and system. By default, it has a minimal setup.


There are some examples provided in the examples directory. You can e.g. add some privacy options to your secfox by adding the content of the firefox/user.privacy.js file to your config/firefox/user.js file:

cat examples/firefox/user.privacy.js >> config/firefox/user.js

In order to use secfox with I2P it is recommended to do the following steps:

cat examples/firefox/user.defaults.js \
    examples/firefox/user.privacy.js \
    examples/firefox/user.proxy.js \
    > config/firefox/user.js

Then open your config/firefox/user.js and change the following settings:

  • network.proxy.http = [your I2P router IP]
  • network.proxy.http_port = [your I2P router port, usually 4444]
  • = "I2P Forum"

E.g. if you are using a Raspberry PI for your I2P router with the imaginary IP, the lines should look like:

user_pref("network.proxy.http", "");
user_pref("network.proxy.http_port", 4444);
user_pref("", "I2P Forum");

Hint: if you are running I2P on your local computer, you can find out the correct IP via ifconfig docker0. will not work! Also make sure that your I2P router is configured correctly to accept connections from the outside. force using your proxy / I2P

You can execute a bunch of own linux commands on the secfox system via a config/ script. In order to really lock down your system and prevent any malicious calls, you can forbid any kind of connections to the outer world except with your proxy. Look at the examples/ file how to set up your configuration. / customize your system

Before running firefox and after it ran, the config/ and config/ will be executed. One use case is to get the downloads from the firefox to your local computer. Look at examples/ as an example.

The following environment variables are available:

  • SECFOX_USER the firefox user name
  • SECFOX_HOST the ssh hostname
  • SECFOX_PORT the ssh port
  • SECFOX_SSH_ARGS some arguments you should pass to your ssh calls
  • SECFOX_MOZ_DIR where the firefox profile is stored remotely
  • SECFOX_CONFIG_DIR your local configuration directory

Multiple configurations

By default, secfox uses the config directory. You can provide different configurations by providing config-MyOtherSetup directories:

./ MyOtherSetup