How to Install and Configure Xtream-Proxy on Ubuntu 22.04
Xtream-Proxy is a lightweight proxy solution for IPTV that allows you to control and optimize streaming traffic. Follow these steps to install and configure Xtream-Proxy on Ubuntu 22.04.
Step 1: Update System Packages
Before installing Xtream-Proxy, update your system packages:
sudo apt update && sudo apt upgrade -y
Step 2: Install Required Dependencies
Ensure that Git is installed on your system:
sudo apt install git -y
Step 3: Clone Xtream-Proxy Repository
Download the Xtream-Proxy source code from GitHub:
git clone https://github.com/xtreamui/Xtream-Proxy.git
Navigate to the Xtream-Proxy directory:
cd Xtream-Proxy
Step 4: Install Xtream-Proxy
Run the installation script:
chmod +x install.sh
sudo ./install.sh
Step 5: Configure Xtream-Proxy
Edit the configuration file to customize your proxy settings:
sudo nano /etc/xtream-ui/config.php
Ensure the TVHEADEND_IP is set correctly to your server's IP:
define('TVHEADEND_IP', '127.0.0.1');
Step 6: Start Xtream-Proxy Service
After configuring, restart the Xtream-Proxy service:
sudo systemctl restart xtream-proxy
Step 7: Access Xtream-Proxy
Xtream-Proxy runs on port 8000 by default. You can access it via:
http://your-server-ip:8000
Step 8: Update IPTV Links
Modify your IPTV links to use Xtream-Proxy. Instead of:
http://your-server-ip:9981/playlist
Use:
http://your-server-ip:8000/playlist
Conclusion
You have successfully installed and configured Xtream-Proxy on Ubuntu 22.04. Now, all IPTV traffic will be routed through the proxy, improving control and efficiency.