Skip to content

Shooa/gs-proxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GS Proxy - TCP Proxy for Galileosky Devices

This project implements a TCP proxy server for forwarding traffic to various backend services.

Description

The proxy accepts TCP connections and forwards them to target servers.

Device Configuration

To configure your Galileosky device to use this proxy server:

Remote Configuration Server

Command format: REMOTECONFIGADDR server,port

Example:

Request: REMOTECONFIGADDR <your-proxy-ip>,9444
Response: REMOTECONFIGADDR=<your-proxy-ip>,9444

Firmware Update Server

Command format: UPGRADEIP server,port

Example:

Request: UPGRADEIP <your-proxy-ip>,32132
Response: UPGRADEIP=<your-proxy-ip>:32132

Note: Commands are available on 7x terminals with firmware 44.0 and higher.

Requirements

  • Docker
  • Docker Compose

Usage

Start the proxy

docker-compose up -d

Stop the proxy

docker-compose down

Restart the proxy

docker-compose restart

View logs

docker-compose logs -f tcp-proxy

Check status

docker-compose ps

Configuration

HAProxy configuration is located in haproxy.cfg. After changing the configuration, restart the container:

docker-compose restart

Ports

  • 9444 - Remote configuration → c.7gis.ru:9444
  • 32132 - Firmware updates → www.g-a-l-i-l-e-o.com:32132
  • 60522 - Test telematic server (default settings) → service.7gis.ru:60522

Timeouts

  • Connect: 10 seconds
  • Client: 3 minutes
  • Server: 1 minute
  • Tunnel: 8 hours (for long-lived connections)

Project Structure

gs-proxy/
├── docker-compose.yml    # Docker Compose configuration
├── haproxy.cfg           # HAProxy configuration
└── README.md             # Documentation

Server Setup (Debian/Ubuntu)

Install Docker

curl -fsSL https://get.docker.com -o get-docker.sh
sudo sh get-docker.sh
sudo usermod -aG docker $USER
newgrp docker

Deploy

git clone <repository-url>
cd gs-proxy
docker compose up -d

Firewall (optional)

sudo ufw allow 22/tcp
sudo ufw allow 9444/tcp
sudo ufw allow 32132/tcp
sudo ufw allow 60522/tcp
sudo ufw --force enable

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors