nlzy / nsproxy Goto Github PK
View Code? Open in Web Editor NEWMake arbitrary applications to use a specified SOCKS / HTTP proxy
License: GNU General Public License v2.0
Make arbitrary applications to use a specified SOCKS / HTTP proxy
License: GNU General Public License v2.0
Currently, when proxied application makes a connection, it immediately succeeds as if port is always open. This works very differently from proxychains, which waits to establish connection with the remote. It is a subtle difference, but it breaks software that needs to check if port is truly open.
I am not familiar with LWIP and usage of namespaces - I couldn't identify area where connection is "accepted" locally.
Do you think it is even possible with the current architecture? And if yes, perhaps could point me to where to look at relevant pieces of the code, so I could try my hand at tweaking it?
Hello nlzy
I use nsproxy in a debian 10 and when I exec ./nsproxy -x xxx -x xxx ... , it shows :
nsproxy: create net_namespace failed: Operation not permitted
nsproxy: nsproxy can't run on this system.
The OS is debian 10
uname -r
4.19.0-25-amd64
Is there a dependency missing? Please help me, thanks
My OS is latest version of archlinux.
nsproxy is the latest too.
Error log:
[root@vm-archlinux tmp]# ./nsproxy_x86_64-linux-musl -s 172.16.200.254 -p 8789 curl -v www.google.com
open(): No such device
[root@vm-archlinux tmp]# ./nsproxy_x86_64-linux-musl -H -s 172.16.200.254 -p 8789 curl -v www.google.com
open(): No such device
[root@vm-archlinux tmp]# ll /dev/net
total 0
crw-rw-rw- 1 root root 10, 200 2024-07-10 04:59 tun
[root@vm-archlinux tmp]# cat /etc/os-release
NAME="Arch Linux"
PRETTY_NAME="Arch Linux"
ID=arch
BUILD_ID=rolling
ANSI_COLOR="38;2;23;147;209"
HOME_URL="https://archlinux.org/"
DOCUMENTATION_URL="https://wiki.archlinux.org/"
SUPPORT_URL="https://bbs.archlinux.org/"
BUG_REPORT_URL="https://gitlab.archlinux.org/groups/archlinux/-/issues"
PRIVACY_POLICY_URL="https://terms.archlinux.org/docs/privacy-policy/"
LOGO=archlinux-logo
Hello again :)
I am trying now UDP. I've setup ncat listening locally on UDP port 8012 and using socks5 proxy, that supports UDP. Proxychains works, but with nsproxy I see "Forwarding udp:192.168.56.1:8012" but nothing in ncat. I tried both master and dev branches. Any ideas?
➜ build git:(master) ✗ proxychains4 ncat -u 192.168.56.1 8012
[proxychains] config file found: /etc/proxychains4.conf
[proxychains] preloading /usr/lib/x86_64-linux-gnu/libproxychains.so.4
[proxychains] DLL init: proxychains-ng 4.16
send test
receive test
➜ build git:(master) ✗ ./nsproxy -s 127.0.0.1 -p 47135 -vvv ncat -u 192.168.56.1 8012
[nsproxy] Proxy Server: 127.0.0.1:47135, SOCKS
[nsproxy] DNS Redirection: Enabled, 1.1.1.1, TCP
[nsproxy] Verbose: Yes
send test
[nsproxy] Forwarding udp:192.168.56.1:8012
[nsproxy] --- socks 20 bytes. udp:192.168.56.1:8012
[nsproxy] Closed 192.168.56.1:8012
proxychains4.conf:
strict_chain
[ProxyList]
socks5 127.0.0.1 47135
how can I use socks5 username and password?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.