What's new

Additional options for PTPP and LT2P VPN

  • 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!

Metathiax

New Around Here
Is there any way to get the advanced options in the OVPN client available in the PTPP and L2TP clients for the merlin firmware?

Specifically I'm looking for the kill switch, ability to specify which devices are going though the tunnel, start on WAN, and to attempt to reconnect if it goes down.

Thanks.

EDIT: mis-entered L2TP everywhere, Can't fix the title or the tag.
 
Is there any way to get the advanced options in the OVPN client available in the PTPP and L2TP clients for the merlin firmware?

Specifically I'm looking for the kill switch, ability to specify which devices are going though the tunnel, start on WAN, and to attempt to reconnect if it goes down.

If a PPTP/L2TP connection is defined and ACTIVE when the router is rebooted, then the PPTP/L2TP connection is automatically restarted @boot.
(NOTE: This may not be a desired effect, but you can use this technique and (crude) script

https://www.snbforums.com/threads/delay-pptp-vpn-start.38026/#post-313277

to delay the actual start.)

For a (dumb) kill switch, then you will probably need rules such as this for each device or subnet that must be blocked from using the WAN:

wan-start
Code:
iptables -I FORWARD -i br0 -s xxx.xxx.xxx.xxx -o $(nvram get wan0_ifname) -j DROP

If you want to use selective routing, then this script may help:

https://pastebin.com/H4M4jRDr

Can't post in-line as it's blocked :mad:
 
Last edited:

Similar threads

Sign Up For SNBForums Daily Digest

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