hans icon indicating copy to clipboard operation
hans copied to clipboard

How adopt hans with openvpn

Open kultz opened this issue 9 years ago • 3 comments

Would you please explain how to initialize an OpenVPN on top of hans?

kultz avatar Mar 08 '15 13:03 kultz

Hi, you want wrap like this? (((Data)OpenVPN)hans)

On windows, I would setup like this, make hans IP direct to current host gateway, try add this on batch file :+1:

SET HOST=123.123.123.123 (replace with our hans server IP)
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%

echo Adjusting host route, allowing VPN over has
route add %HOST% mask %MASK% %GATE%

echo Running Hans!
hans -vfc %HOST% -p password

Anime4000 avatar Aug 07 '15 19:08 Anime4000

Hi, Thank you What about Mac OS or Linux ?

kultz avatar Aug 07 '15 20:08 kultz

based on this article: https://supportcenter.checkpoint.com/supportcenter/portal?eventSubmit_doGoviewsolutiondetails=&solutionid=sk7303

maybe do route add <Hans IP> gw 192.168.0.1 all traffic will go via OpenVPN except Hans IP Address, so hans wont get disconnected

Anime4000 avatar Aug 08 '15 06:08 Anime4000