Skip to content

Instantly share code, notes, and snippets.

@Anime4000
Created November 19, 2015 03:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Anime4000/ffbb29b8d3f724e14f6d to your computer and use it in GitHub Desktop.
Save Anime4000/ffbb29b8d3f724e14f6d to your computer and use it in GitHub Desktop.
@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