VPN Kill Switch À» ¹æÈ­º®À¸·Î ±¸ÃàÇϴµ¥...

Sakura24   
   Á¶È¸ 269   Ãßõ 0    

chatgpt 도움1012; 0155;았lj16;데...

Bitdefender VPN 사용 1473; 1077;니다.

1060; 프/196;그ǖ16; 에서 Kill Switch를 1648;원Ȣ16;1648;만 0176;치파1068;/196; Ǹ16;lj16;,144;랑

1060; 기본 프/196;그ǖ16;1032; Kill Switch 만 해 놔도 안1204; Ȣ16;,192;1424;?



@echo off

setlocal enabledelayedexpansion


:: VPN 1064;터6168;1060;스 1060;름 설1221; (1088;신1032; VPN 1064;터6168;1060;스 1060;름1004;/196; 수1221;)

set VPN_INTERFACE_NAME=VPN

set FW_RULE_NAME=VPN-Kill-Switch-Rule


:loop

    set VPN_CONNECTED=

    for /f "tokens=*" %%i in ('netsh interface show interface "%VPN_INTERFACE_NAME%" 2^>nul ^| findstr /i "Connected"') do (

        set VPN_CONNECTED=1

    )

    if defined VPN_CONNECTED (

        echo VPN 연결.120;. 1064;터넷 연결1012; 허용합니다.

        netsh advfirewall firewall delete rule name="%FW_RULE_NAME%" >nul 2>&1

    ) else (

        echo VPN 연결.104;1648; 않1020;. 1064;터넷 연결1012; 차단합니다.

        netsh advfirewall firewall add rule name="%FW_RULE_NAME%" dir=out action=block remoteip=any profile=any enable=yes >nul 2>&1

        netsh advfirewall firewall add rule name="%FW_RULE_NAME%" dir=in action=block remoteip=any profile=any enable=yes >nul 2>&1

    )

    timeout /t 5 /nobreak >nul

    goto loop

exit

ªÀº±Û Àϼö·Ï ½ÅÁßÇϰÔ.
Sakura24 04-20
@echo off
setlocal enabledelayedexpansion

:: VPN ÀÎÅÍÆäÀ̽º À̸§ ¼³Á¤
set "VPN_INTERFACE_NAME=VPN"
set "FW_RULE_NAME=VPN-Kill-Switch-Rule"

:loop
    set VPN_CONNECTED=

    for /f "tokens=*" %%i in ('netsh interface show interface "%VPN_INTERFACE_NAME%" 2^>nul ^| findstr /i "Connected ¿¬°áµÊ"') do (
        set VPN_CONNECTED=1
    )

    if defined VPN_CONNECTED (
        echo VPN ¿¬°áµÊ. ÀÎÅÍ³Ý ¿¬°áÀ» Çã¿ëÇÕ´Ï´Ù.
        netsh advfirewall firewall delete rule name="%FW_RULE_NAME%" >nul 2>&1
    ) else (
        echo VPN ¿¬°áµÇÁö ¾ÊÀ½. ÀÎÅÍ³Ý ¿¬°áÀ» Â÷´ÜÇÕ´Ï´Ù.
        netsh advfirewall firewall add rule name="%FW_RULE_NAME%" dir=out action=block remoteip=any profile=any enable=yes >nul 2>&1
        netsh advfirewall firewall add rule name="%FW_RULE_NAME%" dir=in action=block remoteip=any profile=any enable=yes >nul 2>&1
    )

    timeout /t 5 /nobreak >nul
    goto loop





¹Ì±¹ ¿î¿µÃ¼Á¦´Â Connected ¶ß°í ÇÑ±Û ¿î¿µÃ¼Á¦´Â ¿¬°áµÊ ¶°¼­ ¼öÁ¤ ÇØ º¾´Ï´Ù...


QnA
Á¦¸ñPage 1/441
11:38   109   ¹Ù·¥¾²
04-20   270   Sakura24
04-20   441   dateno1
04-19   557   ½ÅÀº¿Ö
04-19   345   ö
04-19   283   song05
04-18   311   Sakura24
04-18   364   À嵿°Ç2014
04-18   305   ÃѾËź»ç³ªÀÌ
04-18   253   È­¶õ
04-17   474   2CPUÃÖÁÖÈñ
04-17   332   ¹«Áö°³reinb¡¦
04-17   397   Sakura24
04-17   278   ·ù·ù·ù
04-17   419   Setila
04-17   282   Ææµà¾ó
04-16   505   Sakura24
04-16   270   Á¤¿µÃ¶
04-16   553   »ßµ¹À̽½ÇÄÀÌ
04-16   365   ±¸Â÷´Ï