Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
202 views
in Technique[技术] by (71.8m points)

ubuntu - Updating SOCKS proxy via apt.conf doesn't update Network Manager>>Proxy section

Os: Ubuntu 16.10

What I'm trying to do:

I've got external socks v5 server. I want to *send all local WEB traffic to socks server by doing this:

  1. ssh -D 1337 -f -C -q -N admin@socks_server_ip; #Connection no issues here

  2. ps aux | grep 1337 # I see PID related to this connection, no issues here as well

  3. Update /etc/apt/apt.conf as:

Acquire::socks::proxy "socks://user:pass@host:port/"; #No issues in updating apt.conf as well

Problem:

When I'm done succesfully editing apt.conf file, I should be able to see changes in Network >> Proxy section listing socks proxy details something like this: Network

BUT, even after updating apt.conf, I see this: enter image description here

And I can't access internet until or unless I manually set Network >> Proxy details. Anybody have any idea why this is happening?? Please suggest any solutions if possible. Thanks

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

Editing apt.conf changes the proxy just for the APT (package manager). If you want to set up the proxy system-wide, you really need to go to Network >> Proxy and set that manually.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...