Comments (6)
in case you talk about the auth-once mode, you could implement this functionality easily with a tiny shell script wrapper:
/bin/microsocks-authed
#!/bin/sh
MICROSOCKS=microsocks
user=foo
pass=bar
ip=127.0.0.1
port=1081
auth_once_delayed() {
sleep 1
curl --socks5 ${user}:${pass}@${ip}:${port} http://ifconfig.me
}
auth_once_delayed &
exec $MICROSOCKS -1 -i $ip -p $port -u "$user" -P "$pass"
if you don't want to hardcode user, pass, etc you could add a small getopt loop that parses same parameter as microsocks
from microsocks.
The problem is that I can't run shell scripts on the device. I worked it around by adding
@@ -416,6 +423,9 @@ int main(int argc, char** argv) {
return usage();
}
}
+ union sockaddr_union whitelist_addr = {.v4.sin_family = AF_UNSPEC};
+ resolve_sa("MY_IP", 0, &whitelist_addr);
+ add_auth_ip(&whitelist_addr);
if((auth_user && !auth_pass) || (!auth_user && auth_pass)) {
dprintf(2, "error: user and pass must be used together\n");
return 1;
from microsocks.
nice work. the code of microsocks is deliberately kept simple and readable so users can easily change it to suit their specific usecase.
from microsocks.
I think that it's a useful feature that could be used by other users
from microsocks.
maybe. if i get more requests for it in the future i'll consider implementing it. time will tell whether there's a real demand.
from microsocks.
I see this got added... I am assuming use it like this:
microsocks -1 -i 0.0.0.0 -p 1080 -w 192.168.1.40 -u user -P password
assuming that is correct, can you specify more than one ip for the whitelist parameter?
Thank you for this software!
EDIT: I assumed wrong, I must not be using the -w feature correctly
from microsocks.
Related Issues (20)
- Use custom DNS HOT 20
- Can't connect to `0.0.0.0` on client HOT 4
- Connect to server running on the same machine HOT 17
- microsocks-1.0.2-x86_64-static may contain security issues HOT 1
- EC_TTL_EXPIRED error is sent down idle connection, and treated as application-layer traffic by client
- microsocks: not found HOT 1
- Configuration of the Proxy HOT 1
- Blocking some IPs HOT 1
- Any plans to support UDP? HOT 2
- Allow passthrough of TCP/ip headers HOT 1
- a little Suggest. Change release url to https HOT 1
- Any chance of a new release with -q flag added? HOT 2
- Disconnect logging
- Using 443 Port HOT 1
- buffer overflow detected HOT 6
- Bandwidth testing tools HOT 5
- add systemd service file HOT 3
- Trying IPv6 sockets w/ IPv6 being available but down, leads to connection failures HOT 2
- segmentation fault on alpine & docker HOT 6
- Why I keep seeing the help instructions? HOT 1
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 microsocks.