You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was fiddling around a bit with ufw and decided to share my results with you: How to Make AdGuard UI and DNS service ports only accessible via VPN
Note: by enabling ufw you can block new connections required to manage your server (SSH). Make sure you keep an SSH connection to your server open and test the rules by opening a another SSH connection. Otherwise you risk loosing access to your server!
Allow access to the Wireguard VPN server (in this case the default port used in this tutorial)
sudo ufw allow 51820
Identify network adapter used by Wireguard (can be identified by a name starting with "wg" followed by a number, if you start with a fresh install and follow this tutorial it should be wg0)
ip link show
Allow access to all ports by requests coming from the Wireguard network adapter
sudo ufw allow in on wg0
Enable ufw
sudo ufw enable
Check the status of ufw
sudo ufw status numbered
I hope you find these rules useful. Feedback, modifications and suggestions are welcome 😊
This discussion was converted from issue #42 on May 30, 2022 10:42.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I was fiddling around a bit with ufw and decided to share my results with you: How to Make AdGuard UI and DNS service ports only accessible via VPN
Note: by enabling ufw you can block new connections required to manage your server (SSH). Make sure you keep an SSH connection to your server open and test the rules by opening a another SSH connection. Otherwise you risk loosing access to your server!
I hope you find these rules useful. Feedback, modifications and suggestions are welcome 😊
Beta Was this translation helpful? Give feedback.
All reactions