Ubuntu 23.04 プロキシクライアントの設定方法

環境
Ubuntu 23.04

概要
Proxy サーバーに接続するための、プロキシクライアントの設定です

操作方法
1.Ubuntu クライアントの場合は、プロキシ設定をします。
プロキシサーバーを環境変数に設定します
# vi /etc/profile.d/proxy.sh

Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
CFT_PROXY_URL="prox.arkgame:3128"
HTTP_PROXY=$CFT_PROXY_URL
HTTPS_PROXY=$CFT_PROXY_URL
FTP_PROXY=$CFT_PROXY_URL
http_proxy=$CFT_PROXY_URL
https_proxy=$CFT_PROXY_URL
ftp_proxy=$CFT_PROXY_URL
export HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy
CFT_PROXY_URL="prox.arkgame:3128" HTTP_PROXY=$CFT_PROXY_URL HTTPS_PROXY=$CFT_PROXY_URL FTP_PROXY=$CFT_PROXY_URL http_proxy=$CFT_PROXY_URL https_proxy=$CFT_PROXY_URL ftp_proxy=$CFT_PROXY_URL export HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy
CFT_PROXY_URL="prox.arkgame:3128"

HTTP_PROXY=$CFT_PROXY_URL
HTTPS_PROXY=$CFT_PROXY_URL
FTP_PROXY=$CFT_PROXY_URL
http_proxy=$CFT_PROXY_URL
https_proxy=$CFT_PROXY_URL
ftp_proxy=$CFT_PROXY_URL

export HTTP_PROXY HTTPS_PROXY FTP_PROXY http_proxy https_proxy ftp_proxy

2.設定内容を反映します
# source /etc/profile.d/proxy.sh

Ubuntu 23.04

Posted by arkgame