Skip to content

Instantly share code, notes, and snippets.

@RicherMans
Last active July 12, 2023 18:45
Show Gist options
  • Save RicherMans/fe91849be93f373af2805a7d75e3dbab to your computer and use it in GitHub Desktop.
Save RicherMans/fe91849be93f373af2805a7d75e3dbab to your computer and use it in GitHub Desktop.
Simple ufw config for v2ray
ufw enable
ufw allow ssh
ufw allow 41335:60031/tcp # Or your v2ray kcp/udp port range
ufw allow 41335:60031/udp # Or your v2ray kcp/udp port range
ufw allow http
ufw allow https
ufw default deny incoming
ufw reload
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment