Socket
Socket
Sign inDemoInstall

loxy

Package Overview
Dependencies
78
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    loxy

A very simple logging proxy


Version published
Weekly downloads
1
Maintainers
1
Install size
1.33 MB
Created
Weekly downloads
 

Readme

Source

loxy -- a logging proxy

Usage

npm i -g loxy
loxy --target http://localhost:8080 --listen 8081

This proxies, while logging request and response headers. I wrote this while debugging CloudFront and ELB header interactions.

Hijack mode

sudo loxy --hijack 80

loxy can hijack existing ports using iptables (linux specific). This isn't highly tested, beware of running on production machines!

Testing

Use docker-compose to test:

  1. docker-compose run --service-ports loxy
  2. Go to http://localhost:8082 and see nginx test page
  3. loxy --hijack 80
  4. Reload, see nginx test page and loxy outputs the request/response
  5. Press ^C to exit loxy
  6. Reload, see nginx test page still

FAQs

Last updated on 09 Oct 2017

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc