Skip to content

Instantly share code, notes, and snippets.

@Jianghao
Last active November 29, 2021 14:07
Show Gist options
  • Save Jianghao/95896f0c9a6c0ad879a4f92a90b333a6 to your computer and use it in GitHub Desktop.
Save Jianghao/95896f0c9a6c0ad879a4f92a90b333a6 to your computer and use it in GitHub Desktop.
Lanproxy

Jianghao Wang | 2021-11-26

Lan Proxy

https://github.com/ffay/lanproxy

Linux side

Taking Ubuntu 20.04 as an example

login Tencent Server: first change the root pwd setting.

Remember to open the firewall: 8787, 5555, 8090, and *993

sudo apt update
sudo apt upgrade

install jdk and maven

sudo apt install default-jdk
java --version
sudo apt-get install maven

Server side

install proxy-server-0.1.zip

download it from: https://file.nioee.com/d/2e81550ebdbd416c933f/

install proxy server side

cd /root/
unzip proxy-server-0.1.zip
cd proxy-server-0.1/bin
chmod +x startup.sh
./startup.sh

configure the proxy setting

cd /proxy-server-0.1/conf
vim config.properties
Change 4993 to *993!

configure the proxy server side

login: http://ip:8090/

Add a server client and configure the following information

Power Rstudio
5555
192.168.1.5:8787

Power SSH
5522
192.168.1.5:22

Restart the service under proxy-server-0.1/bin

./stop.sh
./startup.sh

The last step is to configure the local server:

nohup /home/jianghao/Desktop/client_linux_amd64 -s your_server_ip -p *993 -k secrect_key -ssl true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment