code:
# ☁ Project Fog version 3.01 ☁
#
## _Use this "only if" universal installer fails._
##

>For Debian 9 and Debian 10 versions:
```bash
wget https://github.com/korn-sudo/Project-Fog/raw/main/files/installer/debv301a && chmod +x ./debv301a && ./debv301a
```

##

>For Debian 11 and higher:
```bash
wget https://github.com/korn-sudo/Project-Fog/raw/main/files/installer/debv301b && chmod +x ./debv301b && ./debv301b
```

##

>For Ubuntu 18:
```bash
wget https://github.com/korn-sudo/Project-Fog/raw/main/files/installer/ubv301a && chmod +x ./ubv301a && ./ubv301a
```

##

>For Ubuntu 20 and higher:
```bash
wget https://github.com/korn-sudo/Project-Fog/raw/main/files/installer/ubv301b && chmod +x ./ubv301b && ./ubv301b
```


code:
# Guide

#### How to access V2Ray Panel:

 >http://123.123.123.123:54321
  Note: Change 123.123.123.123 to your VPS IP Address

#### V2ray Default User and Password
| Username | Password    |
| :-------- | :------- |
| `admin` | `admin` |

#### OCS Panel and OVPN Config

> http://123.123.123.123:85
 Note: Change 123.123.123.123 to your VPS IP Address

#### Activate OCS Panel Account Maker:
 Edit the index.php Put your root password in Line 45 of this directory:

 >/home/vps/public_html/index.php
 Go to Line 45.

#

## Important Notes:

>_Wait 30 seconds to 1 minute after a server reboot to load all tunneling software and to apply all IPTABLES rules_


code:
# Frequently Asked Questions

#
 1. OCS Panel not working or cannot access the site.
>_OCS panel will not work if you install Shadowsocks or cancel the installation. Shadowsocks and OCS do not work together.
>If you want the OCS Panel back, go to "menu > "13" "3". This will bring back the OCS Panel settings._

#
2. Cannot access V2ray Panel Settings.
>_If your concern is to change the default username and password, go to your VPS terminal, go to "menu" > "12" > "15"._

#
3. How to access Webmin?
>_your_ip_address:10000 | username: root | password: your-root-password_

#
4. After reboot, some services are not available.
>_Yes, Wait 30 seconds to 1 minute after a server reboot to load all tunneling software and to apply all IPTABLES rules._

#
5. Multilogin Restriction not working.
>_It will not work in v2ray, shadowsocks openvpn and IPSec._

#
6. Universal Installer does not work.
>_Install and choose the appropriate version for your vps already mentioned in the post._

#
7. How to determine if it can block torrents.
>_The torrent restriction can be circumvented, but basic iptables rules are enough to block for normal users.
>Make a simulation of it. Without doing anything. Just trying to access torrent sites, it blocked._
>Check your VPS IPtable rules:
```bash
iptables -L
```
#

8. I can't access my vps.
>_This happens if you forcefully attempt to login with a number of wrong passwords. It will then lock._
#

9. Why are you sharing this project with the public?
>_Because I find it annoying when people sell scripts. Simple as that._
#

10. I installed Project Fog correctly, but the services do not display or work?
> - _Please open all ports in order for Project Fog to work properly._
> - _Don't worry about the open port; it will only be open temporarily while the project fog is being installed. It will be automatically closed after installation._
> - To verify all open and closed port: Go to your vps terminal or command line then type: iptables -L or just go to your Webnin (ip:10000)
#

11. Will you always update your project?
>_No, After this version 3.01, I won't be able to update it since my virtual private server expired and I have a limited amount of time._


code:
# _Project Fog Services Use Case_

#### _Disclaimer: I am not an expert in configs making. it is only based on my experience and how I use it. Feel free to DM me if I have incorrect information. I will correct it._

#
| Services | Platform | Client Apps | Dependant to other Services | Config Setups | Possible to use a BugHost? |
| :---: | :---: | :---: | :---: | :---: | :---: |
| Shadowsocks | Windows and Mobile | Many software supporting this service. | - | Use plugin like v2ray, xray etc. |  ✔ |
| V2ray | Windows and Mobile | Many software supporting this service. | - | Recommended: vless |  ✔ |
| OpenVPN UDP | Windows and Mobile | OpenVPN | -  | - | - |
| OpenVPN TCP | Windows and Mobile | OpenVPN |  ✔ | Openvpn + Remote Proxy + Payload Setups |  ✔ |
| OpenSSH or Dropbear | Windows and Mobile | HTTP Injector, KPN and many more |  ✔ | SSH Direct, SSH + Remote Proxy + Payload Setups |  ✔ |
| Stunnel | Windows and Mobile | HTTP Injector, KPN and many more |  ✔ | SSL + SNI, SSL + SNI + Payload Setups  |  ✔ |
| L2TP / IPSec PSK | Mobile | Built-in VPN for Android and IOS |  ✔ | Mask IP to Bughost |  ✔ |

#
## _Remote Proxy_

#### Kinds of Remote Proxy
- Simple Remote Proxy
  - _A valid HTTP request is required to receive a status 200 response from the server_
- Direct Remote Proxy
  - _No need for a valid and correct http request. Allow all requests, even invalid ones and server automatically response Status 200._

## _Project Fog Services Remote Proxy Summary_
| Services | Method | Simple Remote Proxy | Direct Remote Proxy | Use Case |
| :---: | :---: | :---: | :---: |:---: |
| Squid | - | ✔ |  | Remote Proxy for SSH and OpenVPN |
| Privoxy | - | ✔ |  | Remote Proxy for SSH and OpenVPN |
| OHP | OHP over  Squid |  | ✔ | Remote Proxy for SSH|
| OHP | OHP over  Privoxy |  | ✔ | Remote Proxy for SSH |
| OHP | OHP over  OpenVPN |  | ✔ | Remote Proxy for Openvpn |
| Python Socks Proxy | Simple Socks Proxy | ✔| | Remote Proxy for SSH and OpenVPN |
| Python Socks Proxy | Direct Socks Proxy | | ✔ | Remote Proxy for SSH |
| Python Socks Proxy | OpenvPN Socks Proxy |  | ✔ | Remote Proxy for Openvpn |

#
## _Important Reminders_
#### Payload Setups
_Same with " HTTP Proxies" and it will require " Remote Proxies "_
#
#### Bughost
_Same with "Payload" and "SNI"_
#
#### Payload and Remote Proxy
_This is the key to the gate of free internet, which is why these two items are very important in all setups._

#


code:
# ☁Project Fog Services Definitions☁

_Disclaimer! This is not a complete use case for the services, it is only based on my experience and how I use it. Feel free to DM me if I have incorrect information. I will correct it._
#
#### OCS Panel
_A webaite where you can create user account, access Openvpn Monitoring, V2ray, Openvpn Config._
#
#### OpenSSH
_OpenSSH is the premier connectivity tool for remote login with the SSH protocol. Most stable SSH client/server for Termux._
#
#### Dropbear
Alternative for OpenSSH. Comparing to OpenSSH, for speed and security, Dropbear wins.
#
#### Cerbot
Create certificates needed for V2ray setups.
#
#### Webmin
_If you prefer to manage all aspects of your Linux VPS or dedicated server from a graphical interface instead of the command line interface (CLI), Webmin might be right for you._
#
#### BadVPN
_Used to "socksify" TCP (IPv4 and IPv6) connections at the network layer. It implements a TUN virtual network interface which accepts all incoming TCP connections (regardless of destination IP), and forwards them through a SOCKS server. This allows you to forward all connections through SOCKS, without any need for application support._
Commonly use in KPN Tunnel and SocksHTTP
#
#### Openvpn Monitoring
Monitor who is connected to your server using Openvpn and where that connection originated.
#
#### Openvpn TCP and UDP
_Commonly used to hide your IP and can be changed depending on your Openvpn server._
UDP is best and stable for me but TCP can use remote proxy while UDP cannot.
#
#### Squid , Privoxy, OHP, Python Socks Proxy
_Serve as Remote Proxy._
#
#### Shadowsocks
_A free and open-source encryption protocol project, widely used in China to circumvent Internet censorship.
#
#### V2ray
_V2ray or vmess protocol to be precise, is a sophisticated version of the famous Shadowsocks. At the core v2ray is also based on SOCKS5 proxy._
#
#### Stunnel
_Aproxy designed to add TLS encryption functionality to existing clients and servers without any changes in the programs' code. Commonly use in HTTP Injector, KPN tunnel, SocksHTTp and many more . ._
#
#### L2TP / IPSec PSK and IKE2
_Built-in VPN in android and IOS._
#


code:
# ~/.bashrc: executed by bash(1) for non-login shells.

# Note: PS1 and umask are already set in /etc/profile. You should not
# need this unless you want different defaults for root.
# PS1='${debian_chroot:+($debian_chroot)}\h:\w\$ '
# umask 022

# You may uncomment the following lines if you want `ls' to be colorized:
# export LS_OPTIONS='--color=auto'
# eval "`dircolors`"
# alias ls='ls $LS_OPTIONS'
# alias ll='ls $LS_OPTIONS -l'
# alias l='ls $LS_OPTIONS -lA'
#
# Some more alias to avoid making mistakes:
# alias rm='rm -i'
# alias cp='cp -i'
# alias mv='mv -i'

alias menu='sudo menu fog'


code:
#!/bin/bash
red='\e[1;31m'
green='\e[0;32m'
NC='\e[0m'
clear
source /etc/os-release
OS=$ID

# Memulai Update Kernel
echo "Start Updating Kernel"

# Ubuntu Version
if [[ $OS == 'ubuntu' ]]; then
wget https://raw.githubusercontent.com/pimlie/ubuntu-mainline-kernel.sh/master/ubuntu-mainline-kernel.sh
install ubuntu-mainline-kernel.sh /usr/local/bin/
rm -f ubuntu-mainline-kernel.sh
ubuntu-mainline-kernel.sh -c

# Checking Version
if [ $ver == $now ]; then
echo "Your Kernel Is The Latest Version"A
rm -f /usr/bin/ubuntu-mainline-kernel.sh
exit 0
else
printf "y" | ubuntu-mainline-kernel.sh -i
rm -f /usr/bin/ubuntu-mainline-kernel.sh
fi

# Debian Version
elif [[ $OS == "debian" ]]; then
ver=(`apt-cache search linux-image | grep "^linux-image" | cut -d'-' -f 3-4 |tail -n1`)
now=$(uname -r | cut -d "-" -f 1-2)

# Checking Kernel
if [ $ver == $now ]; then
echo "Your Kernel Is The Latest Version"
exit 0
else
apt install linux-image-$ver-amd64
fi

# Other OS Check
elif [[ $OS == "centos" ]]; then
    echo "Not Supported For Centos!"
    exit 1
elif [[ $OS == "fedora" ]]; then
    echo "Not Supported For Fedora"
    exit 1
else
    echo "Your OS Not Support"
    exit 1
fi

# Done
echo "Your VPS Will Be Reboot In 5s"
sleep 5
reboot

path: files/plugins/kernel-updt