Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Unsupported Software
  • Search

clash not working for system proxy

This forum covers all Gentoo-related software not officially supported by Gentoo. Ebuilds/software posted here might harm the health and stability of your system(s), and are not supported by Gentoo developers. Bugs/errors caused by ebuilds from overlays.gentoo.org are covered by this forum, too.
Post Reply
Advanced search
2 posts • Page 1 of 1
Author
Message
catzera
n00b
n00b
Posts: 22
Joined: Tue Nov 22, 2022 12:15 pm

clash not working for system proxy

  • Quote

Post by catzera » Fri Nov 25, 2022 9:36 am

Hi ,I download clash-linux-amd64-v1.11.12 from https://github.com/Dreamacro/clash/releases today .
After the client started ,I can connect to the server through firefox with firefox proxy set (in browser settings), but when I tried to get connected with terminal it failed .
And I tried to set system proxy through kde settings, {http, https}_proxy in terminal, and in make.conf ,neither worked .
How can I fix it?
Here's some information

clash service

Code: Select all

pigsy@pigsy clash % sudo ./clash -d .
Password: 
Sorry, try again.
Password: 
INFO[0000] Start initial compatible provider Others     
INFO[0000] Start initial compatible provider Proxy      
INFO[0000] Start initial compatible provider Domestic   
INFO[0000] Start initial compatible provider AsianTV    
INFO[0000] Start initial compatible provider GlobalTV   
INFO[0000] HTTP proxy listening at: [::]:7890           
INFO[0000] SOCKS proxy listening at: [::]:7891          
INFO[0000] RESTful API listening at: [::]:9090          
INFO[0000] Redirect proxy listening at: [::]:7892 

config.yaml

Code: Select all

# HTTP proxy port
port: 7890

# SOCKS5 proxy port
socks-port: 7891

# Linux , macOS redir proxy port
redir-port: 7892

# 
allow-lan: true

# 
mode: rule

# 
# Clash  RESTful API
external-controller: '0.0.0.0:9090'
firefox proxy settings

Code: Select all

HTTP Proxy [127.0.0.1] Port [7890]
HTTPS Proxy[127.0.0.1] Port[7890]
SOCKS Host[127.0.0.1] Port[7891]
[  ]SOCKS v4  [X]SOCKS v5
Proxy settings in terminal and make.conf

Code: Select all

http_proxy="http://127.0.0.1:7890"
https_proxy="https://127.0.0.1:7890"
Hope for your reply , thank you.
Top
alamahant
Advocate
Advocate
Posts: 4032
Joined: Sat Mar 23, 2019 12:12 pm

  • Quote

Post by alamahant » Fri Nov 25, 2022 11:53 pm

Try

Code: Select all

nano ~/.bashrc -->

export http_proxy="http://127.0.0.1:7890"
export https_proxy="https://127.0.0.1:7890"

Or add

Code: Select all

http_proxy="http://127.0.0.1:7890"
https_proxy="https://127.0.0.1:7890"

in /etc/environment
:)
Top
Post Reply

2 posts • Page 1 of 1

Return to “Unsupported Software”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy