Lanproxy is an intranet penetration tool that proxies LAN personal computers and servers to the public network. It supports TCP traffic forwarding and can support any TCP upper layer protocol (access to intranet websites, local payment interface debugging, SSH access, remote desktop... ). Currently, similar services on the market include Peanut Shell, TeamView, GoToMyCloud, etc. However, if you want to use a third-party public network server, you must pay for the third party, and these services have various restrictions. In addition, due to the data packet It will flow through a third party, so it is also a major hidden danger to data security.
server configuration
The server configuration file is placed in the conf directory and configured config.properties
server.bind=0.0.0.0#Communication port with proxy client server.port=4900#ssl related configuration server.ssl.enable=trueserver.ssl.bind=0.0.0.0server.ssl.port=4993server.ssl.jksPath= test.jksserver.ssl.keyStorePassword=123456server.ssl.keyManagerPassword=123456#This configuration can be ignored server.ssl.needsClientAuth=false#WEB online configuration management related information config.server.bind=0.0.0.0config.server.port=8090config .admin.username=adminconfig.admin.password=admin
For proxy configuration, open the address http://ip:8090, log in using the username and password configured in the above configuration, and enter the proxy configuration interface.
A server can support multiple client connections. Configuration data is stored in the ~/.lanproxy/config.json file.
Java client configuration
The configuration file of Java client is placed in the conf directory and configured config.properties
#Consistent with the secret key filled in when creating the client in the proxy-server configuration background; client.key=ssl.enable=truessl.jksPath=test.jksssl.keyStorePassword=123456#Fill in the actual proxy-server address here; there is no server The default is enough. If you have a server, change it to your own proxy-server (IP) address server.host=lp.thingsglobal.org#proxy-server ssl default port 4993, the default common port 4900#ssl.enable=true, fill in here ssl port, when ssl.enable=false, fill in the normal port server.port=4993 here
Install java1.7 or above environment
Run startup.sh in the bin directory in the linux (mac) environment
Run startup.bat in the bin directory in the windows environment
Other platform clients
If you don’t use the Java client, you can use the clients for each platform provided below, eliminating the need to install the Java operating environment.
Common port connection
# MAC 64 -bit nowhup ./client_darwin_amd64 -S Server_ip -P Server_Port -K Client_Key Linux 64 -bit noHup ./client_linux_amd64 -P Server_Port -KE CLIENT_KE Y Windows 64 -bit ./client_windows_amd64.exe -S Server_ip -P SERVER_PORT -k CLIENT_KEY
SSL port connection
# mac 64-bit nohup ./client_darwin_amd64 -s SERVER_IP -p SERVER_SSL_PORT -k CLIENT_KEY -ssl true linux 64-bit nohup ./client_linux_amd64 -s SERVER_IP -p SERVER_SSL_PORT -k CLIENT_KEY -ssl true windows 64-bit ./client_windows_ amd64. exe -s SERVER_IP -p SERVER_SSL_PORT -k CLIENT_KEY -ssl true