Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How adopt hans with openvpn #10

Open
kultz opened this issue Mar 8, 2015 · 3 comments
Open

How adopt hans with openvpn #10

kultz opened this issue Mar 8, 2015 · 3 comments

Comments

@kultz
Copy link

kultz commented Mar 8, 2015

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

@Anime4000
Copy link

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 👍

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

@kultz
Copy link
Author

kultz commented Aug 7, 2015

Hi, Thank you
What about Mac OS or Linux ?

@Anime4000
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants