Comments (7)
https://curl.se/libcurl/c/CURLOPT_INTERFACE.html
from uacme.
If you are on Linux you could achieve this by running uacme as a dedicated user, FWMARKing packets based on the owner module and routing through the intended interface, something like
iptables -t mangle -A OUTPUT -m owner --uid-owner UID -j MARK --set-mark 2
ip rule add fwmark 2 table 3
ip route add default via xxx.xxx.xxx.xxx table 3
If you have reverse path validation enabled in your distribution, you'll need to disable it via sysctl
from uacme.
That seems like significantly more work and moving parts than what I assume is about a +5/-1 patch to set the relevant curl option from -I.
from uacme.
To be honest I think your use case is rather peculiar and I am very reluctant to embark on the slippery slope of feature bloat. Since it can be achieved by other means (as explained above, or alternatively by creating a virtual interface in a new network namespace and running uacme in it, check manpages of veth/nsenter), I'd rather not implement it.
from uacme.
I think it's wise of you to avoid feature bloat, and it's for this reason that I choose uacme. However, I don't feel that this qualifies. It would be a very small change: one getopt flag which calls one curl function. Features of more concern would be more along the lines of certbot's magic config editing nonsense. The suggested workaround is very hacky, platform-specific, and requires a lot more work and moving parts: the simplest solution to this problem is a simple patch for uacme. Moving parts are the worst thing an acme client could have; they are the easiest way to kill reliability for a mission-critical tool.
from uacme.
Another platform independent way. Run tinyproxy, which has Bind option for outgoing connections, on port 8888 then
env ALL_PROXY=localhost:8888 uacme ...
from uacme.
Running and managing an entirely separate daemon is also a complex and fragile "solution" to this problem, especially compared with what uacme could do to support it -- effectively a single setsockopt syscall with SO_BINDINTERFACE.
I understand that scope management is important and the fact that uacme thinks about it is the reason I'm here. But these workarounds are much, much worse than the patch would be: a more appropriate workaround if such a feature is not acceptable upstream would be to patch uacme downstream and run that.
from uacme.
Related Issues (20)
- Allow creating private keys and directory with g+rX HOT 1
- uacme.sh can generate invalid challenge due to echo -n HOT 1
- Incompatibility with Mac OS X Monterrey HOT 1
- Return code from --version should probably be 0 HOT 1
- 1.7.1 release tarball is missing configure script HOT 1
- Works only on POSIX filesystems: hardlink required HOT 1
- chain and fullchain.pem HOT 4
- Best way to ensure cert.pem is world readable? HOT 2
- Tests
- Debian package uses libcurl3-gnutls but OpenWrt use libcurl4 HOT 2
- Security issue in uacme.sh HOT 1
- Set CA bundle to verify ACME Server against HOT 1
- Feature support for ACME Renewal Information (ARI)
- Password files HOT 1
- How to find the account id of my letsencrypt account HOT 1
- run hooks parallel HOT 1
- Wrong exit code from ualpn in client mode
- ACME Auto Discovery / DNS CAA records HOT 1
- ZeroSSL keeps returning status:invalid for one out of two authorization request. Expects a retry? HOT 2
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 uacme.