Security News
Maven Central Adds Sigstore Signature Validation
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
High-performance, transparent HTTP/HTTPS proxy that supports both TCP and UDP protocols while being fully configurable and privacy-focused
High-performance, transparent proxy that supports both TCP and UDP protocols.
A high-performance, transparent proxy that supports both TCP and UDP protocols.
NOTE: This proxy has been designed with local API proxy in mind. Specifically, I used it to forward Ollama API requests to the remote Ollama server for applications that try to connect to the local Ollama server on localhost.
IMPORTANT: The proxy will automatically log stuff to /var/log/oproxy.log
if no log file is specified. Please make sure the user running the proxy has write permissions to this file or specify a different log file using the --log-file
argument.
The proxy now includes built-in metrics collection and monitoring:
git clone https://github.com/tcsenpai/oproxy.git
cd oproxy
pip install -r requirements.txt
cp .env.example .env
# Example: your Ollama server is running on 192.168.1.100:11434
PROXY_PORT=11434
TARGET_HOST=192.168.1.100
TARGET_PORT=11434
pip install oproxy
NOTE: Once installed through PyPI, you can use the oproxy
command to start the proxy instead of python src/main.py
. This is valid also for the following usage examples.
Basic TCP proxy:
python src/main.py
Customize the proxy port and/or target host and port:
python src/main.py --proxy-port 11435 --target-host 192.168.1.101 --target-port 11435
Enable logging to file:
python src/main.py --log-file=proxy.log
Enable data logging with debug level:
python src/main.py --log-file proxy.log --log-data --log-level DEBUG
Enable full data logging:
NOTE: This will log the entire payload of the request and response.
python src/main.py --log-file proxy.log --log-data --full-debug
Enable UDP support:
python src/main.py --enable-udp
Metrics are automatically logged to your configured log file or stdout. They include:
Performance Metrics: {
'total_connections': 150,
'active_connections': 3,
'bytes_transferred': 1048576,
'uptime_seconds': 3600,
'bytes_per_second': 291.27
}
--proxy-port
: Port the proxy will listen on (default: 11434)--target-host
: Target host to forward traffic to (default: 192.168.1.100)--target-port
: Target port to forward traffic to (default: 11434)--log-file
: Path to the log file--log-data
: Enable logging of data content--log-level
: Set logging level (DEBUG, INFO, WARNING, ERROR, CRITICAL)--enable-udp
: Enable UDP proxy alongside TCP--full-debug
: Enable full data logging (entire payload)Apache-2.0 License. See the LICENSE file for details.
FAQs
High-performance, transparent HTTP/HTTPS proxy that supports both TCP and UDP protocols while being fully configurable and privacy-focused
We found that oproxy demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.
Security News
CISOs are racing to adopt AI for cybersecurity, but hurdles in budgets and governance may leave some falling behind in the fight against cyber threats.
Research
Security News
Socket researchers uncovered a backdoored typosquat of BoltDB in the Go ecosystem, exploiting Go Module Proxy caching to persist undetected for years.