/deploy_trojan_server

Deploy a Trojan server instance with Docker on a Ubuntu server.

Primary LanguageShell

Deploy Trojan Server

Bash trojan


This is a set of bash scripts for installing Trojan server on a Ubuntu server with Docker. It generates necessary self-signed certificate files. No domain name required.

Requirements

  • OS: Ubuntu
  • OS User: Can use sudo without input password

Usage

On the server side, Execute command in this directory :

$ make install IP=your-server-public-ip PASSWORD=your-trojan-connect-password

After finishing the installation, you should copy the files, config.client.json and ca-cert.pem, under directory tmp, to your trojan client directory. And rename config.client.json to config.json .

Use docker command to manage the trojan server:

$ docker stop trojan

$ docker start trojan

Changing the server port needs to modify config.json file on both server side and client side, and add a relervant rule on ufw firewall on the server side.