commit 26fadc96ba6d92e73b9ba48a28f051a297fbfb15 Author: Minecon724 Date: Sun May 12 16:45:33 2024 +0200 initial commit diff --git a/deploy.py b/deploy.py new file mode 100644 index 0000000..0ae29cd --- /dev/null +++ b/deploy.py @@ -0,0 +1,34 @@ +from ftplib import FTP +import requests +import minify_html +from os import listdir, getenv +from io import BytesIO + +# init ftp + +ftp = FTP(getenv('FTP_SERVER')) +ftp.login(getenv('FTP_USER'), getenv('FTP_PASSWORD')) + +for f in [i for i in listdir('html') if i.endswith('.html')]: + + # 1. Minify the index.html file using minify-html + minified_content = minify_html.minify(open(f, 'r').read(), minify_css=True, minify_css_level_3=True, do_not_minify_doctype=True) + + # 2. Upload the file to an FTP server + + ftp.storbinary('STOR ' + f, BytesIO(minified_content.encode())) + +ftp.storbinary('STOR geofeed.csv', BytesIO(open('../geofeed.csv', 'r').read().encode())) + +# refresh cache + +url = 'https://api.bunny.net/purge?url=https%3A%2F%2Fdn42.724.rocks&async=false' # replace with your URL +headers = { + 'AccessKey': getenv("ACCESS_KEY") +} + +response = requests.get(url, headers=headers) + +# Quit ftp + +ftp.quit() \ No newline at end of file diff --git a/geofeed.csv b/geofeed.csv new file mode 100644 index 0000000..e69de29 diff --git a/html/index-old.html b/html/index-old.html new file mode 100644 index 0000000..b1770ad --- /dev/null +++ b/html/index-old.html @@ -0,0 +1,196 @@ + + + + +dn724 + + + +
+

+ AS4242420129 +

+ open for peering! + +
+ +

nodes

+ + +
+ +

peering

+ + Requirements: + + + + Also: + + +
+ +

contact

+ + + + Status | Services + + newtork is fast my man +
+ + + diff --git a/html/index.html b/html/index.html new file mode 100644 index 0000000..15b8fc6 --- /dev/null +++ b/html/index.html @@ -0,0 +1,64 @@ + + + + +dn724 + + + +

AS4242420129

+ +

Open for peering in:

+ + +

Requirements

+ + +

Other

+ + +

Contact

+ + + \ No newline at end of file diff --git a/html/port-calc.html b/html/port-calc.html new file mode 100644 index 0000000..06e2e4a --- /dev/null +++ b/html/port-calc.html @@ -0,0 +1,48 @@ + + + + +dn724 + + +

Port:

+ + + + \ No newline at end of file diff --git a/html/services.html b/html/services.html new file mode 100644 index 0000000..0d6427b --- /dev/null +++ b/html/services.html @@ -0,0 +1,67 @@ + + + + + + dn724 + + + + + + + + + + + + + + + + + + + + +
ServiceAddressDescription
Minetestnodecode.pivipi.dn42
+
    +
  • Game: NodeCore
  • +
  • Hosted in Netherlands
  • +
+
Minecraftfd11:ef8b:72ac::
+
    +
  • Running on Cuberite
  • +
  • Hosted in Poland
  • +
+
+ + + diff --git a/nodes.md b/nodes.md new file mode 100644 index 0000000..21a115b --- /dev/null +++ b/nodes.md @@ -0,0 +1,39 @@ +Port is last 5 digits of your ASN\ +If your ASN is not 424242xxxx, [use this](https://dn42.724.rocks/port-calc.html) + +Warsaw, Poland +- `pl-waw.420129.xyz` 1 Gbps +- Pingables: + - `172.20.183.91` + - `fdfe:8d0:7450:300::` +- `v854+5m4Diqh8oGo6/sGVS7LELsreIjMujkWqwc6bWo=` +- `fe80::129:669a` +- Hosting: [Skhron](https://skhron.com.ua/aff.php?aff=20) + +Frankfurt, Germany +- `de-fra.420129.xyz` 1 Gbps +- ⚠️ High latency over IPv6 +- Pingables: + - `172.20.183.89` + - `fdfe:8d0:7450:100::` +- `u7Pes8qR8m+/4kc4sNTYani90M2MEbaxRsnXKujqik4=` +- `fe80::129:93a8` +- Hosting: [Datalix](https://datalix.de/a/inff) + +Amsterdam, Netherlands +- `nl-ams.420129.xyz` ½ Gbps +- Pingables: + - `172.20.183.93` + - `fdfe:8d0:7450:500::` +- `5iGqF1Cs0r7dvHV6Juarb5ZkFDu7Mc2ke1mgQGVbEXU=` +- `fe80::129:c9db` +- Hosting: Oracle + +Nuremberg, Germany +- `de-nue.420129.xyz` 10 Gbps +- Pingables: + - `172.20.183.90` + - `fdfe:8d0:7450:200::` +- `lBYpESYKv+3u/d4Van4EzgOngfPLiCTilAatIFT2gXk=` +- `fe80::129:c550` +- Hosting: [Advin](https://clients.advinservers.com/aff.php?aff=323) \ No newline at end of file diff --git a/pinger.sh b/pinger.sh new file mode 100755 index 0000000..27bd8f9 --- /dev/null +++ b/pinger.sh @@ -0,0 +1,40 @@ +#!/bin/bash + +# List of targets to ping (replace with your desired addresses/hostnames) +targets=("google.com" "cloudflare.com" "example.com") + +ipv4=false +ipv6=false + +# --- Main Script --- + +echo "Checking network connectivity:" + +if ping -c 1 -W 1 "8.8.8.8" &>/dev/null; then + echo "IPv4: yes" + ipv4=true +else + echo "IPv4: no" +fi + +if ping -c 1 -W 1 "2001:4860:4860::8844" &>/dev/null; then + echo "IPv6: yes" + ipv6=true +else + echo "IPv6: no" +fi + +echo "Pings to targets:" + +# Ping each target over IPv4 and IPv6 +for target in "${targets[@]}"; do + echo "--- $target ---" + + # IPv4 ping + ping -i 0.2 -c 4 $target + + # IPv6 ping + ping6 -c 4 $target + + echo "" # Add a blank line for separation +done \ No newline at end of file