Skip to content

Allow pre req ports using ufw #1

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pratikbin opened this issue Feb 11, 2025 · 2 comments
Open

Allow pre req ports using ufw #1

pratikbin opened this issue Feb 11, 2025 · 2 comments

Comments

@pratikbin
Copy link

Allow Necessary ports using UFW

sudo ufw allow 8472/udp
sudo ufw allow 10250/tcp
sudo ufw allow 51820/udp
sudo ufw allow 51821/udp

Reload firewall

sudo ufw realod

https://docs.nodeops.network/Get-Started/Provide-compute/register-a-machine#prerequisites

@arcxteam
Copy link
Owner

Allow Necessary ports using UFW

sudo ufw allow 8472/udp
sudo ufw allow 10250/tcp
sudo ufw allow 51820/udp
sudo ufw allow 51821/udp

Reload firewall

sudo ufw realod

https://docs.nodeops.network/Get-Started/Provide-compute/register-a-machine#prerequisites

thank u, there was huge update and rebrand namely. so quckly i've update some instructions with upgrade kernel redetect all system linux to support ubuntu like 20-22-24

sudo apt update -y && sudo apt upgrade -y && \
UBUNTU_VERSION=$(lsb_release -rs | cut -d '.' -f1) && \
if [ "$UBUNTU_VERSION" = "20" ]; then \
  KERNEL_PACKAGE="linux-generic-hwe-20.04"; \
elif [ "$UBUNTU_VERSION" = "22" ]; then \
  KERNEL_PACKAGE="linux-generic-hwe-22.04"; \
elif [ "$UBUNTU_VERSION" = "24" ]; then \
  KERNEL_PACKAGE="linux-generic-hwe-24.04"; \
else \
  echo "Versi Ubuntu Not Compatible: $UBUNTU_VERSION"; \
  exit 1; \
fi && \
sudo apt-get install --install-recommends $KERNEL_PACKAGE -y && \
sudo apt autoremove --purge -y && \
sudo apt install ufw -y && \
sudo ufw default deny incoming && \
sudo ufw default allow outgoing && \
sudo ufw allow ssh && \
sudo ufw allow 8472/udp && \
sudo ufw allow 10250/tcp && \
sudo ufw allow 51820/udp && \
sudo ufw allow 51821/udp && \
sudo ufw enable && \
sudo ufw reload && \
sudo ufw status verbose

@arcxteam arcxteam pinned this issue Feb 12, 2025
@arcxteam arcxteam reopened this Feb 12, 2025
@pratikbin
Copy link
Author

looks good ser. be sure to test it out. let me know if you need any help to test it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants