Skip to content

Not sure if my transparent proxy idea is possible #439

@FingerlessGlov3s

Description

@FingerlessGlov3s

I want to run glider in container via macvlan that'll listen on port 80 and 443. Then I'll have my main dns server set to resolve a domain such as example.com to the Containers MACVLAN IP. Then a browser will try connect to the container as if it was the web server, and then have glider do the actual IP lookup of example.com, and then proxy that request to the origin server.

So it's kind of like the transparent proxy server using redir. I've tried using http, but that doesn't work and I get various odd errors, as I assume you can't use the http:// protocol in what I'm trying to achieve.

Effectively I'd like to do domain level proxy steering at the DNS level rather than using a WPAD file. Without having to do the iptables redir.

Thoughts?

glider  | 2025/09/29 23:18:25 server.go:30: [http] listening TCP on :80
glider  | 2025/09/29 23:18:25 server.go:30: [http] listening TCP on :443
glider  | 2025/09/29 23:18:28 request.go:54: [http] read header error:malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:28 server.go:54: [http] can not parse request from 192.168.2.102:64459, error: malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:28 request.go:54: [http] read header error:malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:28 server.go:54: [http] can not parse request from 192.168.2.102:64460, error: malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:28 request.go:71: [http] parse request url error: parse "\x12\xa9]\x9d6gT": net/url: invalid control character in URL, uri: �]�6gT
glider  | 2025/09/29 23:18:28 server.go:54: [http] can not parse request from 192.168.2.102:64461, error: parse "\x12\xa9]\x9d6gT": net/url: invalid control character in URL
glider  | 2025/09/29 23:18:28 request.go:71: [http] parse request url error: parse "\v\xc6\x1c\x12\x1f0\xf7\xa90\x05T<yn\xa80D\tF\x88\x16\xbf2[A\x81\x98\xf7d\xbd1\xa1\x00": net/url: invalid control character in URL, uri:
                                                                                                                                                                                                                             �0��0T<yn�0D       F��2[A���d�1�
glider  | 2025/09/29 23:18:28 server.go:54: [http] can not parse request from 192.168.2.102:64462, error: parse "\v\xc6\x1c\x12\x1f0\xf7\xa90\x05T<yn\xa80D\tF\x88\x16\xbf2[A\x81\x98\xf7d\xbd1\xa1\x00": net/url: invalid control character in URL
x�\�X�&:t���l���J�F␦G��x�<529 re�G�҇V1�����$dQ�h@f�WcnY�Qކ@C�3�E�&b'��G�_�u�is�QN����k�$�ţ0 ����3��YY�6�6t��3���k
x�\�X�&:t���l���J�F␦G��x�<529 se�G�҇V1�����$dQ�h@f�WcnY�Qކ@C�3�E�&b'��G�_�u�is�QN����k�$�ţ0 ����3��YY�6�6t��3���kmed MIME header line: t��~+��
glider  | 2025/09/29 23:18:29 request.go:54: [http] read header error:malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:29 server.go:54: [http] can not parse request from 192.168.2.102:64466, error: malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:29 request.go:54: [http] read header error:malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:29 server.go:54: [http] can not parse request from 192.168.2.102:64467, error: malformed MIME header: missing colon: "\x00\f\x00"
glider  | 2025/09/29 23:18:29 request.go:54: [http] read header error:malformed MIME header: missing colon: "y\x10Ә5V\xb1\x00=I,%\xf2e.9\x8b\xc8\xe8\xaf&\x8b\av\x04\xa9\x13\x1aj9|+uY\v\x1e|\x14,I\x1d\x9f҅#\xa2\x1d"
glider  | 2025/09/29 23:18:29 server.go:54: [http] can not parse request from 192.168.2.102:64468, error: malformed MIME header: missing colon: "y\x10Ә5V\xb1\x00=I,%\xf2e.9\x8b\xc8\xe8\xaf&\x8b\av\x04\xa9\x13\x1aj9|+uY\v\x1e|\x14,I\x1d\x9f҅#\xa2\x1d"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions