LoginSignup
11
17

More than 5 years have passed since last update.

いろいろProxy設定メモ

Posted at

Proxyありの環境で必要になった各種設定のメモ

cygwin

setup時のダイアログで選択または入力

apt-cyg

wgetの設定でOK

wget

下記設定ファイルに例を参考にして追記

/etc/wgetrc
# You can set the default proxies for Wget to use for http, https, and ftp.
# They will override the value in the environment.
#https_proxy = http://proxy.yoyodyne.com:18023/
#http_proxy = http://proxy.yoyodyne.com:18023/
#ftp_proxy = http://proxy.yoyodyne.com:18023/

http_proxy = http://proxy.xxx.yyy.zzz.jp:8080/
https_proxy = http://proxy.xxx.yyy.zzz.jp:8080/
ftp_proxy = http://proxy.xxx.yyy.zzz.jp:8080/

svn

下記設定ファイルに例を参考にして追記

~/.subversion/servers
[global]
# http-proxy-exceptions = *.exception.com, www.internal-site.org
# http-proxy-host = defaultproxy.whatever.com
# http-proxy-port = 7000
# http-proxy-username = defaultusername
# http-proxy-password = defaultpassword
# http-compression = no
# No http-timeout, so just use the builtin default.
# No neon-debug-mask, so neon debugging is disabled.
# ssl-authority-files = /path/to/CAcert.pem;/path/to/CAcert2.pem
#
# Password / passphrase caching parameters:
# store-passwords = no
# store-ssl-client-cert-pp = no
# store-plaintext-passwords = no
# store-ssl-client-cert-pp-plaintext = no

http-proxy-host = proxy.xxx.yyy.zzz.jp
http-proxy-port = 8080

ssh

下記設定ファイルで管理するのがラクらしい
(すべての接続にプロキシを使用してローカル接続では使用しない例)

~/.ssh/config
Host *
  ProxyCommand /usr/local/bin/connect -H proxy.xxx.yyy.zzz.jp:8080 %h %p

Host localhost 127.0.0.1
  ProxyCommand none
メモ
connect - ソケットの接続を行う
usage: /usr/local/bin/connect [-dnhst45] [-p local-port][-R resolve] [-w timeout]
          [-H proxy-server[:port]] [-S [user@]socks-server[:port]]
          [-T proxy-server[:port]]
          [-c telnet-proxy-command]
          host port

git

下記設定ファイルに例を参考にして追記、またはコマンドから設定

~/.gitconfig
[http]
    proxy=proxy.xxx.yyy.zzz.jp:8080
[https]
    proxy=proxy.xxx.yyy.zzz.jp:8080

eclipse

『Preferences > Gernal > Network Connectios』に設定する場所があるので適宜追加

11
17
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
11
17