https://github.com/garywill/proxc
configure DNS/proxy for one process execution on Linux 📡
https://github.com/garywill/proxc
bubblewrap bwrap cli dns linux mount-namespace per-app-dns per-process-dns proxy proxychains unshare
Last synced: 11 months ago
JSON representation
configure DNS/proxy for one process execution on Linux 📡
- Host: GitHub
- URL: https://github.com/garywill/proxc
- Owner: garywill
- Created: 2017-11-24T04:06:34.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2025-03-28T13:00:04.000Z (11 months ago)
- Last Synced: 2025-04-15T07:56:27.221Z (11 months ago)
- Topics: bubblewrap, bwrap, cli, dns, linux, mount-namespace, per-app-dns, per-process-dns, proxy, proxychains, unshare
- Language: Shell
- Homepage: https://garywill.github.io
- Size: 12.7 KB
- Stars: 22
- Watchers: 3
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# proxc
1. per-process DNS configuration on Linux
2. per-process proxy configuration on Linux
## Configure DNS for Linux command execution
```
proxc -d [-d ] -c
```
Execute command with the DNS you specify.
It uses bubblewrap to create a mount namespace, in which processes see the DNS you want in a fake `/etc/resolv.conf`.
It bans in the namespace `/var/run/nscd` so processes can't use system's DNS cache
> Now it requires bubblewrap >= 0.11.0 . If you're using older bubblewrap, please use old proxc 1.0
## Configure proxy for Linux command execution
```
proxc -p socks5|socks4|http -c
```
Execute command with `proxychains` applied without having to edit `proxychains.conf` . Useful when you just want to run some app temporarily behind a single proxy.
It generates and uses a `proxychains.conf` in memory.
> **Notice:** proxychains doesn't ensure process must go through the proxy. There can be leaks.
## Configure both DNS & proxy
proxc [-d ] [-p socks5|socks4|http ] -c