// Require Composer Autoload require_once __DIR__ . '/../vendor/autoload.php'; use Mosa\Web\App; // Include error handler (legacy support or refactor later) require_once __DIR__ . '/../includes/config/error_handler.php'; // Add parent directory to include path for legacy includes set_include_path(get_include_path() . PATH_SEPARATOR . __DIR__ . '/..'); // Initialize Application $app = new App(__DIR__ . '/..'); // Get Context Variables $site_settings = $app->config->getSettings(); $router = $app->router; $GLOBALS['router'] = $router; $current_lang = $router->getCurrentLanguage(); $current_language = $current_lang; // Load Content $content = $app->translator->loadLanguageContent(); $lang = $content[$current_language] ?? ($content['en'] ?? []); $page_title = 'Host Your Own Internet Gateway - MOSA'; ?>
v1.0 Stable Release

Host Your Own Internet Gateway

MOSA is open-source. Take full control by hosting your own Internet Gateway for enhanced privacy, security, and customization.

Powered by Open Source Technology

Why Host Your Own Gateway?

Full Control

Complete control over your gateway infrastructure and data flow. You decide who connects.

Enhanced Privacy

Your data stays on your servers. No third-party dependencies or hidden logging.

Custom Configuration

Customize gateway settings, bandwidth limits, and features to your specific needs.

Open Source

Full access to source code. Verify security, modify functionality, and extend as needed.

No Subscription

No monthly fees for the software. You only pay for your own server infrastructure.

No Dependencies

Operational independence. Your gateway works even if other parts of the internet are down.

System Requirements

OS
Linux (Ubuntu 22.04+ or Debian 12+ recommended)
Web Server
Nginx 1.22+ or Apache 2.4+ (Nginx + PHP-FPM recommended)
PHP
PHP 8.1+ with extensions: pdo, pdo_mysql, pdo_sqlite, curl, openssl, mbstring, json, sockets, pcntl
Database
MySQL 8.0+ or MariaDB 10.6+ (PostgreSQL also supported)
Security
Let's Encrypt SSL (free) or commercial SSL certificate. HTTPS is mandatory for secure communication.
Hardware
Minimum: 1 CPU Core, 1GB RAM, 10GB Storage
Recommended: 2 CPU Cores, 2GB RAM, 20GB NVMe Storage

Quick Start Guide

1

Install Dependencies

bash
sudo apt update
sudo apt install -y nginx php8.1 php8.1-fpm php8.1-mysql \
    php8.1-curl php8.1-mbstring mysql-server
2

Clone Repository

cd /var/www
git clone https://git.talivio.dev/mosa.git
cd mosa/gateways/software/internet-gateway
3

Configure Database

mysql -u root -p
CREATE DATABASE mosa_gateway;
CREATE USER 'gateway_user'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON mosa_gateway.* TO 'gateway_user'@'localhost';
FLUSH PRIVILEGES;
4

Setup SSL (Certbot)

sudo apt install certbot python3-certbot-nginx
sudo certbot --nginx -d your-domain.com

Don't Want to Self-Host?

Use our official Internet Gateway at gateway.talivio.com. Fully managed, secure, and always up-to-date.

Use Official Gateway