What's new
  • 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!

Problem with run script after VPN client connected

kondratiy

New Around Here
i'm use RT-N66 with 3.0.0.4.374.35_4 merlin

In older versions of the client when connected to an external PPTP VPN - run script nat-start from /jffs/scripts/ , this is not happening now, and it became impossible to prescribe a route between networks. For yet I do not know - it's a bug or have done so intentionally.

Now scripts will run - but for a different logic, I prescribe a simple route in the new build?

route add -net 192.168.2.0/24 ppp10 ?


Ps All scripts run fine, but too early, when there is no interface

Jan 5 23:53:07 pptp[1771]: PPTP plugin version 0.8.5 compiled for pppd-2.4.5, linux-2.6.22.19
Jan 5 23:53:07 pptp[1771]: pppd 2.4.5 started by admin, uid 0
Jan 5 23:53:07 pptp[1771]: Using interface ppp10
Jan 5 23:53:07 pptp[1771]: Connect: ppp10 <--> pptp (83.149.9.218)
Jan 5 23:53:07 pptp[1771]: MPPE 128-bit stateless compression enabled
Jan 5 23:53:07 pptp[1771]: found interface br0 for proxy arp
Jan 5 23:53:07 pptp[1771]: local IP address 192.168.1.1
Jan 5 23:53:07 pptp[1771]: remote IP address 192.168.1.50
<HERE OLD SCRIPT RUN PLACE>
 
nat-start is only executed when the NAT rules are being modified and reapplied to the router. If previously you were able to configure routes for PPTP clients through that script then it was just lucky timing - that script doesn't specifically run on PPTP clients connecting.
 
nat-start is only executed when the NAT rules are being modified and reapplied to the router. If previously you were able to configure routes for PPTP clients through that script then it was just lucky timing - that script doesn't specifically run on PPTP clients connecting.

The search for solutions on the Internet showed that this was not a happy man just me.

How can I solve this problem in another way? Need to add a route after raising VPN connection.

Ps For people who are not well versed in networking, pptp is more preferable than openvpn for such simple things.
 
Ps For people who are not well versed in networking, pptp is more preferable than openvpn for such simple things.

If you don't mind the fact that PPTP can be compromised quite easily these days with the various vulnerabilities of the protocol.

And when it comes to custom routing, OpenVPN is far more suited for it.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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