host kernel version: 3.16.36-1+deb8u2
target kernel version: 4.9-rc5
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>PayloadContent</key> | |
| <array> | |
| <dict> | |
| <key>IKEv2</key> | |
| <dict> | |
| <key>AuthName</key> |
| I use the first | |
| —– BEGIN LICENSE —– | |
| Michael Barnes | |
| Single User License | |
| EA7E-821385 | |
| 8A353C41 872A0D5C DF9B2950 AFF6F667 | |
| C458EA6D 8EA3C286 98D1D650 131A97AB | |
| AA919AEC EF20E143 B361B1E7 4C8B7F04 |
| # 你可以从该 URL 下载这个配置文件: http://surge.run/config-example/ios.conf | |
| # 用编辑器编辑后,再通过 iTunes, URL, AirDrop 或者 iCloud Drive 复制回 iOS 设备 | |
| # Version 2.0 | |
| [General] | |
| # 日志等级: warning, notify, info, verbose (默认值: notify) | |
| loglevel = notify | |
| # 跳过某个域名或者 IP 段,这些目标主机将不会由 Surge Proxy 处理。(在 macOS | |
| # 版本中,如果启用了 Set as System Proxy, 那么这些值会被写入到系统网络代理 | |
| # 设置中.) |
| #encoding=utf-8 | |
| import requests | |
| from bs4 import BeautifulSoup | |
| import re | |
| import sys | |
| import datetime | |
| uid="11111" #用户名 | |
| pwd="11111" #密码 |
| fakedn ".4tern.com" | |
| fakedn ".github.com" | |
| fakedn ".85.17.73.31" | |
| fakedn ".adorama.com" | |
| fakedn ".agnesb.fr" | |
| fakedn ".akiba-web.com" | |
| fakedn ".alien-ufos.com" | |
| fakedn ".altrec.com" | |
| fakedn ".asianspiss.com" | |
| fakedn ".athenaeizou.com" |
This setup is for remote users to connect into an office/home LAN using a VPN (ipsec). This is based on (but not the same as) the strongSwan documentation and this guide: https://raymii.org/s/tutorials/IPSEC_vpn_with_Ubuntu_16.04.html
I used strongSwan 5.5.1.
apt-get install -y strongswan strongswan-pki
| #!/bin/bash | |
| # | |
| # Digital Ocean Ubuntu 18.04 x64 Droplet with "Regular Intel" CPU. | |
| # Running: | |
| # git clone https://gist.github.com/54fc09734a3911e91eeeb43434f117df.git | |
| # cd 54fc09734a3911e91eeeb43434f117df/ | |
| # chmod +x make-chr.sh | |
| # ./make-chr.sh | |
| # | |
| # Once the reboot is done, login with root/CHANGEME and change the password! |
| from __future__ import print_function | |
| import requests | |
| import threading | |
| import sys | |
| def eprint(*args, **kwargs): | |
| print(*args, file=sys.stderr, **kwargs) |