This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proxyAddress = "127.0.0.1" | |
proxyPort = 8118 | |
allowedClients = 127.0.0.1 | |
allowedPorts = 1-65535 | |
proxyName = "localhost" | |
cacheIsShared = false | |
socksParentProxy = "localhost:9050" | |
socksProxyType = socks5 | |
chunkHighMark = 67108864 | |
dnsUseGethostbyname = yes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
proto tcp-server | |
dev tun1 | |
ca /path/to/ca.crt | |
cert /path/to/vpn.crt | |
key /path/to/vpn.key | |
tls-auth /path/to/ta.key 1 | |
dh /path/to/dhparam.pem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local M = {} | |
----- | |
local nix_uuid, tmp1, dec_random_seed | |
nix_uuid = io.open("/proc/sys/kernel/random/uuid"):read() -- Read uuid from proc | |
io.close() | |
tmp1 = nix_uuid:gsub('%W','') -- Remove hyphens | |
tmp1 = tmp1:sub(1, 9) -- Chop-off extra numbers | |
dec_random_seed = tonumber(tmp1, 16) -- Convert to decimal base | |
math.randomseed( os.time() + dec_random_seed ) -- Add to current time and seed the randomizer | |
math.random() |