Setting up a VPN proxy server

From Stormsail
Jump to navigation Jump to search

Setup Ubuntu Server 12.04

* http://www.vpnbook.com/
* apt-get install openvpn
* apt-get install squid
* apt-get install dkms
* DNS 8.8.8.8 and 8.8.4.4
* /etc/udev/rules.d/


squid

root@vpnserver:/etc/squid3# diff squid.conf.orig squid.conf
696a697
> acl home src 192.9.200.0/24
819a821
> http_access allow home
1137c1139
< http_port 3128
---
> http_port 8080

openvpn

root@vpnserver:/etc/openvpn# more vpnbook.conf 
client
dev tun1
proto tcp
tun-mtu 1500
tun-mtu-extra 32
remote 93.115.84.198 443 # - Your server IP and OpenVPN Port
dhcp-option DISABLE-NBT
resolv-retry infinite
nobind
persist-key
persist-tun
ca vpnbook.crt
auth-user-pass vpnbook.pass
comp-lzo
verb 3
cipher AES-128-CBC
fast-io

put username/pass into vpnbook.pass + chmod 600 download certification change /etc/default/openvpn => AUTOSTART="vpnbook"

http://ubuntuserverguide.com/2012/05/how-to-install-and-configure-proxy-server-with-squid3-on-ubuntu-server-12-04-lts.html