Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
clash not working for system proxy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Unsupported Software
View previous topic :: View next topic  
Author Message
catzera
n00b
n00b


Joined: 22 Nov 2022
Posts: 21

PostPosted: Fri Nov 25, 2022 9:36 am    Post subject: clash not working for system proxy Reply with quote

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:
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:
# 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:
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:
http_proxy="http://127.0.0.1:7890"
https_proxy="https://127.0.0.1:7890"

Hope for your reply , thank you.
Back to top
View user's profile Send private message
alamahant
Advocate
Advocate


Joined: 23 Mar 2019
Posts: 3872

PostPosted: Fri Nov 25, 2022 11:53 pm    Post subject: Reply with quote

Try
Code:

nano ~/.bashrc -->

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


Or add
Code:

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


in /etc/environment
_________________
:)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Unsupported Software All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum