Pacproxy 
@otahi 
2014-09-21 
Ruby Hiroba 2014
Self Introduction 
● @otahi 
– A network engineer 
– How long have I use Ruby as a language 
● About 1 year 
– Gems which I commit 
● Lbspec 
● Vagrant-proxyconf 
● rspec-dns
Problems on a corporate proxy 
● Difficulties to access to corporate servers 
● IT dep. cares only for browsers 
– proxy.pac 
● How about curl or gem... 
– We need to use 'no_proxy' for corporate servers
So “Pacproxy” 
● Gemfile 
– gem 'pacproxy' 
– gem 'therubyracer' 
● $ bundle exec pacproxy -P 
http://sample.org/proxy.pac -p 3128
Pacproxy 
Corporate 
Web Server 
Internet Web server 
Corporate 
proxy server 
Client
Pacproxy 
Corporate 
Web Server 
Internet Web server 
Corporate 
proxy server 
Client
Pacproxy 
Configured with proxy.pac, 
Pacproxy transfer requests 
for certain next hops 
(authentication is available)
https://github.com/otahi/pacproxy
日本語版
自己紹介 
● @otahi 
– ネットワークエンジニア 
– Ruby歴 
● 1年くらい 
– かかわっているgem(趣味で) 
● Lbspec 
● Vagrant-proxyconf 
● rspec-dns
困りごと for 会社 proxy 
● 社内サーバ 
● 情シスはブラウザへのみ対応 
– proxy.pac 
● curlとかgemとかは。。。 
– no_proxyとかで対応。。
そこでPacproxy 
● Gemfile 
– gem 'pacproxy' 
– gem 'therubyracer' 
● $ bundle exec pacproxy -P 
http://sample.org/proxy.pac -p 3128
pacproxy 
社内Web Server 
Internet Web server 
会社 
proxy server 
client
pacproxy 
社内Web Server 
Internet Web server 
会社 
proxy server 
client
Pacproxy 
会社のproxy.pacを食べさせてあげると 
いい感じに転送してくれる 
(authもたいおう)
https://github.com/otahi/pacproxy

pacproxy - Ruby hiroba 2014