显示标签为“OpenVPN”的博文。显示所有博文
显示标签为“OpenVPN”的博文。显示所有博文

2011年12月8日星期四

OpenVPN configuration files

server (Ubuntu Server).
local 10.xx.xx.xx
port PORT_NUMBER
proto udp
dev tun
ca /YOUR_CA_DIR/ca.crt
cert /YOUR_CA_DIR/key-server.crt
key /YOUR_CA_DIR/key-server.key
dh /YOUR_CA_DIR/dh1024.pem
cipher AES-128-CBC # AES is faster than BF
max-routes 3000
ifconfig-pool-persist ipp.txt
server 10.168.1.0 255.255.255.0
push "redirect-gateway"
push "dhcp-option DNS 208.67.220.220" # OpenDNS.
push "dhcp-option DNS 208.67.222.222"
client-to-client
duplicate-cn
keepalive 10 60
comp-lzo
max-clients 10
persist-key
persist-tun
status openvpn-status.log
log-append openvpn.log
verb 3
mute 20



Client (MAC OS X)
remote SERVER_IP SERVER_PORT udp
persist-key
tls-client
pull
ca ca.crt
redirect-gateway def1
dev tun
persist-tun
cert cert.crt
comp-lzo no
nobind
key key.key
remote-cert-tls server
script-security 2
cipher AES-128-CBC

2011年11月11日星期五

使用Amazon Web Service搭建自己的openVPN代理(未完成)

  • 申请一个Amazon Web Service帐号
     amazon的web service(http://aws.amazon.com/)目前的政策是一年内有一定的免费使用额度,按照提示一步步操作的即可。

注意事项:
  1. 注册中需要提供信用卡信息。Amazon会从卡上扣一美元,再即时退回,以验证信用卡。所以你会收到消费提示,但实际账单上并不会有支出。
  2. 注册中要提供可直接联系到你的电话或手机信息,国家代码+86最好一并写上。Amazon会即刻电话通知你验证码,需要填写到申请表格中。
  • 在AWS上面建立Linux服务器
在AWS上登录后,进入EC2 tab项,启动一个新的instance,选择ubuntu-server,32或64位均可,
  • 安装openvpn并配置
  • 在客户端建立vpn连接