public inbox for gwml@vger.gnuweeb.org
 help / color / mirror / Atom feed
From: Ammar Faizi <ammarfaizi2@gnuweeb.org>
To: Alviro Iskandar Setiawan <alviro.iskandar@gnuweeb.org>
Cc: Ahmad Gani <reyuki@gnuweeb.org>,
	GNU/Weeb Mailing List <gwml@vger.gnuweeb.org>
Subject: Re: [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy
Date: Thu, 2 Oct 2025 14:05:02 +0700	[thread overview]
Message-ID: <20251002070502.GA18177-ammarfaizi2@gnuweeb.org> (raw)
In-Reply-To: <20250930085428.717195-1-alviro.iskandar@gnuweeb.org>

On Tue, Sep 30, 2025 at 03:54:20PM +0700, Alviro Iskandar Setiawan wrote:
> How to test this feature:
> 	./configure --cc=clang --use-new-dns-resolver;
> 	make -j$(nproc);
> 	./gwproxy --as-socks5=1 --raw-dns=1 --nr-workers=1 --log-level=4 --bind=[::]:1080 --dns-server=1.1.1.1:53;
> 
> Then in another terminal, you can use curl to test it:
> 	curl --proxy socks5h://[::1]:1080 http://example.com;

Something is wrong with the DNS resolver when the host is IPv6 only.

See the test result below. The first command passes the DNS resolution
to the socks5 proxy using "socks5h" protocol. The second command
doesn't pass the DNS resolution to the proxy ("socks5" protocol).

It fails to connect when "socks5h" protocol is used.

ammarfaizi2@integral2:~/p/gwproxy$ curl --proxy socks5h://[::1]:1080 http://ipv6.google.com -I
curl: (97) Can't complete SOCKS5 connection to ipv6.google.com. (1)
ammarfaizi2@integral2:~/p/gwproxy$ curl --proxy socks5://[::1]:1080 http://ipv6.google.com -I
HTTP/1.1 200 OK
Content-Type: text/html; charset=ISO-8859-1
Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-R7kFvjRoN0JGjOEIlvYR6w' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp
P3P: CP="This is not a P3P policy! See g.co/p3phelp for more info."
Date: Thu, 02 Oct 2025 07:00:52 GMT
Server: gws
X-XSS-Protection: 0
X-Frame-Options: SAMEORIGIN
Transfer-Encoding: chunked
Expires: Thu, 02 Oct 2025 07:00:52 GMT
Cache-Control: private
Set-Cookie: AEC=AaJma5teFbD1EKZ-IdFFaFxb12EGStsW29TNoc6UTvdnTF_lvsrJ-uO5Pnw; expires=Tue, 31-Mar-2026 07:00:52 GMT; path=/; domain=.google.com; Secure; HttpOnly; SameSite=lax
Set-Cookie: NID=525=kMxrGPvttMHU7RVD-aHf_zoDqInsQVb8IB0czwUdjrFGI8oy7dq9FOQlC1PyM88ERuAZpzCP7HG9YCCZVhMahRyjq03p6763EfLWm8CezRxWqCUK-x0pAmjE1_TZOvVbOGSATxFJcwwr40_84bnoVcMbsh8juhzFmWHi7I6mWwnhd76VxT19lDRimvAJnsOcAHEeTwSHx8H7O9E; expires=Fri, 03-Apr-2026 07:00:52 GMT; path=/; domain=.google.com; HttpOnly


-- 
Ammar Faizi


  parent reply	other threads:[~2025-10-02  7:05 UTC|newest]

Thread overview: 15+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-09-30  8:54 [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 1/8] gwproxy: Remove 'struct gwp_dns_query' declaration Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 2/8] gwproxy: Introduce __unused macro Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 3/8] Add DNS parser code Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 4/8] Add DNS resolver code Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 5/8] dns_resolver: Add DNS resolution interface APIs Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 6/8] gwproxy: Introduce --dns-server and --raw-dns Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 7/8] epoll: Intregrate the raw DNS feature to epoll Alviro Iskandar Setiawan
2025-09-30  8:54 ` [PATCH gwproxy v13 8/8] Makefile: Introduce --use-new-dns-resolver configure option Alviro Iskandar Setiawan
2025-10-02  7:05 ` Ammar Faizi [this message]
2025-10-02  7:20   ` [PATCH gwproxy v13 0/8] Initial work on integration of DNS parser lib in gwproxy Alviro Iskandar Setiawan
2025-10-02  8:07     ` Ammar Faizi
2025-10-02  8:19       ` Alviro Iskandar Setiawan
2025-10-26 21:10         ` Ammar Faizi
2025-10-29 16:33           ` Alviro Iskandar Setiawan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20251002070502.GA18177-ammarfaizi2@gnuweeb.org \
    --to=ammarfaizi2@gnuweeb.org \
    --cc=alviro.iskandar@gnuweeb.org \
    --cc=gwml@vger.gnuweeb.org \
    --cc=reyuki@gnuweeb.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox