slmgr /ipk your_license_keyReplace your_license_key with following volumn license keys according to Windows Edition:
This tutorial will teach you how to set up a Telegram MTProxy on an Ubuntu 22.04 sever using AWS Lightsail, although you can use any other Linux distribution and cloud provider.
Using a Telegram proxy is a safe, easy and effective way of overcoming Telegram bans. It's useful, for example, to keep using Telegram under tyrannical regimes, or to circumvent judges' decisions to block Telegram.
Telegram proxies are a built-in feature in all Telegram apps (both mobile and desktop). It allows Telegram users to connect to a proxy in just one or two clicks / taps.
Telegram proxies are safe: Telegram sends messages using their own MTProto secure protocol, and the proxy can only see encrypted traffic – there's no way for a proxy to decrypt the traffic and read the messages. The proxy does not even know which Telegram users are using the proxy, all the proxy sees is just a list of IPs.
| ### 1: Drop invalid packets ### | |
| /sbin/iptables -t mangle -A PREROUTING -m conntrack --ctstate INVALID -j DROP | |
| ### 2: Drop TCP packets that are new and are not SYN ### | |
| /sbin/iptables -t mangle -A PREROUTING -p tcp ! --syn -m conntrack --ctstate NEW -j DROP | |
| ### 3: Drop SYN packets with suspicious MSS value ### | |
| /sbin/iptables -t mangle -A PREROUTING -p tcp -m conntrack --ctstate NEW -m tcpmss ! --mss 536:65535 -j DROP | |
| ### 4: Block packets with bogus TCP flags ### |
| ## Graphite Setup for CentOS | |
| #### 参考 | |
| * [Install graphite on a CentOS/RHEL server](http://www.linuxsysadmintutorials.com/install-graphite-on-a-centosrhel-server/) | |
| * [CentOSにRPMでGraphite+Diamondをインストールする](http://qiita.com/takakiku/items/4dbee4739801cb8f60a2) | |
| *** | |
| #### epel リポジトリの追加 |
$ cp /etc/redis.conf /etc/redis-xxx.conf...| #!/bin/sh | |
| # Script to compile nginx on ubuntu with lua support. | |
| NGX_VERSION='1.6.2' | |
| LUAJIT_VERSION='2.0.3' | |
| LUAJIT_MAJOR_VERSION='2.0' | |
| NGX_DEVEL_KIT_VERSION='0.2.19' | |
| LUA_NGINX_MODULE_VERSION='0.9.15' | |
| <?php | |
| header("Cache-Control: no-cache, must-revalidate"); //HTTP 1.1 | |
| $domains = array('devguppie.com', 'wwww.devguppie.com', 'www.example.com', 'example.com'); | |
| foreach ($domains as $domain) { | |
| $curl = curl_init("http://$domain/.*"); | |
| curl_setopt($curl, CURLOPT_CUSTOMREQUEST, "PURGE"); | |
| curl_exec($curl); | |
| curl_close($curl); | |
| } |
| #!/usr/bin/env python | |
| from __future__ import print_function | |
| import os | |
| import sys | |
| from collections import namedtuple | |
| CacheFile = namedtuple('CacheFile', ['path', 'key']) | |
| def read_cache_file(path): | |
| with open(path, 'r') as f: | |
| f.seek(0x28) # skip header | |
| key_magic = f.read(6) |