Skip to content

Instantly share code, notes, and snippets.

View cnicodeme's full-sized avatar

Cyril Nicodème cnicodeme

View GitHub Profile
@cnicodeme
cnicodeme / howto.md
Created September 4, 2025 07:26
How to give Internet access to an isolated server

## Setting the connection UP

### On the gateway server:

First, list the current rules

iptables -L -v -n
@cnicodeme
cnicodeme / betteruptime.py
Created January 13, 2026 09:20
BetterUptime automatic update of IPs for iptable
import requests, hashlib, os, ipaddress, subprocess
from typing import List
BETTERUPTIME_URL = 'https://uptime.betterstack.com/ips.txt'
def run(cmd: List[str], check: bool = True, capture: bool = False) -> subprocess.CompletedProcess:
return subprocess.run(
cmd,
check=check,