Skip to content

Instantly share code, notes, and snippets.

View losisli's full-sized avatar

Losisli losisli

  • SDC@ICBC
  • Shanghai, China
View GitHub Profile
@losisli
losisli / whitelist.pac
Created October 2, 2017 08:36
exclude google&youtube due to ipv6 direct connection
var wall_proxy = "SOCKS5 127.0.0.1:1086; SOCKS 127.0.0.1:1086;";
var nowall_proxy = "DIRECT;";
var direct = "DIRECT;";
var ip_proxy = "DIRECT;";
/*
* Copyright (C) 2014 breakwa11
* https://github.com/breakwa11/gfw_whitelist
*/

测试平台:DigitalOcean VPS ubuntu14.04 x64, strongswan5.2.2

运行以下命令请使用root权限

一:安装strongswan

由于ubuntu软件仓库中strongswan版本较低,因此从官网源码编译安装

apt-get install build-essential     #编译环境
aptitude install libgmp10 libgmp3-dev libssl-dev pkg-config libpcsclite-dev libpam0g-dev     #编译所需要的软件