Cloud/Shahed/AA: Difference between revisions
Jump to navigation
Jump to search
(→SSH) |
|||
Line 72: | Line 72: | ||
---- | ---- | ||
[[Cloudflare/Argo_Tunnel#Argo Tunnel|Skipped » Find More » 👈]] | [[Cloudflare/Argo_Tunnel#Argo Tunnel|Skipped » Find More » 👈]] | ||
==Cloudflare » WARP » Local » Forward== | |||
{|class="wikitable" | |||
|- | |||
!scope="col" colspan="4" | Implement Local Forward Routing | |||
|- | |||
!scope="col" style='width:180px'| Name | |||
!scope="col" style='width:140px'| Network | |||
!scope="col" style='width:220px'| Subnets | |||
!scope="col" style='width:90px' | Forward | |||
|- | |||
| Network » shahed-aj || <code>10.20.40.10/32</code> || <code>10.20.40.10/32 = 1</code> ||style='text-align:center'| ⚪️ | |||
|- | |||
| Network » shahed-ak || <code>10.20.40.11/32</code> || <code>10.20.40.11/32 = 1</code> ||style='text-align:center'| ⚪️ | |||
|- | |||
| Network » shahed-al || <code>10.20.40.12/32</code> || <code>10.20.40.12/32 = 1</code> ||style='text-align:center'| ✅ | |||
|- | |||
| Network » shahed-am || <code>10.20.40.13/32</code> || <code>10.20.40.13/32 = 1</code> ||style='text-align:center'| ✅ | |||
|- | |||
| Network » shahed-an || <code>10.20.40.14/32</code> || <code>10.20.40.14/32 = 1</code> ||style='text-align:center'| ⚪️ | |||
|} | |||
==References== | ==References== |
Revision as of 23:01, 23 February 2025
SSH
ssh -qt [email protected] bash
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=/usr/sbin/ip link add warp0 type dummy
ExecStartPost=/usr/sbin/ip addr add 10.20.40.1/32 dev warp0
ExecStartPost=/usr/sbin/ip link set warp0 up
ExecStop=/usr/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-arm64.deb -P ${HOME}/Downloads
sudo dpkg -i ${HOME}/Downloads/cloudflared-linux-arm64.deb; sudo apt install -f
rm -rf ${HOME}/Downloads/cloudflared-linux-arm64.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
Cloudflare » WARP » Local » Forward
Implement Local Forward Routing | |||
---|---|---|---|
Name | Network | Subnets | Forward |
Network » shahed-aj | 10.20.40.10/32 |
10.20.40.10/32 = 1 |
⚪️ |
Network » shahed-ak | 10.20.40.11/32 |
10.20.40.11/32 = 1 |
⚪️ |
Network » shahed-al | 10.20.40.12/32 |
10.20.40.12/32 = 1 |
✅ |
Network » shahed-am | 10.20.40.13/32 |
10.20.40.13/32 = 1 |
✅ |
Network » shahed-an | 10.20.40.14/32 |
10.20.40.14/32 = 1 |
⚪️ |
References
| ||
| ||
| ||