Skip to content

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

Notifications You must be signed in to change notification settings

paxinla/deploy_trojan_server

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published