mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2026-04-25 13:26:00 +03:00
[GH-ISSUE #1861] Support setting CURLOPT_PROXY via fstab #947
Labels
No labels
bug
bug
dataloss
duplicate
enhancement
feature request
help wanted
invalid
need info
performance
pull-request
question
question
testing
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/s3fs-fuse#947
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @nodakai on GitHub (Jan 14, 2022).
Original GitHub issue: https://github.com/s3fs-fuse/s3fs-fuse/issues/1861
Additional Information
Version of s3fs being used (s3fs --version)
Version of fuse being used (pkg-config --modversion fuse, rpm -qi fuse, dpkg -s fuse)
Kernel information (uname -r)
GNU/Linux Distribution, if applicable (cat /etc/os-release)
s3fs command line used, if applicable
This works fine. However,
/etc/fstab entry, if applicable
there doesn't seem to be any ways to configure s3fs to use proxies via fstab
s3fs syslog messages (grep s3fs /var/log/syslog, journalctl | grep s3fs, or s3fs outputs)
Details about issue
Related: #400
We need something like
... _netdev,proxy=socks5h://myproxy:1080 0 0@nodakai commented on GitHub (Aug 25, 2022):
I found a quick workaround, I created a wrapper script as
/bin/mys3fswhich looks likeand registered it to
fstabe.g.mybucket /mnt/s3fs fuse.mys3fs _netdev,...I'm no expert of FUSE but it seems to run an executable
foobarin$PATHfor a fstab entry whose type isfuse.foobarhttps://github.com/libfuse/libfuse/blob/master/util/mount.fuse.c#L291Keeping this ticket open because native support is much more desirable than a hack like this.
@ggtakec commented on GitHub (Aug 27, 2022):
I tried it, and it seems that s3fs behavior changes with the ALL_PROXY variable.
In other words, libcurl seems to work correctly with the ALL_PROXY variable.
(The command line raised in this issue seems to work just fine.)
@ggtakec commented on GitHub (Feb 8, 2023):
PR #2075 implemented command line options for proxy.
It can be used as an alternative to setting proxy by environment variable.
I will close this issue, but if you have a problem yet, please reopen or post new issue.