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
160; 160; set VPN_CONNECTED=
160; 160; for /f "tokens=*" %%i in ('netsh interface show interface "%VPN_INTERFACE_NAME%" 2^>nul ^| findstr /i "Connected"') do (
160; 160; 160; 160; set VPN_CONNECTED=1
160; 160; )
160; 160; if defined VPN_CONNECTED (
160; 160; 160; 160; echo VPN 연결.120;. 1064;터넷 연결1012; 허용합니다.
160; 160; 160; 160; netsh advfirewall firewall delete rule name="%FW_RULE_NAME%" >nul 2>&1
160; 160; ) else (
160; 160; 160; 160; echo VPN 연결.104;1648; 않1020;. 1064;터넷 연결1012; 차단합니다.
160; 160; 160; 160; netsh advfirewall firewall add rule name="%FW_RULE_NAME%" dir=out action=block remoteip=any profile=any enable=yes >nul 2>&1
160; 160; 160; 160; netsh advfirewall firewall add rule name="%FW_RULE_NAME%" dir=in action=block remoteip=any profile=any enable=yes >nul 2>&1
160; 160; )
160; 160; timeout /t 5 /nobreak >nul
160; 160; goto loop
exit
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 ¶ß°í ÇÑ±Û ¿î¿µÃ¼Á¦´Â ¿¬°áµÊ ¶°¼ ¼öÁ¤ ÇØ º¾´Ï´Ù...