TProxy is a lightweight Proxy Manager for Linux that lets you easily manage proxies for:
- 🌐 Terminal session
- 📦 APT package manager
- 🖥 System-wide environment
- 🛠 Git
- 🔄 One-key Toggle (ON/OFF)
- ❌ Easy Uninstall
No more manual editing of configs — set, disable, show, toggle, and uninstall proxies with a simple menu.
Clone the repo and run the installer:
git clone https://github.com/TisoneK/tproxy.git
cd tproxy
chmod +x install.sh
./install.shThis will:
- Install
tproxyglobally (/usr/local/bin/tproxy) - Enable bash completion under
/etc/bash_completion.d/ - Let you call
tproxyfrom anywhere in your terminal
Run:
tproxy===== TProxy Manager =====
1) Set Proxy
2) Disable Proxy
3) Show Current Proxy
4) Toggle Proxy
5) Exit
6) Uninstall TProxy
==========================
Choose where to set the proxy:
- Terminal → temporary for current shell
- APT →
/etc/apt/apt.conf.d/proxy.conf - System →
/etc/environment - Git →
git config --global - All → apply everywhere at once
Example:
Enter proxy URL: http://127.0.0.1:8080Removes proxy settings from:
- Terminal
- APT
- System
- Git
- Or all at once
Displays the active proxy settings for all managed components.
One keypress to switch between:
- Proxy ON → applies last saved proxy everywhere
- Proxy OFF → disables proxy everywhere
The last proxy you set is saved in:
~/.tproxy.conf
Quickly remove TProxy:
tproxy uninstallThis will:
- Disable all proxies
- Remove
~/.tproxy.conf - Remove
/usr/local/bin/tproxy - Remove bash completion
You can also run commands directly:
tproxy set all http://127.0.0.1:8080 # Set proxy everywhere
tproxy disable all # Disable proxy everywhere
tproxy toggle # Toggle proxy ON/OFF
tproxy show # Show current proxy status
tproxy uninstall # Remove TProxyWith bash completion you can tab-complete commands:
tproxy [TAB]
# → set disable toggle show uninstall helpAPTandSystem-widechanges require sudo privileges.System proxychanges require logout/login to take effect.- Proxies are stored in
~/.tproxy.conffor toggle functionality.
Tisone Kironget 📧 tisonkironget@gmail.com 🌍 GitHub Profile
MIT License – feel free to use, modify, and share.