{"id":19396406,"url":"https://github.com/returnfi/port-shifter","last_synced_at":"2025-07-12T19:36:54.177Z","repository":{"id":243999605,"uuid":"814013204","full_name":"ReturnFI/Port-Shifter","owner":"ReturnFI","description":"Port-shifter: Multi-method Tunneling with Shell Scripts","archived":false,"fork":false,"pushed_at":"2024-10-17T19:13:49.000Z","size":113,"stargazers_count":54,"open_issues_count":0,"forks_count":8,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-02T23:12:33.466Z","etag":null,"topics":["dokodemo-door","gost","gost-tunnel","haproxy","haproxy-loadbalancer","iptables","xray","xtls"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ReturnFI.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-06-12T07:14:23.000Z","updated_at":"2025-04-01T22:49:20.000Z","dependencies_parsed_at":"2024-10-20T00:37:05.629Z","dependency_job_id":null,"html_url":"https://github.com/ReturnFI/Port-Shifter","commit_stats":null,"previous_names":["h-return/port-shifter","returnfi/port-shifter"],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FPort-Shifter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FPort-Shifter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FPort-Shifter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ReturnFI%2FPort-Shifter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ReturnFI","download_url":"https://codeload.github.com/ReturnFI/Port-Shifter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250572177,"owners_count":21452326,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["dokodemo-door","gost","gost-tunnel","haproxy","haproxy-loadbalancer","iptables","xray","xtls"],"created_at":"2024-11-10T10:34:59.871Z","updated_at":"2025-04-24T05:30:53.366Z","avatar_url":"https://github.com/ReturnFI.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Port-Shifter\n\nPort Shifter is a script designed to manage iptables, GOST, Xray, and HAProxy installations on a Linux server. It provides an easy-to-use interface for setting up these services, checking their status, and uninstalling them.\n\n\u003cdiv align='center'\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://github.com/H-Return/Port-Shifter/assets/151555003/e94952f8-f85b-4241-83b9-a2e9b7958b8b\" width=\"600\" height=\"300\"\u003e\u003c/div\u003e\n\n## Features\n- IPTables: Configure iptables rules for TCP and UDP ports.\n- GOST: Set up a secure tunnel with GOST.\n- Xray: Install and configure Xray for enhanced security.\n- HAProxy: Install and configure HAProxy for load balancing.\n- DNS Configuration: Update DNS server settings.\n- System Updates: Keep your server up-to-dat\n\n## Install\n```shell\nbash \u003c(curl https://raw.githubusercontent.com/ReturnFI/Port-Shifter/main/install.sh)\n```\n## Supported Operating Systems\n\nThis script has been tested and is compatible with the following operating systems:\n\n* Ubuntu 20.04+\n* Debian 11+\n* CentOS 8+\n* Fedora 36+\n* AlmaLinux 9+\n* Rocky Linux 9+\n\n# Usage+(Video)\n\n\u003cdiv align='center'\u003e\u003ca target=\"_blank\" rel=\"noopener noreferrer\" href=\"https://www.youtube.com/watch?v=xAMd9DFZpQw\"\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://img.youtube.com/vi/xAMd9DFZpQw/maxresdefault.jpg\" width=\"600\" height=\"300\"\u003e\u003c/a\u003e\u003c/div\u003e\n\nThe script provides a dialog-based interface for managing various services. Below are the available functions:\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eIPTables\u003c/b\u003e\u003c/summary\u003e\n\n\u003cdiv align='center'\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://github.com/H-Return/Port-Shifter/assets/151555003/a8b48e18-736a-4e2e-8877-a3bf0d79059d\" width=\"600\" height=\"400\"\u003e\u003c/div\u003e\u003cbr\u003e\n\n1.Install IPTables:\n\n- Configures iptables rules for TCP and UDP ports.\n- Prompts for server IP and ports to be configured.\n\n2.Check IPTables Ports:\n  \n- Displays the current iptables rules and service status.\n\n3.Uninstall IPTables:\n\n- Removes iptables rules and stops the service.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eGOST\u003c/b\u003e\u003c/summary\u003e\n\n\u003cdiv align='center'\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://github.com/ReturnFI/Port-Shifter/assets/151555003/014ef77b-8a15-4f8b-9017-ec12c842f4e7\" width=\"600\" height=\"400\"\u003e\u003c/div\u003e\u003cbr\u003e\n\n1.Install GOST:\n\n- Downloads and installs GOST.\n- Prompts for domain/IP and port configuration.\n\n2.Check GOST Ports:\n\n- Displays the current GOST ports and service status.\n\n3.Add Another Port to GOST:\n\n- Adds a new port and domain/IP to the existing GOST configuration.\n\n4.Remove Port And Domain\n\n- Remove a port and domain/IP From GOST configuration.\n\n5.Uninstall GOST:\n\n- Stops and removes GOST service and binary.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eXray\u003c/b\u003e\u003c/summary\u003e\n\n\u003cdiv align='center'\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://github.com/H-Return/Port-Shifter/assets/151555003/95258975-7792-4178-a83f-876497f3d8a2\" width=\"600\" height=\"400\"\u003e\u003c/div\u003e\u003cbr\u003e\n\n1.Install Xray:\n\n- Installs Xray using the official script.\n- Prompts for domain/IP and port configuration.\n\n2.Check Xray Service:\n\n- Displays the current Xray ports and service status.\n\n3.Add Another Inbound:\n\n- Adds a new inbound configuration to Xray.\n\n4.Remove Inbound:\n\n- Removes an existing inbound configuration from Xray.\n\n5.Uninstall Xray:\n\n- Removes Xray configuration and uninstalls the service.\n\u003c/details\u003e\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eHAProxy\u003c/b\u003e\u003c/summary\u003e\n\n\u003cdiv align='center'\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://github.com/ReturnFI/Port-Shifter/assets/151555003/03fe4db9-f43a-4504-a60c-e83c4f271552\" width=\"600\" height=\"400\"\u003e\u003c/div\u003e\u003cbr\u003e\n  \n1.Install HAProxy:\n\n- Installs HAProxy and configures it based on user input.\n\n2.Check HAProxy:\n\n- Displays the current HAProxy ports and service status.\n\n3.Add more tunnel Configuration:\n\n- Adds a new configuration to HAProxy\n\n4.Remove tunnel Configuration\n\n- Removes an existing configuration from HAProxy\n\n5.Uninstall HAProxy:\n\n- Stops and removes HAProxy service and configuration.\n\u003c/details\u003e\n\n\u003cdetails\u003e\n\u003csummary\u003e\u003cb\u003eOptions\u003c/b\u003e\u003c/summary\u003e\n\n\u003cdiv align='center'\u003e\u003cimg style=\"aspect-ratio:1448/659;\" src=\"https://github.com/H-Return/Port-Shifter/assets/151555003/52165edf-71df-4fbb-904c-c8fdf566c374\" width=\"600\" height=\"400\"\u003e\u003c/div\u003e\u003cbr\u003e\n\n1.Configure DNS:\n\n- Updates DNS server settings.\n\n2.Update Server:\n\n- Updates the server's package list and installed packages.\n\u003c/details\u003e\n\n## Notes\n- Ensure you have a backup of your current iptables rules and configurations before running this script.\n- Running this script will modify system configurations and install various services. Use with caution on production servers.\n\n\n# Disclaimer\nThis project is only for personal learning and communication, please do not use it for illegal purposes, please do not use it in a production environment\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freturnfi%2Fport-shifter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freturnfi%2Fport-shifter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freturnfi%2Fport-shifter/lists"}