Gelen kurallar, iki kural da gelen kurallara uygulanacak.
Birçok kaynaktan topladığım bilgilerle oluşturdum çok profesyonel sayılmam az önce GPT'den firewall listesi oluşturdum isteyen olursa paylaşırım önce kendim deneyeceğim tabii.
Bu arada ek olarak aralarında ki bazı portlar oyun erişimini hızlandırmaya yönelik, Valorant'taki bağlantı problemlerim ve yüksek ping için çözüm olarak kullanıyorum Discord kapatıldıktan 1 ay sonra kullanmaya başladım o zamandan beri kesintisiz çalışıyor.
Deneyen veya fikri olan hocalarım geri dönüş yaparsa sevinirim en azından geliştirebiliriz belki.
Meraklısına portların aktif veya disable hale getirebilmeleri için hazır kodları rehberden bağımsız veriyorum rehberi tamamladıysanız ve sorunsuz Discord erişiminiz var ise bu kodları kullanmanıza gerek yok.
Kod:
# ---------------- TCP PORTLAR ----------------
# TCP 2099.
New-NetFirewallRule -DisplayName "Allow TCP 2099 Inbound" -Direction Inbound -LocalPort 2099 -Protocol TCP -RemoteAddress 192.168.1.0/24 -Action Allow.
New-NetFirewallRule -DisplayName "Block TCP 2099 Inbound" -Direction Inbound -LocalPort 2099 -Protocol TCP -RemoteAddress Any -Action Block.
# TCP 5222.
New-NetFirewallRule -DisplayName "Allow TCP 5222 Inbound" -Direction Inbound -LocalPort 5222 -Protocol TCP -RemoteAddress 192.168.1.0/24 -Action Allow.
New-NetFirewallRule -DisplayName "Block TCP 5222 Inbound" -Direction Inbound -LocalPort 5222 -Protocol TCP -RemoteAddress Any -Action Block.
# TCP 5223.
New-NetFirewallRule -DisplayName "Allow TCP 5223 Inbound" -Direction Inbound -LocalPort 5223 -Protocol TCP -RemoteAddress 192.168.1.0/24 -Action Allow.
New-NetFirewallRule -DisplayName "Block TCP 5223 Inbound" -Direction Inbound -LocalPort 5223 -Protocol TCP -RemoteAddress Any -Action Block.
# TCP 8088.
New-NetFirewallRule -DisplayName "Allow TCP 8088 Inbound" -Direction Inbound -LocalPort 8088 -Protocol TCP -RemoteAddress 192.168.1.100 -Action Allow.
New-NetFirewallRule -DisplayName "Block TCP 8088 Inbound" -Direction Inbound -LocalPort 8088 -Protocol TCP -RemoteAddress Any -Action Block.
# TCP 8393-8400
New-NetFirewallRule -DisplayName "Allow TCP 8393-8400 Inbound" -Direction Inbound -LocalPort 8393-8400 -Protocol TCP -RemoteAddress 192.168.1.0/24 -Action Allow.
New-NetFirewallRule -DisplayName "Block TCP 8393-8400 Inbound" -Direction Inbound -LocalPort 8393-8400 -Protocol TCP -RemoteAddress Any -Action Block.
# ---------------- UDP PORTLAR ----------------
# UDP 5000-5500
New-NetFirewallRule -DisplayName "Allow UDP 5000-5500 Inbound" -Direction Inbound -LocalPort 5000-5500 -Protocol UDP -RemoteAddress 192.168.1.0/24 -Action Allow.
New-NetFirewallRule -DisplayName "Block UDP 5000-5500 Inbound" -Direction Inbound -LocalPort 5000-5500 -Protocol UDP -RemoteAddress Any -Action Block.
# UDP 8088.
New-NetFirewallRule -DisplayName "Allow UDP 8088 Inbound" -Direction Inbound -LocalPort 8088 -Protocol UDP -RemoteAddress 192.168.1.0/24 -Action Allow.
New-NetFirewallRule -DisplayName "Block UDP 8088 Inbound" -Direction Inbound -LocalPort 8088 -Protocol UDP -RemoteAddress Any -Action Block.