# Define the ports used by Monero mining pools
$ports = @(4444, 443, 3333)
# Create the Outbound Firewall Rule
New-NetFirewallRule -DisplayName "Allow XMRig Mining Outbound" `
-Direction Outbound `
-LocalPort Any `
-Protocol TCP `
-RemotePort $ports `
-Action Allow `
-Description "Allows Ubuntu VM to reach Monero mining pools"
# Create the Inbound Firewall Rule (Optional, but helps with peer discovery)
New-NetFirewallRule -DisplayName "Allow XMRig Mining Inbound" `
-Direction Inbound `
-LocalPort $ports `
-Protocol TCP `
-Action Allow `
-Description "Allows incoming traffic for Monero mining"
No comments:
Post a Comment