{"id":17047063,"url":"https://github.com/chhsiao90/nitmproxy","last_synced_at":"2025-05-08T19:51:51.720Z","repository":{"id":18747031,"uuid":"84713071","full_name":"chhsiao90/nitmproxy","owner":"chhsiao90","description":"Proxy server based on netty","archived":false,"fork":false,"pushed_at":"2023-03-10T18:57:32.000Z","size":319,"stargazers_count":153,"open_issues_count":16,"forks_count":67,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-11-10T03:11:10.370Z","etag":null,"topics":["http","http-proxy","http2","netty","proxy","tls"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chhsiao90.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":"2017-03-12T09:02:49.000Z","updated_at":"2024-10-30T16:56:32.000Z","dependencies_parsed_at":"2024-10-27T12:50:36.705Z","dependency_job_id":"d3c536e2-d56a-4630-8417-a5fadb9d808b","html_url":"https://github.com/chhsiao90/nitmproxy","commit_stats":null,"previous_names":[],"tags_count":15,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chhsiao90%2Fnitmproxy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chhsiao90%2Fnitmproxy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chhsiao90%2Fnitmproxy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chhsiao90%2Fnitmproxy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chhsiao90","download_url":"https://codeload.github.com/chhsiao90/nitmproxy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224946546,"owners_count":17396621,"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":["http","http-proxy","http2","netty","proxy","tls"],"created_at":"2024-10-14T09:48:16.859Z","updated_at":"2024-11-18T01:05:23.552Z","avatar_url":"https://github.com/chhsiao90.png","language":"Java","readme":"[![Java CI](https://github.com/chhsiao90/nitmproxy/actions/workflows/ci.yml/badge.svg)](https://github.com/chhsiao90/nitmproxy/actions/workflows/ci.yml)\n\n# Netty in the Middle\n\nAn experimental proxy server based on [netty](https://github.com/netty/netty).\nThat want to show how fast the netty is, and how the API design of netty is pretty.\n\n## Start nitmproxy\n```\n\u003e ./nitmproxy.sh --help\nusage: nitmproxy [--cert \u003cCERTIFICATE\u003e] [--clientNoHttp2] [-h \u003cHOST\u003e] [-k]\n       [--key \u003cKEY\u003e] [-m \u003cMODE\u003e] [-p \u003cPORT\u003e] [--serverNoHttp2]\n    --cert \u003cCERTIFICATE\u003e   x509 certificate used by server(*.pem),\n                           default: server.pem\n -h,--host \u003cHOST\u003e          listening host, default: 127.0.0.1\n -k,--insecure             not verify on server certificate\n    --key \u003cKEY\u003e            key used by server(*.pem), default: key.pem\n -m,--mode \u003cMODE\u003e          proxy mode(HTTP, SOCKS, TRANSPARENT), default: HTTP\n -p,--port \u003cPORT\u003e          listening port, default: 8080\n```\n\n## Features\n\n### Support Proxy\n- HTTP Proxy\n- HTTP Proxy (Tunnel)\n- Socks Proxy\n- Transparent Proxy\n\n### Support Protocol\n- HTTP/1\n- HTTP/2\n- WebSocket\n- TLS\n\n### Support Functionality\n- Display network traffic\n- Modify network traffic\n\n## Development\n\n### Coding Style\n\nWe are using same coding style with netty, please follow the instructions from the [netty#Setting up development environment](https://netty.io/wiki/setting-up-development-environment.html) to setup.\n\n## FAQ\n\n### Android\n\nThe built-in [Conscrypt](https://github.com/google/conscrypt) in the Android is not compatible with [Netty](https://github.com/netty/netty). The easiest way to fix is to add Conscrypt manually.\n\n**Add conscrypt-android dependency**\n\nhttps://search.maven.org/artifact/org.conscrypt/conscrypt-android\n\n**Configure Conscrypt SSL provider**\n\n```java\nconfig.setSslProvider(Conscrypt.newProvider());\n```\n\n### For a transparent proxy, how do I port forward HTTP/HTTPS requests?\n\n### Linux\n```\nsysctl -w net.ipv4.ip_forward=1\nsysctl -w net.ipv6.conf.all.forwarding=1\nsysctl -w net.ipv4.conf.all.send_redirects=0\niptables -t nat -A OUTPUT -p tcp --dport 80 -j DNAT --to-destination \u003ctransparent proxy ip\u003e:\u003ctransparent proxy port\u003e\niptables -t nat -A OUTPUT -p tcp --dport 443 -j DNAT --to-destination \u003ctransparent proxy ip\u003e:\u003ctransparent proxy port\u003e\n```\nSee Linux documentation on how to persistent these changes across reboots.\n","funding_links":[],"categories":["网络编程"],"sub_categories":["Spring Cloud框架"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchhsiao90%2Fnitmproxy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchhsiao90%2Fnitmproxy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchhsiao90%2Fnitmproxy/lists"}