You may need more rules like this for RDP to work if you use the rule to deny all outgoing packages. This command may work: sudo ufw allow out to 192.168.0.0/24 port 3389 You will need a rule to allow the Ubuntu computer send information to Windows if you have the default to deny all outgoing packages. Warning: This command may also stop this computer from communicating with your local network. Note: This will stop the computer from getting automatic security updates and any access to the internet from this computer. If you mean you don't want this computer to make any outgoing connections, then you may want: sudo ufw default deny outgoing ![]() ![]() The x in the IP address in the command above may be a 0 or a 1. Note: Check your home router's setting and verify the IP address range it uses and change the command above accordingly. This command will allow Windows RDP to reach your computer from within your home WiFi: sudo ufw allow from .0/24 to any port 3389 That is all you need to do to stop internet (and your home network) accessing your computer. Use this command to enable ufw: sudo ufw enable If you mean anyone from the internet can access your Ubuntu computer, then the internet is blocked by the default ufw rule to deny any incoming. ![]() It is not clear what you mean by block internet.
0 Comments
Leave a Reply. |