Created
November 19, 2015 03:39
-
-
Save Anime4000/ffbb29b8d3f724e14f6d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
@title IODINE | |
cd "%~dp0" | |
SET NS=ENTER IODINE NAME SERVER HERE | |
SET HOST=ENTER IODINE SERVER IP HERE | |
::SET DNS=58.71.132.10 | |
SET DNS=1.9.1.9 | |
SET MASK=255.255.255.255 | |
for /f "tokens=2,3 delims={,}" %%a in ('"WMIC NICConfig where IPEnabled="True" get DefaultIPGateway /value | find "I" "') do set GATE=%%~a | |
echo Deleting route | |
route delete %HOST% | |
route delete %DNS% | |
echo Adjusting host route, allowing VPN over Iodine | |
route add %HOST% mask %MASK% %GATE% | |
route add %DNS% mask %MASK% %GATE% | |
iodine -fP futanari -T NULL -O Base128 -M 100 -I 1 %DNS% %NS% | |
echo Deleting route | |
route delete %HOST% | |
route delete %DNS% | |
timeout /t 10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment