Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

💡 Feature request: HTTP / SOCKS proxy support #339

Open
Sommerwiesel opened this issue Dec 1, 2024 · 4 comments
Open

💡 Feature request: HTTP / SOCKS proxy support #339

Sommerwiesel opened this issue Dec 1, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@Sommerwiesel
Copy link

Sommerwiesel commented Dec 1, 2024

Is your feature request related to a problem? Please describe

Mitigates against Reddit rate limiting or blocking the server IP.
Would love to have my redlib instance use a proxy for that reason.

Describe the feature you would like to be implemented

Native support for HTTP / SOCKS proxy in the redlib binary / docker image.

Describe alternatives you've considered

Setting docker / system proxy but redlib seems to ignore that as other have already reported here: #184

Additional context / screenshot

There is already a FR tor tunneling support (and socks support in the comments) here: #1

@Sommerwiesel Sommerwiesel added the enhancement New feature or request label Dec 1, 2024
@APT37
Copy link

APT37 commented Dec 15, 2024

Might be helpful: hyper_socks2 (less so hyper_socks).

@karimroshan
Copy link

temporary workaround, but if you set up a tun2socks proxy container and then use service networking, this works.

@Sommerwiesel
Copy link
Author

temporary workaround, but if you set up a tun2socks proxy container and then use service networking, this works.

Actually good idea, will try that out. Thanks for the info :)

@karimroshan
Copy link

karimroshan commented Dec 30, 2024

no problem! it took me a little while to puzzle through it.

here is the compose file in case you want it

services:
  proxy:
    image: ghcr.io/xjasonlyu/tun2socks:latest
    restart: unless-stopped
    env_file: ./config/proxy/.env
    cap_add:
      - NET_ADMIN
    devices:
      - /dev/net/tun:/dev/net/tun
    networks:
      - default
      - routing_warp
    sysctls:
      - net.ipv4.ip_forward=1
    healthcheck:
      test:
        - CMD
        - wget
        - --spider
        - -q
        - --tries=1
        - https://ifconfig.me
      timeout: 3s

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants