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!

Script for separating IP on Guest network and route through VPN

joachimmg

New Around Here
Hi.

I'm working on script, based on two tutorials that I've found on the merlin-wiki. My script is found here, including my VPN-client config file. The reason why I have re-written the script is mainly two things;
  1. easier customization and
  2. its following the concepts of JFFS-scripts based on events.
But I'm having some questions: in my script, I'm administrating a ip routing table for each VPN-client, e.g tun11 uses table 11, tun12 uses table 12 etc. Is this necessary, overkill or unwise? Would it be more efficient to put everything related to every VPN-clients in the suggested table 10 (as used here) even though there are not just one VPN client running, but up to five.

So... lets imagine that each OpenVPN connections is established in a sequence, from client 1-5, using tun11 - tun15: The problem I can see is when tun11 is established it gets a copy of the main table to it, but when tun12, tun13 etc gets established the previous tables wont be fully updated? But I'm not sure if it means anything as I don't know if tun11 needs (should have?) any information about tun12-15 in its table, such as tun15 will have info about all of its previous ones.

I can sometimes see that there is a "routing conflict" resulting a running client to exit, and I'm wondering if this could be related...
 

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