Skip to content

Commit

Permalink
update readme and add scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ZhangJiupeng committed Jan 25, 2017
1 parent 50adae8 commit c8d35c0
Show file tree
Hide file tree
Showing 4 changed files with 94 additions and 5 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
AgentX
[![](http://7xp1jv.com1.z0.glb.clouddn.com/agentx-logo.png?imageView2/2/w/48)](http://agentx.zhangjiupeng.com) AgentX
============

[![Build Status](https://travis-ci.org/ZhangJiupeng/AgentX.svg?branch=master)](https://travis-ci.org/ZhangJiupeng/AgentX)
[![Join Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/shadowsocks-java/Lobby?utm_source=share-link&utm_medium=link&utm_campaign=share-link)

AgentX is a [Socks5](https://www.ietf.org/rfc/rfc1928.txt) proxy based on [Netty](http://netty.io/), which can be used to pass the [GFW](https://en.wikipedia.org/wiki/Great_Firewall), support encryption, obfuscation, compression and masquerading in data transmission (allowing flexible configuration of multiple data processes), compatible with [Shadowsocks](https://shadowsocks.org/). It supports traffic monitoring and reserved custom protocol development interface (notice that this project is not the implementation of RFC2741)
AgentX is a [Socks5](https://www.ietf.org/rfc/rfc1928.txt) proxy based on [Netty](http://netty.io/), which can be used to bypass the [GFW](https://en.wikipedia.org/wiki/Great_Firewall), support encryption, obfuscation, compression and masquerading in data transmission (allowing flexible configuration of multiple data processes), compatible with [Shadowsocks](https://shadowsocks.org/). It supports traffic monitoring and reserved custom protocol development interface (notice that this project is not the implementation of RFC2741)


### Download
Expand All @@ -27,7 +28,7 @@ The latest version: 1.2-beta [download](https://github.com/ZhangJiupeng/AgentX/r
* [快速使用](https://github.com/ZhangJiupeng/AgentX/wiki/%E5%BF%AB%E9%80%9F%E4%BD%BF%E7%94%A8-%E6%9C%8D%E5%8A%A1%E7%AB%AF)
* [详细配置](https://github.com/ZhangJiupeng/AgentX/wiki/%E8%AF%A6%E7%BB%86%E9%85%8D%E7%BD%AE-%E6%9C%8D%E5%8A%A1%E7%AB%AF)

## LICENSE
### License
Copyright 2017 ZhangJiupeng

Licensed under the Apache License, Version 2.0 (the "License");
Expand Down
60 changes: 60 additions & 0 deletions agentx-server-1.2-install.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
#! /bin/bash

name="agentx-server-1.2-beta"
downloadUrl="https://zhangjiupeng.com/agentx/${name}.tar.gz"
basePath="/usr/local/agentx/"

clear
echo -e "\n\n\
_ _ __ __ \n\
/ \\ __ _ ___ _ __ | |_ \\ \\/ / \n\
/ _ \\ / _\` |/ _ \\ \`_ \\| __| \\ / \n\
/ ___ \\ (_| | __/ | | | |_ / \\ \n\
/_/ \\_\\__, |\\___|_| |_|\\__ /_/\\_\\ \n\
|___/ \n\
\n\
AgentX Server 1.2 Installer \n\
========================================="
if [ ! -d "${basePath}" ]; then
echo -e "Create folder \"${basePath}\""
mkdir "${basePath}"
else
echo -e "Folder \"${basePath}\" exists, please remove before install this program. \n"
exit 1
fi

echo "Redirect to ${basePath}"
cd ${basePath}

echo "Downloading..."
wget -q ${downloadUrl}

echo "Extracting files..."
tar -xvf ${name}.tar.gz
rm ${name}.tar.gz

echo -e "\nConfig ${name}"
read -p "port: " port
read -s -p "password: " password

echo -e "\nMerging ${basePath}${name}/bin/config.json..."
echo -e "\
{
\"host\": \"0.0.0.0\",\n\
\"port\": ${port},\n\
\"relayPort\": [],\n\
\"protocol\": \"shadowsocks\",\n\
\"encryption\": \"aes-256-cfb\",\n\
\"password\": \"${password}\",\n\
\"process\": [\"encrypt\"],\n\
\"dnsCacheCapacity\": 1000,\n\
\"writeLimit\": 0,\n\
\"readLimit\": 0\n\
}
" > ${basePath}${name}/bin/config.json

echo -e "\nInstall service..."
${basePath}${name}/bin/agentx version
${basePath}${name}/bin/agentx installstart
echo -e "Done!\n"

28 changes: 28 additions & 0 deletions agentx-server-1.2-uninstall.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#! /bin/bash

name="agentx-server-1.2-beta"
basePath="/usr/local/agentx/"

clear
echo -e "\n\n\
_ _ __ __ \n\
/ \\ __ _ ___ _ __ | |_ \\ \\/ / \n\
/ _ \\ / _\` |/ _ \\ \`_ \\| __| \\ / \n\
/ ___ \\ (_| | __/ | | | |_ / \\ \n\
/_/ \\_\\__, |\\___|_| |_|\\__ /_/\\_\\ \n\
|___/ \n\
\n\
AgentX Server 1.2 Installer \n\
========================================="
if [ ! -d "${basePath}" ]; then
echo -e "${name} has already removed. \n"
exit 1
fi

echo "Uninstalling..."
${basePath}${name}/bin/agentx remove

echo "Removing folder..."
rm -r ${basePath}

echo -e "${name} has been removed.\n"
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>

<repositories>
<!--<repositories>
<repository>
<id>alimaven</id>
<name>aliyun maven</name>
Expand All @@ -70,7 +70,7 @@
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>
</pluginRepositories>-->

<build>
<resources>
Expand Down

0 comments on commit c8d35c0

Please sign in to comment.