New-NetFirewallRule -DisplayName "Allow SQL TCP 1433" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Allow -Profile Any * New-NetFirewallRule -DisplayName "RDP Public" -Direction Inbound -Protocol TCP -LocalPort 3389 -Action Allow -Profile Public New-NetFirewallRule -DisplayName "SQL Public" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Allow -Profile Public Get-NetConnectionProfile ping ipconfig # Forward local port 11433 to Tailscale SQL port 1433 netsh interface portproxy add v4tov4 listenaddress=0.0.0.0 listenport=11433 connectaddress=100.89.96.79 connectport=1433 New-NetFirewallRule -DisplayName "Proxy SQL Public" -Direction Inbound -Protocol TCP -LocalPort 11433 -Action Allow -Profile Public netstat -ano | findstr 11433 tailscale funnel 1433 tailscale funnel 1433 tailscale funnel 1433 tailscale funnel status tailscale funnel 1433 tailscale funnel 1433 tailscale funnel status tailscale funnel status # Expose the TCP service publicly tailscale funnel 1433 --yes tailscale funnel 1433 --yes tailscale funnel --help tailscale funnel --tcp=1433 --yes tailscale funnel --tcp=1433 --yes tailscale funnel --tcp=1433 --yes tailscale funnel --tcp=1433 tailscale funnel --tcp=1433 --yes alhost:8443 funnel-serve-use-case set defaults to true) rvice ied port or services. Refer to cls tailscale funnel --tcp=1433 --yes tailscale funnel --tcp=1433 tailscale funnel --tcp:1433 --yes tailscale funnel 1433 --yes tailscale funnel 1433 cls tailscale funnel --http 1433 tailscale funnel --https 1433 tailscale funnel --https:1433 tailscale funnel --https:1433 tailscale funnel --reset tailscale funnel reset tailscale funnel status tailscale funnel status tailscale funnel 1433 tailscale funnel tcp://localhost:1433 tailscale funnel https+insecure tcp://localhost:1433 tailscale funnel https+insecure:tcp://localhost:1433 tailscale funnel https+insecure:tcp://127.0.0.1:1433 tailscale funnel https+insecure:tcp://127.0.0.1:1433 tailscale funnel --help tailscale funnel reset tailscale funnel https+insecure:tcp://127.0.0.1:1433 tailscale funnel --https+insecure:tcp://127.0.0.1:1433 tailscale funnel 0https+insecure://127.0.0.1:1433 tailscale funnel https+insecure://127.0.0.1:1433 New-NetFirewallRule -DisplayName "SQL Server TCP" -Direction Inbound -Protocol TCP -LocalPort 1433 -Action Allow netsh int ip reset netsh winsock reset ipconfig /flushdns route print Install-Module -Name BurntToast -Force -Scope CurrentUserInstall-Module -Name BurntToast -Force -Scope CurrentUser Install-Module -Name BurntToast -Force -Scope CurrentUserInstall-Module -Name BurntToast -Force Install-Module -Name BurntToast -Force -Scope CurrentUser Install-Module -Name BurntToast -Force -Scope CurrentUser # Forcer l'utilisation de TLS 1.2 pour les téléchargements sécurisés [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # Installer manuellement le fournisseur NuGet Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force # Importer le fournisseur Import-PackageProvider -Name NuGet -Force # Vérifier qu’il est bien installé Get-PackageProvider -Name NuGet # Installer BurntToast maintenant que NuGet est disponible Install-Module -Name BurntToast -Force -Scope CurrentUser cd Desktop powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Users\PCHP\Desktop\deleteoldfiles.ps1" powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Users\PCHP\Desktop\deleteoldfiles.ps1" powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Users\Administrateur.WIN-38RD1HMBC6M\Desktop\deleteoldfiles.ps1" powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Users\Administrateur.WIN-38RD1HMBC6M\Desktop\deleteoldfiles.ps1" powershell.exe -WindowStyle Hidden -ExecutionPolicy Bypass -File "C:\Users\Administrateur.WIN-38RD1HMBC6M\Desktop\deleteoldfiles.ps1"Remove-Module BurntToast Install-Module BurntToast -RequiredVersion 0.8.3 -Force -Scope CurrentUser Install-Module BurntToast -Force -Scope CurrentUser Install-Module -Name BurntToast -Force -Scope CurrentUser New-BurntToastNotification -Text "Backup Folder Not Found", $backupPath Install-Module -Name BurntToast -Force -Scope CurrentUser # Forcer l'utilisation de TLS 1.2 pour les téléchargements sécurisés [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 # Installer manuellement le fournisseur NuGet Install-PackageProvider -Name NuGet -MinimumVersion 2.8.5.201 -Force # Importer le fournisseur Import-PackageProvider -Name NuGet -Force # Vérifier qu’il est bien installé Get-PackageProvider -Name NuGet # Installer BurntToast maintenant que NuGet est disponible Install-Module -Name BurntToast -Force -Scope CurrentUser New-NetFirewallRule -DisplayName "Test 8080" -Direction Inbound -Protocol TCP -LocalPort 8080 -Action Allow Test-NetConnection 127.0.0.1 -Port 8080