To check firewall settings, the method depends on your operating system. Here are instructions for common operating systems:
On Linux (using ufw):
- Open a terminal.
- Check the status of the firewall:
sudo ufw status - To see detailed rules, use:
sudo ufw status verbose
On Windows:
- Open the Control Panel.
- Go to System and Security > Windows Defender Firewall.
- Click on Advanced settings on the left side.
- In the Windows Firewall with Advanced Security window, you can view inbound and outbound rules.
On macOS:
- Open System Preferences.
- Click on Security & Privacy.
- Go to the Firewall tab.
- Click on the lock icon to make changes (if necessary).
- You can see if the firewall is on and manage settings by clicking on Firewall Options.
Using Command Line:
-
Linux (using
iptables):sudo iptables -L -
Windows (using Command Prompt):
netsh advfirewall firewall show rule name=all -
macOS (using Terminal):
sudo /usr/libexec/ApplicationFirewall/socketfilterfw --getglobalstate
Make sure to review the rules and settings to ensure that outbound connections on port 22 (for SSH) are allowed. If you need to make changes, ensure you have the necessary permissions and understand the implications of modifying firewall settings.
