Harshvardhan Arora
Harshvardhan Arora

Reputation: 103

How to tunnel using ngrok while I am connected to a VPN?

My office network uses Pulse Secure to connect to VPN. I am tunneling my Python Script using ngrok. When the VPN is off, ngrok successfully tunnels my server but the Python Script needs to access a website on the VPN. When I turn on the VPN, ngrok stops working (Reconnecting indefinitely). Is there any method to allow ngrok to work even when the VPN is on?

I've tried to explore modifications in the Python Script to access the VPN server whenever called, but could not do it.

Command I am using in ngrok (5000 was the port generated by the python script using Flask library) - ngrok http 5000

Session Status - Reconnecting

Upvotes: 3

Views: 8806

Answers (1)

Jamieson Rhyne
Jamieson Rhyne

Reputation: 467

You need enable split tunneling on your VPN to allow the ngrok traffic to bypass the VPN.

https://docs.pulsesecure.net/WebHelp/PDC/9.0R1/Content/PDC_AdminGuide_9.0R1/Pulse_Connect_Secure_Split.htm

Upvotes: 1

Related Questions