Skip to content

Instantly share code, notes, and snippets.

@hiddify-com
hiddify-com / test.json
Last active August 25, 2023 11:04
test
{
"outbounds": [
{
"type": "socks",
"tag": "Select",
"server": "127.0.0.1",
"server_port": 2000,
"version": "5",
"udp_over_tcp": true,
"network": "tcp",
read -p 'Enter your main server IP like(1.1.1.1): ' IP
echo "The main server IP is $IP"
sudo apt install iptables iptables-persistent
sudo sysctl net.ipv4.ip_forward=1
sudo iptables -t nat -A POSTROUTING -p tcp --match multiport --dports 80,443 -j MASQUERADE
sudo iptables -t nat -A PREROUTING -p tcp --match multiport --dports 80,443 -j DNAT --to-destination $IP
sudo iptables -t nat -A POSTROUTING -p udp -j MASQUERADE
sudo iptables -t nat -A PREROUTING -p udp -j DNAT --to-destination $IP
sudo mkdir -p /etc/iptables/
@hiddify-com
hiddify-com / install_mtproxy.sh
Last active February 2, 2023 23:28
Easy install high performance telegram proxy
#!/bin/bash
# Automatic interactive installer for mtproto proxy https://github.com/seriyps/mtproto_proxy
# Supported OS:
# - Ubuntu 18.xx
# - Ubuntu 19.xx
# - Ubuntu 20.xx
# - Ubuntu 21.xx
# - Ubuntu 22.xx
# - Debian 10 buster
# - Debian 9 stretch