├── emails.txt ├── passwords.txt ├── proxies.txt ├── accounts.json ├── meomundep.js ├── referrals_meomundep.js ├── configs.json ├── setup.bat ├── README.md ├── setup.sh └── GUIDES ├── DEVNET_2.md └── TESTNET_NODE.md /emails.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /passwords.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /proxies.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /accounts.json: -------------------------------------------------------------------------------- 1 | [] 2 | -------------------------------------------------------------------------------- /meomundep.js: -------------------------------------------------------------------------------- 1 | console.log(`Close this project, please choose another scripts!`) 2 | -------------------------------------------------------------------------------- /referrals_meomundep.js: -------------------------------------------------------------------------------- 1 | console.log(`THIS GAME IS BLOCKED THIS TRICK, PLEASE DO NOT USE THIS FILE ANYMORE!`) 2 | -------------------------------------------------------------------------------- /configs.json: -------------------------------------------------------------------------------- 1 | { 2 | "timeZone": "en-US", 3 | "delayEachAccount": [5, 8], 4 | "proxyRotationInterval": 2, 5 | "isSkipInvalidProxy": false, 6 | "timeToRestartAllAccounts": 300, 7 | "rotateProxyForAllAccounts": true, 8 | "howManyAccountsRunInOneTime": 100, 9 | 10 | "referralCode": "aWFtYWtpZD", 11 | "passwordsForCreateAccounts": "123456789", 12 | "howManyAccountsRunInOneTimeWhenCreateAccounts": 100 13 | } 14 | -------------------------------------------------------------------------------- /setup.bat: -------------------------------------------------------------------------------- 1 | @echo off 2 | title Pipe network Bot by @MeoMunDep 3 | color 0A 4 | 5 | cd .. 6 | if exist node_modules ( 7 | echo Found node_modules in parent directory 8 | cd %~dp0 9 | ) else ( 10 | cd %~dp0 11 | echo node_modules not found in parent directory 12 | ) 13 | 14 | :MENU 15 | cls 16 | echo ================================================================= 17 | echo Pipe network BOT SETUP AND RUN SCRIPT by @MeoMunDep 18 | echo ================================================================= 19 | echo. 20 | echo Current directory: %CD% 21 | echo Parent node_modules: %~dp0..\node_modules 22 | echo. 23 | echo 1. Install/Update Node.js Dependencies 24 | echo 2. Run the Bot 25 | echo 3. Exit 26 | echo. 27 | set /p choice="Enter your choice (1-3): " 28 | 29 | if "%choice%"=="1" goto INSTALL 30 | if "%choice%"=="2" goto RUN 31 | if "%choice%"=="3" goto EXIT 32 | 33 | :INSTALL 34 | cls 35 | echo Checking node_modules location... 36 | if exist "..\node_modules" ( 37 | cd .. 38 | echo Installing/Updating dependencies in parent directory... 39 | npm install --no-audit --no-fund --prefer-offline --force user-agents axios meo-forkcy-colors meo-forkcy-utils https-proxy-agent socks-proxy-agent ws 40 | cd %~dp0 41 | ) else ( 42 | echo Installing dependencies in current directory... 43 | npm install --no-audit --no-fund --prefer-offline --force user-agents axios meo-forkcy-colors meo-forkcy-utils https-proxy-agent socks-proxy-agent ws 44 | ) 45 | echo. 46 | echo Dependencies installation completed! 47 | pause 48 | goto MENU 49 | 50 | :CONFIG 51 | cls 52 | 53 | echo. 54 | echo Configuration files have been created/checked. 55 | echo Please edit the files with your data before running the bot. 56 | echo. 57 | pause 58 | goto MENU 59 | 60 | :RUN 61 | cls 62 | echo Starting the bot... 63 | if exist "..\node_modules" ( 64 | echo Using node_modules from parent directory 65 | ) else ( 66 | echo Using node_modules from current directory 67 | ) 68 | node MeoMunDep 69 | pause 70 | goto MENU 71 | 72 | :EXIT 73 | exit 74 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | 📞 Contact 2 | 3 | > [Termux guides if you run on mobile](https://github.com/MeoMunDep/Guides-for-using-my-script-on-termux) 4 | 5 | 6 | > If you encounter any issues or have questions, feel free to reach out: 7 | 8 | - Contact: [Link](t.me/MeoMunDep) 9 | - Group: [Link](t.me/KeoAirDropFreeNe) 10 | - Channel: [Link](t.me/KeoAirDropFreeNee) 11 | 12 | > Help me with your referral [Link](https://pipecdn.app/signup?ref=aWFtYWtpZD) 13 | 14 | ## 🚀 Getting Started 15 | 16 | To get started with the bot, follow these steps: 17 | 18 | 0. **Dowload NodeJS to run the bot** 19 | 20 | - **Node.js** (Version: `22.11.0`) 21 | - **npm** (Version: `10.9.0`) 22 | 23 | Download Node.js and npm here: [Download Link](https://t.me/KeoAirDropFreeNe/257/1462). 24 | 25 | -> Double click on `setup.bat` for windows or `setup.sh` for linux/mac if you want to run automatically, remember to fill all the necessary data. 26 | 27 | 1. **Install Dependencies and Modules:** 28 | 29 | ``` 30 | npm install --no-audit --no-fund --prefer-offline --force user-agents axios meo-forkcy-colors meo-forkcy-utils https-proxy-agent socks-proxy-agent 31 | ``` 32 | 33 | 2. **Prepare Configuration Files:** 34 | 35 | > You'll need to set up a few configuration files for the bot to work properly. 36 | 37 | ## 📁 Configuration Files 38 | 39 | ### 1. `configs.json` 📜 - Adjust configuration 40 | 41 | ```json 42 | { 43 | "delayEachAccount": [5, 8], 44 | "timeToRestartAllAccounts": 300, 45 | "howManyAccountsRunInOneTime": 100, 46 | "referralCode": "aWFtYWtpZD", 47 | "passwordsForCreateAccounts": "123456789", 48 | "howManyAccountsRunInOneTimeWhenCreateAccounts": 100, 49 | "isSkipInvalidProxy": false, 50 | "rotateProxyForAllAccounts": true, 51 | "proxyRotationInterval": 2 52 | } 53 | ``` 54 | 55 | ### 2. `emails.txt` 🗂️ - Your emails 56 | 57 | ```txt 58 | xxx@gmail.com 59 | xxx@gmail.com 60 | xxx@gmail.com 61 | ``` 62 | 63 | ### 3. `passwords.txt` 💼 - Your passwords 64 | 65 | ```txt 66 | passwords... 67 | passwords... 68 | passwords... 69 | ``` 70 | 71 | ### 4. `proxies.txt` 🌐 - Proxy is an option. If you have one, fill it in; otherwise, leave it blank. 72 | 73 | ```txt 74 | http://user:password@host:port 75 | https://user:password@host:port 76 | socks4://user:password@host:port 77 | socks5://user:password@host:port 78 | ``` 79 | 80 | 💡 Usage: 81 | 82 | > You need to `cd` to the file after extract it. 83 | > To run the farm bot, use the following command: `node meomundep` 84 | 85 | 🎇Enjoy! 86 | -------------------------------------------------------------------------------- /setup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | RED='\033[0;31m' 4 | GREEN='\033[0;32m' 5 | YELLOW='\033[1;33m' 6 | NC='\033[0m' 7 | 8 | print_green() { 9 | echo -e "${GREEN}$1${NC}" 10 | } 11 | 12 | print_yellow() { 13 | echo -e "${YELLOW}$1${NC}" 14 | } 15 | 16 | print_red() { 17 | echo -e "${RED}$1${NC}" 18 | } 19 | 20 | chmod +x "$0" 21 | 22 | if [ -d "../node_modules" ]; then 23 | print_green "Found node_modules in parent directory" 24 | MODULES_DIR=".." 25 | else 26 | print_green "Using current directory for node_modules" 27 | MODULES_DIR="." 28 | fi 29 | 30 | create_default_configs() { 31 | cat > configs.json << EOL 32 | { 33 | "delayEachAccount": [5, 8], 34 | "timeToRestartAllAccounts": 300, 35 | "howManyAccountsRunInOneTime": 100, 36 | "referralCode": "aWFtYWtpZD", 37 | "passwordsForCreateAccounts": "123456789", 38 | "howManyAccountsRunInOneTimeWhenCreateAccounts": 100, 39 | "isSkipInvalidProxy": false, 40 | "rotateProxyForAllAccounts": true, 41 | "proxyRotationInterval": 2 42 | } 43 | EOL 44 | } 45 | 46 | check_configs() { 47 | if ! node -e "const cfg=require('./configs.json');if(typeof cfg.howManyAccountsRunInOneTime !== 'number' || cfg.howManyAccountsRunInOneTime < 1) throw new Error('Invalid config');" 2>/dev/null; then 48 | print_red "Invalid configuration detected. Resetting to default values..." 49 | create_default_configs 50 | print_green "Configuration reset completed." 51 | fi 52 | } 53 | 54 | while true; do 55 | clear 56 | echo "============================================================================" 57 | echo " Pipe network BOT SETUP AND RUN SCRIPT by @MeoMunDep" 58 | echo "============================================================================" 59 | echo 60 | echo "Current directory: $(pwd)" 61 | echo "Node modules directory: $MODULES_DIR/node_modules" 62 | echo 63 | echo "1. Install/Update Node.js Dependencies" 64 | echo "2. Run the Bot" 65 | echo "3. Exit" 66 | echo 67 | read -p "Enter your choice (1-3): " choice 68 | 69 | case $choice in 70 | 1) 71 | clear 72 | print_yellow "Installing/Updating Node.js dependencies..." 73 | cd "$MODULES_DIR" 74 | npm install --no-audit --no-fund --prefer-offline --force user-agents axios meo-forkcy-colors meo-forkcy-utils https-proxy-agent socks-proxy-agent ws 75 | cd - > /dev/null 76 | print_green "Dependencies installation completed!" 77 | read -p "Press Enter to continue..." 78 | ;; 79 | 2) 80 | clear 81 | print_yellow "Checking configuration before starting..." 82 | if ! check_configs; then 83 | print_red "Error: Invalid configuration detected. Please run option 2 to fix configuration." 84 | read -p "Press Enter to continue..." 85 | continue 86 | fi 87 | 88 | print_green "Starting the bot..." 89 | if [ -d "../node_modules" ]; then 90 | print_green "Using node_modules from parent directory" 91 | else 92 | print_green "Using node_modules from current directory" 93 | fi 94 | node meomundep 95 | read -p "Press Enter to continue..." 96 | ;; 97 | 3) 98 | print_green "Exiting..." 99 | exit 0 100 | ;; 101 | *) 102 | print_red "Invalid option. Please try again." 103 | read -p "Press Enter to continue..." 104 | ;; 105 | esac 106 | done 107 | -------------------------------------------------------------------------------- /GUIDES/DEVNET_2.md: -------------------------------------------------------------------------------- 1 | # 🌐 Pipe Network — PoP Cache Node Setup (Linux) 2 | 3 | A high-performance caching node that distributes content across Pipe's decentralized CDN network. This guide covers setup, configuration, monitoring, and referral systems. 4 | 5 | --- 6 | 7 | ## 🧰 Requirements 8 | 9 | * **Linux-based OS** 10 | * **RAM**: 4GB+ (more RAM = better rewards) 11 | * **Disk**: 100GB+ free (200–500GB optimal) 12 | * **Internet**: 24/7 uptime required 13 | * **Ports**: 8003, 80, 443 must be open 14 | * **Privileges**: Required for ports 80/443 (run with `sudo` or systemd capabilities) 15 | 16 | --- 17 | 18 | ## ⚡ Quick Install 19 | 20 | ```bash 21 | # Download latest binary 22 | curl -L -o pop "https://dl.pipecdn.app/v0.2.8/pop" 23 | 24 | # Make it executable 25 | chmod +x pop 26 | 27 | # Create download cache folder 28 | mkdir download_cache 29 | 30 | # Run (defaults: 4GB RAM, 100GB disk, ports 8003/443/80) 31 | sudo ./pop 32 | ``` 33 | 34 | --- 35 | 36 | ## ⚙️ Custom Run Example 37 | 38 | ```bash 39 | sudo ./pop \ 40 | --ram 8 \ 41 | --max-disk 500 \ 42 | --cache-dir /data \ 43 | --pubKey 44 | ``` 45 | 46 | --- 47 | 48 | ## 📊 Monitoring 49 | 50 | ```bash 51 | ./pop --status # View metrics 52 | ./pop --points-route # (Future) point system 53 | ``` 54 | 55 | --- 56 | 57 | ## 🧑‍🤝‍🧑 Referral System 58 | 59 | * Generate referral: 60 | 61 | ```bash 62 | ./pop --gen-referral-route 63 | ``` 64 | 65 | * Register with referral: 66 | 67 | ```bash 68 | sudo ./pop --signup-by-referral-route 69 | ``` 70 | 71 | > Referrer earns 10 points after 7+ days of uptime & good reputation from the referred node. 72 | 73 | Check stats at: [https://dashboard.pipenetwork.com/node-lookup](https://dashboard.pipenetwork.com/node-lookup) 74 | 75 | --- 76 | 77 | ## 🔁 Systemd Service Setup 78 | 79 | ```bash 80 | # Create user and directories 81 | sudo useradd -r -m -s /sbin/nologin pop-svc-user -d /home/pop-svc-user 82 | sudo mkdir -p /opt/pop /var/lib/pop /var/cache/pop/download_cache 83 | 84 | # Move binary and files 85 | sudo mv -f ~/pop /opt/pop/ 86 | sudo chmod +x /opt/pop/pop 87 | sudo mv -f ~/node_info.json /var/lib/pop/ 2>/dev/null || true 88 | 89 | # Set ownership 90 | sudo chown -R pop-svc-user:pop-svc-user /opt/pop /var/lib/pop /var/cache/pop 91 | 92 | # Create systemd service 93 | sudo tee /etc/systemd/system/pop.service << 'EOF' 94 | [Unit] 95 | Description=Pipe POP Node Service 96 | After=network.target 97 | Wants=network-online.target 98 | 99 | [Service] 100 | AmbientCapabilities=CAP_NET_BIND_SERVICE 101 | CapabilityBoundingSet=CAP_NET_BIND_SERVICE 102 | User=pop-svc-user 103 | Group=pop-svc-user 104 | ExecStart=/opt/pop/pop \ 105 | --ram=12 \ 106 | --pubKey= \ 107 | --max-disk=175 \ 108 | --cache-dir=/var/cache/pop/download_cache \ 109 | --no-prompt 110 | Restart=always 111 | RestartSec=5 112 | LimitNOFILE=65536 113 | LimitNPROC=4096 114 | WorkingDirectory=/var/lib/pop 115 | 116 | [Install] 117 | WantedBy=multi-user.target 118 | EOF 119 | 120 | # Enable service 121 | sudo systemctl daemon-reload 122 | sudo systemctl enable pop.service 123 | sudo systemctl start pop.service 124 | ``` 125 | 126 | ### ✅ Helpful Alias 127 | 128 | ```bash 129 | echo "alias pop='cd /var/lib/pop && /opt/pop/pop'" >> ~/.bashrc 130 | source ~/.bashrc 131 | ``` 132 | 133 | --- 134 | 135 | ## 🔐 Firewall 136 | 137 | ```bash 138 | sudo ufw allow 8003/tcp 139 | sudo ufw allow 80/tcp 140 | sudo ufw allow 443/tcp 141 | sudo ufw reload 142 | ``` 143 | 144 | --- 145 | 146 | ## 💾 Backup & Upgrade 147 | 148 | ### Backup node 149 | 150 | ```bash 151 | cp /var/lib/pop/node_info.json ~/node_info.backup-$(date +%F) 152 | ``` 153 | 154 | ### Upgrade node 155 | 156 | ```bash 157 | curl -L -o pop "https://dl.pipecdn.app/v0.2.8/pop" 158 | chmod +x pop 159 | sudo mv ./pop /opt/pop/pop 160 | cd /var/lib/pop 161 | pop --refresh 162 | ``` 163 | 164 | If needed: 165 | 166 | ```bash 167 | sudo setcap 'cap_net_bind_service=+ep' /opt/pop/pop 168 | ``` 169 | 170 | --- 171 | 172 | ## 🧠 Reputation System 173 | 174 | Your node score (0–1) is calculated from: 175 | 176 | | Metric | Weight | Notes | 177 | | ------------ | ------ | ----------------------------------------------------------- | 178 | | Uptime Score | 40% | Based on hourly reports; 18+ hours/day = good coverage | 179 | | Historical | 30% | Days with good coverage in last 7 days | 180 | | Egress Score | 30% | Based on data transferred (target: 1TB/day, capped at 100%) | 181 | 182 | **Score Impact:** 183 | 184 | * `> 0.7` = P2P priority 185 | * `> 0.5` = Referral eligibility 186 | 187 | Check: 188 | 189 | ```bash 190 | ./pop --status 191 | ``` 192 | 193 | --- 194 | 195 | ## 📁 File Info 196 | 197 | * `node_info.json`: Critical config (do NOT lose it) 198 | * `download_cache/`: Cached files 199 | * **Logs**: Stream to stdout, updated every 5 minutes 200 | 201 | --- 202 | 203 | ## 🧼 Decommission Old DevNet1 Node 204 | 205 | ```bash 206 | sudo systemctl stop dcdnd.service 207 | sudo systemctl disable dcdnd.service 208 | ``` 209 | 210 | --- 211 | 212 | ## 📚 Resources 213 | 214 | * **Docs**: [Pipe CDN Docs](https://docs.pipe.network) 215 | * **Dashboard**: [Node Lookup](https://dashboard.pipenetwork.com/node-lookup) 216 | * **Join**: [Register PoP Node](https://airtable.com/apph9N7T0WlrPqnyc/pagSLmmUFNFbnKVZh/form) 217 | 218 | -------------------------------------------------------------------------------- /GUIDES/TESTNET_NODE.md: -------------------------------------------------------------------------------- 1 | # 🌐 Pipe Network - PoP Cache Node Setup (Linux) 2 | 3 | This guide walks you through installing, configuring, and running a Pipe Network CDN PoP (Point-of-Presence) Cache Node on Linux. 4 | 5 | --- 6 | 7 | ## 📋 Requirements 8 | 9 | **Minimum Recommended System Specs:** 10 | 11 | * **CPU:** 4+ cores 12 | * **RAM:** 16GB+ 13 | * **Disk:** 100GB+ SSD 14 | * **Network:** 1Gbps+ 15 | 16 | --- 17 | 18 | ## ⚙️ 1. System Preparation 19 | 20 | ### Create a dedicated user (optional) 21 | 22 | ```bash 23 | sudo su - 24 | sudo useradd -m -s /bin/bash popcache 25 | sudo usermod -aG sudo popcache 26 | ``` 27 | 28 | ### Install required dependencies 29 | 30 | ```bash 31 | sudo apt update -y 32 | sudo apt install -y libssl-dev ca-certificates 33 | ``` 34 | 35 | --- 36 | 37 | ## 🚀 2. System Optimization 38 | 39 | ### Create sysctl config for networking 40 | 41 | ```bash 42 | sudo bash -c 'cat > /etc/sysctl.d/99-popcache.conf << EOL 43 | net.ipv4.ip_local_port_range = 1024 65535 44 | net.core.somaxconn = 65535 45 | net.ipv4.tcp_low_latency = 1 46 | net.ipv4.tcp_fastopen = 3 47 | net.ipv4.tcp_slow_start_after_idle = 0 48 | net.ipv4.tcp_window_scaling = 1 49 | net.ipv4.tcp_wmem = 4096 65536 16777216 50 | net.ipv4.tcp_rmem = 4096 87380 16777216 51 | net.core.wmem_max = 16777216 52 | net.core.rmem_max = 16777216 53 | EOL' 54 | 55 | sudo sysctl -p /etc/sysctl.d/99-popcache.conf 56 | ``` 57 | 58 | ### Set file limits 59 | 60 | ```bash 61 | sudo bash -c 'cat > /etc/security/limits.d/popcache.conf << EOL 62 | * soft nofile 65535 63 | * hard nofile 65535 64 | EOL' 65 | ``` 66 | 67 | Log out and back in for limits to take effect. 68 | 69 | --- 70 | 71 | ## 📦 3. Install the Binary 72 | 73 | ```bash 74 | sudo mkdir -p /opt/popcache/logs 75 | cd /opt/popcache 76 | # Download from: https://download.pipe.network/ 77 | ``` 78 | 79 | > 🔑 You’ll need an **invite code** from the [registration form](https://airtable.com/apph9N7T0WlrPqnyc/pagSLmmUFNFbnKVZh/form) 80 | 81 | --- 82 | 83 | ## 🛠 4. Configuration 84 | 85 | Create the configuration file: 86 | 87 | ```bash 88 | ./pop create-config /opt/popcache 89 | nano /opt/popcache/config.json 90 | ``` 91 | 92 | ### Sample `config.json` 93 | 94 | ```json 95 | { 96 | "pop_name": "your-pop-name", 97 | "pop_location": "Your Location, Country", 98 | "invite_code": "your-invite-code", 99 | "server": { 100 | "host": "0.0.0.0", 101 | "port": 443, 102 | "http_port": 80, 103 | "workers": 0 104 | }, 105 | "cache_config": { 106 | "memory_cache_size_mb": 8192, 107 | "disk_cache_path": "./cache", 108 | "disk_cache_size_gb": 100, 109 | "default_ttl_seconds": 86400, 110 | "respect_origin_headers": true, 111 | "max_cacheable_size_mb": 1024 112 | }, 113 | "api_endpoints": { 114 | "base_url": "https://dataplane.pipenetwork.com" 115 | }, 116 | "identity_config": { 117 | "node_name": "your-node-name", 118 | "name": "Your Name", 119 | "email": "your.email@example.com", 120 | "website": "https://your-site.com", 121 | "twitter": "your_twitter", 122 | "discord": "your_discord", 123 | "telegram": "your_telegram", 124 | "solana_pubkey": "YOUR_SOLANA_ADDRESS" 125 | } 126 | } 127 | ``` 128 | 129 | Validate config: 130 | 131 | ```bash 132 | ./pop --validate-config 133 | ``` 134 | 135 | --- 136 | 137 | ## 🔁 5. Systemd Service Setup 138 | 139 | ```bash 140 | sudo nano /etc/systemd/system/popcache.service 141 | ``` 142 | 143 | Paste: 144 | 145 | ```ini 146 | [Unit] 147 | Description=POP Cache Node 148 | After=network.target 149 | 150 | [Service] 151 | Type=simple 152 | User=popcache 153 | Group=popcache 154 | WorkingDirectory=/opt/popcache 155 | ExecStart=/opt/popcache/pop 156 | Restart=always 157 | RestartSec=5 158 | LimitNOFILE=65535 159 | StandardOutput=append:/opt/popcache/logs/stdout.log 160 | StandardError=append:/opt/popcache/logs/stderr.log 161 | Environment=POP_CONFIG_PATH=/opt/popcache/config.json 162 | 163 | [Install] 164 | WantedBy=multi-user.target 165 | ``` 166 | 167 | Start the service: 168 | 169 | ```bash 170 | sudo systemctl daemon-reload 171 | sudo systemd-analyze verify popcache 172 | sudo systemctl enable --now popcache 173 | ``` 174 | 175 | Check status: 176 | 177 | ```bash 178 | sudo systemctl status popcache 179 | ``` 180 | 181 | --- 182 | 183 | ## 📑 6. Logs 184 | 185 | ### Live log view 186 | 187 | ```bash 188 | tail -f /opt/popcache/logs/stdout.log 189 | tail -f /opt/popcache/logs/stderr.log 190 | ``` 191 | 192 | ### Journal logs 193 | 194 | ```bash 195 | sudo journalctl -u popcache -f 196 | ``` 197 | 198 | ### Enable log rotation 199 | 200 | ```bash 201 | sudo nano /etc/logrotate.d/popcache 202 | ``` 203 | 204 | ```bash 205 | /opt/popcache/logs/*.log { 206 | daily 207 | missingok 208 | rotate 14 209 | compress 210 | delaycompress 211 | notifempty 212 | create 0640 popcache popcache 213 | sharedscripts 214 | postrotate 215 | systemctl reload popcache >/dev/null 2>&1 || true 216 | endscript 217 | } 218 | ``` 219 | 220 | --- 221 | 222 | ## 🔥 7. Firewall Configuration 223 | 224 | ### UFW 225 | 226 | ```bash 227 | sudo ufw allow 80/tcp 228 | sudo ufw allow 443/tcp 229 | ``` 230 | 231 | ### iptables 232 | 233 | ```bash 234 | sudo iptables -A INPUT -p tcp --dport 80 -j ACCEPT 235 | sudo iptables -A INPUT -p tcp --dport 443 -j ACCEPT 236 | ``` 237 | 238 | --- 239 | 240 | ## 📊 8. Monitoring 241 | 242 | Basic endpoints: 243 | 244 | ```bash 245 | curl http://localhost/state 246 | curl http://localhost/metrics 247 | curl http://localhost/health 248 | ``` 249 | 250 | --- 251 | 252 | ## 🧯 9. Troubleshooting 253 | 254 | ### Common issues: 255 | 256 | * **Check logs** 257 | 258 | ```bash 259 | sudo journalctl -u popcache -n 100 260 | ``` 261 | 262 | * **Permissions** 263 | 264 | ```bash 265 | sudo chmod 755 /opt/popcache/pop 266 | sudo chown -R popcache:popcache /opt 267 | ``` 268 | 269 | * **Ports in use** 270 | 271 | ```bash 272 | sudo netstat -tuln | grep -E ':(80|443)' 273 | ``` 274 | 275 | --- 276 | 277 | ## 🙋 Support 278 | 279 | * 📩 Get an invite: [Pipe Network Invite Form](https://airtable.com/apph9N7T0WlrPqnyc/pagSLmmUFNFbnKVZh/form) 280 | * 💬 Ask on Discord, Twitter, or Telegram 281 | * 🌐 [https://pipe.network](https://pipe.network) 282 | 283 | 284 | --------------------------------------------------------------------------------