$ ssh -D 3281 <host>
$ http_proxy=http://localhost:3281 lynx ...
$ ssh -D 3281 <host>
$ http_proxy=http://localhost:3281 lynx ...
A SOCKS proxy isn't the same as an HTTP proxy - with the latter, you
just send HTTP requests to it, whereas SOCKS is a different protocol. If
you want Lynx to connect via a SOCKS proxy, you can say:
lynx -socks5_proxy localhost:3281 ...
So, it begins to look like the version (of lynx) I have on my local machine is either too old and wasn't compiled with SOCKS support. Looks like I may need to do a self-compile of lynx and see if that helps.
Is there any easy way to tell conclusively whether or not a given version
of lynx has SOCKS support?
ObEditorial: It would be strange for the distro managers to compile it without SOCKS support. I mean, like, why bother to save a few kb of disk space...? But, stranger things have happened...
[...]
So install the socks library and use that ./configure flag when
building your custom lynx.
Kenny McCormack <gazelle@shell.xmission.com> wrote:...
So, it begins to look like the version (of lynx) I have on my local machine >> is either too old and wasn't compiled with SOCKS support. Looks like I may >> need to do a self-compile of lynx and see if that helps.
Is there any easy way to tell conclusively whether or not a given version
of lynx has SOCKS support?
1998-06-25 (2.8.1dev.17)
* add configure option --with-socks5 (request by Brian Hauber
<bhauber@frenzy.com>) - TD
So install the socks library and use that ./configure flag when
building your custom lynx.
Is there any easy way to tell conclusively whether or not a given version
of lynx has SOCKS support?
~ $ ldd $(which lynx)[..]
Is there any easy way to tell conclusively whether or not a given version
of lynx has SOCKS support?
Support for -socks5_proxy was introduced in 2.9.0dev.5:
https://salsa.debian.org/lynx-team/lynx/-/commit/0ad88bf5208de408f5061ee3a3da67fad45e9235?page=2#9c1ac60ddb3bad1733b0954a5f7fd736df90a992
So in principle anything after that should work, unless someones gone
to the effort to take it back out again. What version do you have and
where did it come from?
Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
[...]
So install the socks library and use that ./configure flag when
building your custom lynx.
Finding that socks library could be the most difficult part.
On Fri, 10 Apr 2026 19:29:19 -0000 (UTC), Kalevi Kolttonen wrote:
Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
[...]
So install the socks library and use that ./configure flag when
building your custom lynx.
Finding that socks library could be the most difficult part.
Do you even need to build the app specially?
<https://packages.debian.org/trixie/tsocks> ><https://packages.debian.org/trixie/redsocks>
Richard Kettlewell <invalid@invalid.invalid> wrote:[...]
gazelle@shell.xmission.com (Kenny McCormack) writes:
Is there any easy way to tell conclusively whether or not a given version >>> of lynx has SOCKS support?
Support for -socks5_proxy was introduced in 2.9.0dev.5:
https://salsa.debian.org/lynx-team/lynx/-/commit/0ad88bf5208de408f5061ee3a3da67fad45e9235?page=2#9c1ac60ddb3bad1733b0954a5f7fd736df90a992
So in principle anything after that should work, unless someones gone
to the effort to take it back out again. What version do you have and >>where did it come from?
BTW, I'm still curious if there is a direct way to find out if your
(i.e., a particular binary) version of lynx has been socksified. I
suppose the answer is try the -socks5_proxy command line option and
see if you get an error message.
BTW2, I hope you are right that it is on-by-default if you have a recent enough version of the lynx source code to compile. It should not be an optional thing.
Finding that socks library could be the most difficult part.
Yes. That seems to be the hard part.
Look at the link above, theres no conditional compilation involved.
Finding that socks library could be the most difficult part.
Yes. That seems to be the hard part.
You don't need it.
[...] You donrCOt need [socks library]
Richard Kettlewell <invalid@invalid.invalid> wrote:
[...] You dont need [socks library]
That seems to be correct. On Fedora 43, I did:
dnf download --srpm lynx
and inspected lynx.spec. It has:
Richard Kettlewell <invalid@invalid.invalid> wrote:
...
Look at the link above, theres no conditional compilation involved.
Unfortunately, there is.
Finding that socks library could be the most difficult part.
Yes. That seems to be the hard part.
You don't need it.
I did quite a bit of messing around with this last night. Without the --with-socks[5] option to ./configure, it won't use socks.
I donrCOt know what yourCOre doing, but the current stable release
absolutely does not need any extra libraries for -socks5_proxy support.
This is clear enough from a glance at the code, but if you want a
complete worked example:
richard@tsais:~/junk/lynx2.9.2$ ./configure
[...]
richard@tsais:~/junk/lynx2.9.2$ grep socks config.log
configure:13021: checking if you want socks library
configure:13039: checking if you want socks5 library
cf_cv_use_libsocks='no'
cf_cv_use_libsocks5='no'
richard@tsais:~/junk/lynx2.9.2$ make
[...]
richard@tsais:~/junk/lynx2.9.2$ ./lynx -cfg /etc/lynx/lynx.cfg -dump -socks5_proxy localhost:1234 http://www.example.com/
unknown option name EXTERNAL in /etc/lynx/lynx.cfg
Example Domain
This domain is for use in documentation examples without needing
permission. Avoid use in operations.
[1]Learn more
References
1. https://iana.org/domains/example
I would expect the same outcome from anything from 2.9.0dev.5 onwards.
In article <10rdjhp$1rkrp$1@dont-email.me>,
Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
Richard Kettlewell <invalid@invalid.invalid> wrote:
[...] You dont need [socks library]
That seems to be correct. On Fedora 43, I did:
dnf download --srpm lynx
and inspected lynx.spec. It has:
I'm only concerned with the Debian (Ubuntu and others) ecosystem.
See my other post for the analysis of the situation in the 2 Debian based systems in which I am interested.
Note that it *is* compiled in (hence you can't check it with ldd [*]), but there still needs to be a socks[5].a file present at
configure/compile/build time.
I dont know what youre doing, but the current stable release
absolutely does not need any extra libraries for -socks5_proxy support.
This is clear enough from a glance at the code, but if you want a
complete worked example:
richard@tsais:~/junk/lynx2.9.2$ ./configure
[...]
richard@tsais:~/junk/lynx2.9.2$ grep socks config.log
configure:13021: checking if you want socks library
configure:13039: checking if you want socks5 library
cf_cv_use_libsocks='no'
cf_cv_use_libsocks5='no'
So, now I'd like to know how to compile it so that it supports https.
Any idea what *-dev library I have to install (in a Debian/Ubuntu-ish
system) to get that?
So, now I'd like to know how to compile it so that it supports https.
Any idea what *-dev library I have to install (in a Debian/Ubuntu-ish
system) to get that?
What is the target platform here? Not just Debian/Ubuntu-ish but the
name and version?
For Debian 0.93 the answer would be quite involved (and wont come from
me), for Debian stable it would be very simple: apt install lynx.
As you can see, no socks library is required for the build to succeed.
Richard Kettlewell <invalid@invalid.invalid> wrote:
What is the target platform here? Not just Debian/Ubuntu-ish but the
name and version?
I would rather not say. I have found that it pays to remain as
generic as possible in these forums, as otherwise, people get hung up
on the specifics. I realize this sometimes makes it difficult for the help-givers, but it is for the best.
As you can see, no socks library is required for the build to succeed.
Indeed - I build Lynx 2.9.2 without --enable-socks, and SOCKS works fine
for me.
You *can* build Lynx against libsocks (e.g. as provided by Dante: >https://www.inet.no/dante/), but you don't need to - if you look at >WWW/Library/Implementation/HTTCP.c, in the HTDoConnect function, there's >built-in SOCKS client code that's enabled even if SOCKS isn't defined.
Anyway, now the (next) problem is figuring out how to get HTTPS support compiled in.
On Fedora, you need openssl-devel. You need to find out what
it is called on your OS. According to chatGPT, it is:
libssl-devel
on Debian.
Kalevi Kolttonen <kalevi@kolttonen.fi> wrote:
On Fedora, you need openssl-devel. You need to find out what
it is called on your OS. According to chatGPT, it is:
libssl-devel
on Debian.
Sorry, my mistake, it is called:
libssl-dev
br,
KK
For anyone who is following along at home, the magic is:
1) apt install libncurses-dev libssl-dev
2) ./configure --with-ssl --prefix=$HOME/local/lynx-2.9
3) make
4) make install
| Sysop: | Amessyroom |
|---|---|
| Location: | Fayetteville, NC |
| Users: | 65 |
| Nodes: | 6 (0 / 6) |
| Uptime: | 10:00:16 |
| Calls: | 862 |
| Files: | 1,311 |
| D/L today: |
3 files (7,546K bytes) |
| Messages: | 265,184 |