1.0.6 • Published 8 years ago

transproxy v1.0.6

Weekly downloads
1
License
MIT
Repository
github
Last release
8 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

8 years ago

1.0.5

8 years ago

1.0.4

8 years ago

1.0.3

8 years ago

1.0.2

8 years ago

1.0.1

8 years ago

1.0.0

8 years ago