1.0.6 • Published 4 years ago

transproxy v1.0.6

Weekly downloads
23
License
MIT
Repository
github
Last release
4 years ago

transproxy

TCP transparent proxy

NPM

install

npm i -g transproxy

launch

listen on specified port

transproxy '{"listen":14514}'

allow only http(s)

transproxy '{"allowPorts":[80,443]}'

allow specific server

transproxy '{"allowAddress":["8.8.8.8"]}'

routing

iptables -t nat -F
iptables -t nat -A PREROUTING -i eth0 -p tcp -j REDIRECT --to-port 14514

as a service

[Unit]
Description=TCP transparent proxy
After=syslog.target network.target

[Service]
Type=simple
Restart=always
ExecStart=/usr/bin/transproxy '{"listen":14514,"allowPorts":[80,443]}'

[Install]
WantedBy=multi-user.target
1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago