Cloud/Shahed/AF: Difference between revisions
Jump to navigation
Jump to search
(Created page with "==SSH== <syntaxhighlight lang="bash"> ssh -p4321 [email protected] cat <<'EXE' | sudo bash free -th && echo && systemd-analyze && echo df -h && echo && lsblk && echo swapon --show EXE </syntaxhighlight> ==Cloudflare » VIRT== <syntaxhighlight lang="ini"> cat << INI | sudo tee /etc/systemd/system/warp0.service >/dev/null [Unit] Description=Cloudflared WARP Routing Virtual Interface After=network.target [Service] Type=oneshot ExecStart=/sbin/ip link add warp0 type du...") |
|||
Line 108: | Line 108: | ||
| valign="top" | | | valign="top" | | ||
* [[Cloud/Hetzner/AA|Cloud » Hetzner » AA]] | * [[Cloud/Hetzner/AA|Cloud » Hetzner » AA]] | ||
* [[Cloud/Shahed/AL|Cloud » Shahed » AL]] | |||
| valign="top" | | | valign="top" | |
Latest revision as of 09:26, 21 February 2025
SSH
ssh -p4321 [email protected]
cat <<'EXE' | sudo bash
free -th && echo && systemd-analyze && echo
df -h && echo && lsblk && echo
swapon --show
EXE
Cloudflare » VIRT
cat << INI | sudo tee /etc/systemd/system/warp0.service >/dev/null
[Unit]
Description=Cloudflared WARP Routing Virtual Interface
After=network.target
[Service]
Type=oneshot
ExecStart=/sbin/ip link add warp0 type dummy
ExecStartPost=/sbin/ip addr add 10.20.41.6/32 dev warp0
ExecStartPost=/sbin/ip link set warp0 up
ExecStop=/sbin/ip link delete warp0
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
INI
cat << EXE | sudo bash
systemctl daemon-reload
systemctl enable --now warp0.service
systemctl status warp0.service
EXE
ip a
Cloudflare » Argo » Tunnel
wget -cq https://github.com/cloudflare/cloudflared/releases/latest/download/cloudflared-linux-armhf.deb -P ${HOME}/Downloads
sudo dpkg -i ${HOME}/Downloads/cloudflared-linux-armhf.deb; sudo apt install -f
rm -rf ${HOME}/Downloads/cloudflared-linux-armhf.deb
cat <<'SYS' | sudo tee -a /etc/sysctl.conf >/dev/null
###################################################################
# Cloudflared Tunnel Private Network Config
# This config added by Chorke Academia, Inc
# ICMP Group ID Range 0 to 10,000 Users
net.ipv4.ping_group_range = 0 10000
# 208 KiB Default RX Buffer
net.core.rmem_default=212992
# 208 KiB Default TX Buffer
net.core.wmem_default=212992
# 8 MB Maximum RX Buffer
net.core.rmem_max=8388608
# 8 MB Maximum TX Buffer
net.core.wmem_max=8388608
SYS
sudo sysctl -p
References
| ||
| ||
| ||