Comments (2)
Fixed, please download @1.6.4 :) and let me know if it works!
from transparent-proxy.
Ok I setup a server to test this issue :)
root@vps73857815194:/home/proxyTest# uname -a
Linux vps73857815194 5.4.103-1-pve #1 SMP PVE 5.4.103-1 (Sun, 07 Mar 2021 15:55:09 +0100) x86_64 x86_64 x86_64 GNU/Linux
root@vps73857815194:/home/proxyTest# ifconfig
eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 5.230.70.118 netmask 255.255.255.0 broadcast 5.230.70.255
inet6 fe80::806e:5dff:febb:bdee prefixlen 64 scopeid 0x20<link>
ether 82:6e:5d:bb:bd:ee txqueuelen 1000 (Ethernet)
RX packets 2257060 bytes 688355452 (688.3 MB)
RX errors 0 dropped 239428 overruns 0 frame 0
TX packets 233 bytes 29200 (29.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
eth1: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 5.230.68.16 netmask 255.255.255.0 broadcast 5.230.68.255
inet6 fe80::f0b0:afff:fe01:7cc7 prefixlen 64 scopeid 0x20<link>
ether f2:b0:af:01:7c:c7 txqueuelen 1000 (Ethernet)
RX packets 2285902 bytes 842253206 (842.2 MB)
RX errors 0 dropped 239242 overruns 0 frame 0
TX packets 23065 bytes 2658019 (2.6 MB)
TX errors 0 dropped 1 overruns 0 carrier 0 collisions 0
lo: flags=73<UP,LOOPBACK,RUNNING> mtu 65536
inet 127.0.0.1 netmask 255.0.0.0
inet6 ::1 prefixlen 128 scopeid 0x10<host>
loop txqueuelen 1000 (Local Loopback)
RX packets 257 bytes 59283 (59.2 KB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 257 bytes 59283 (59.2 KB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
const ProxyServer = require('transparent-proxy');
const server = new ProxyServer({
verbose: true,
tcpOutgoingAddress: function (data, bridgedConnection) {
//return '5.230.70.118';
return '5.230.68.16';
},
});
server.listen(8080,'5.230.70.118',function () {console.log('TCP-Proxy-Server started!', server.address());});
node test.js
TCP-Proxy-Server started! { address: '5.230.70.118', family: 'IPv4', port: 8080 }
root@vps73857815194:/home/proxyTest# curl -x 5.230.70.118:8080 https://ifconfig.me/
5.230.68.16
Closed!
from transparent-proxy.
Related Issues (20)
- Connect to other proxy using credentials HOT 2
- Library broke https requests if I set upstream proxy with credentials HOT 8
- Make upstream function async again 😄😄😄 HOT 1
- Close Connections HOT 1
- How can i redirect my 4G client connection HOT 3
- async `injectData` against https does not work with multipart HOT 7
- Use http-parser-js for parseDataToObject HOT 6
- Enable discussions in this repository? HOT 1
- Responses w/o headers crash the proxy HOT 1
- Performance Issue between v1.12.0 & > v1.12.1 HOT 1
- Handling Transfer-Encoding: chunked in injectResponse HOT 5
- session.request.complete Transfer-Encoding: chunked gzip concatenated rawResponse gunzip issue HOT 20
- Add socks proxy support for upstream proxy option HOT 2
- `.getBridgedConnections()` fails to run HOT 2
- Wrong `_response.complete` definition HOT 1
- Allow proxy to verify upstreamHost SSL HOT 5
- Support HTTP range requests HOT 2
- isValidASCII appears to break websocket connections HOT 1
- https does not work for me HOT 1
- How to decrypt a GZIP response? HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from transparent-proxy.