What's new

l2tp vpn client for only one device

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

You're a lifesaver, man. That worked.

So, to be clear, I have to turn on the VPN, run the script, and also run:

Code:
ip route del 0.0.0.0/1

ip route del 128.0.0.0/1

Is there any way to get this to happen automatically when I turn on the VPN?
I'm not 100% sure if this was a change that is now permanently included in the v386.x builds or was a v384.19 'feature'

The easiest solution would be to include the two commands in the PPTP_Select.sh script assuming it is always called manually once the VPN is UP

e.g. see this post for a technique to auto=execute PPTP-Select.sh upon a WAN event.
 
The easiest solution would be to include the two commands in the PPTP_Select.sh script assuming it is always called manually once the VPN is UP

Man, you're a regular Mister Wizard. :D I decided I wanted a one-click way to start the VPN and configure it for one device, so I looked around and found a thread that talked about starting PPTP over SSH, and it ends up you wrote that script too: https://www.snbforums.com/threads/start-l2tp-vpn-client-over-ssh.39782/

So, I made two scripts. The first one uses the script from the link above to start the VPN, then it calls the PPTP_Select.sh script to configure the VPN for just one IP (I have to sleep for a bit before that to wait for the VPN to "turn on", otherwise it doesn't work). The second one clears all of the settings for PPTP VPN and then calls stop_vpncall to turn VPN off.

I found and app for Android to execute ssh commands, and now I got two buttons on my phone, one to turn on VPN and one to turn it off. Thanks, man.
 

Similar threads

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top