리눅스에서 프록시 설정.

gui network 옵션과 이 env 둘다 확인해봐야한다.

 

$ export http_proxy="http://PROXY_SERVER:PORT"
$ export https_proxy="https://
PROXY_SERVER:PORT"
$ export ftp_proxy="http://
PROXY_SERVER:PORT"
$ export http_proxy="http://USER:PASSWORD@PROXY_SERVER:PORT"
$ export https_proxy="https://
USER:PASSWORD@PROXY_SERVER:PORT"
$ export ftp_proxy="http://
USER:PASSWORD@PROXY_SERVER:PORT"

Special Characters: If your password contains special characters, you must replace them with ASCII codes, for example the at sign @ must be replaced by the %40 code, e.g. p@ssword = p%40ssword.

 

Check the current proxy server settings:

$ env | grep -i proxy

 

Check your public IP address from the Linux command-line:

$ wget -q -O - checkip.dyndns.org \ | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

 

Compare the difference in the response time with the configured proxy and without it:

$ time wget -q -O - checkip.dyndns.org \ | sed -e 's/.*Current IP Address: //' -e 's/<.*$//'

 

Check the Internet download speed through the proxy:

$ wget --output-document=\ /dev/null http://speedtest.wdc01.softlayer.com/downloads/test500.zip

Unset Linux Proxy Variables

Use the following commands to disable proxy:

 

 

 

$ unset http_proxy
$ unset https_proxy
$ unset ftp_proxy

 

fluent

$ export {http,https,ftp}_proxy="http://PROXY_SERVER:PORT"

$ unset {http,https,ftp}_proxy

'program > linux-common' 카테고리의 다른 글

rlogin  (0) 2021.05.12
리눅스 환경 변수 설정  (0) 2021.03.27
linux 패키지 관리 프로그램 snap apt  (0) 2021.03.26
ubuntu 에서 github-desktop 설치하기  (0) 2021.03.26
리눅스 디렉토리 구조  (0) 2021.03.26

+ Recent posts