Recent content by Salt_Lamp

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

  1. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Scratch that. Finally managed to resolve the issue by modifying my script. Thanks everybody!
  2. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Still at a loss guys. At this point, I'm thinking of going back to the original scripts I was using, since at least with those everything behaved as it should as far which devices were on the VPN and which weren't. Any additional info is much appreciated.
  3. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Still having trouble here guys. I put the above script into jffs/scripts and input the code into my command line, but I'm still having problems. Whenever I start up the VPN client everything goes through it instead of only the devices I've specified. Could something be wrong with the script...
  4. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Alright, so I finally managed to access the command line and input the code. Unfortunately, whenever I turn on the VPN client all my devices go through it instead of only the ones I've specified. *sigh* This is getting tiring. Can anyone tell me what's wrong with this script? #!/bin/sh ip...
  5. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    How do I access the command line in my SSH session? I was just pasting the line directly into my session without the command line. Perhaps that accounted for the above error?
  6. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    I tried pasting it in my session, but all I got was an error. What now? Here's the error: "Error changing directory to chmod 755 /jffs/scripts/vpn-route-1.sh" Command 'cd "chmod 755 /jffs/scripts/vpn-route-1.sh"' failed with return code 2 and error message -sh: cd: line 53: can't cd to chmod...
  7. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Can anyone confirm that the script I provided is correct? I tried to modify it to account for multiple devices, but I'm not sure if I did it properly. Also, how do I run "chmod 755"?
  8. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    How do I run it? I've put the following script into jffs/scripts with the extension .sh #!/bin/sh ip route flush table 11 ip route del default table 11 ip route flush cache tun11_ip=$(ifconfig tun11 | grep 'inet addr:'| cut -d: -f2 | awk '{ print $1}') ip route add default via $tun11_ip...
  9. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Still need some help here guys. I'd like to resolve the rest of this issue ASAP, so any additional guidance would be much appreciated. Thanks.
  10. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Ok, I guess I'll have to follow up with PIA on that. Are their DNS servers better than OPEN DNS? I've heard that OPEN DNS logs your activity. Is that true? Anyway, I did the test and added your script, but now my VPN client won't turn on. I put the script in jffs/scripts. I'm not sure what...
  11. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    I'm using PIA, at the moment. I'm not really sure what their DNS servers are, actually. How would I go about finding that out? Also, if I change my router's local IP address does that effect DHCP? How do I resolve my router's IP with DHCP?
  12. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    I still don't understand what remote IP means, unfortunately. Is it necessary for this to work properly? Also, can you run me through how to configure DHCP again? I'm not sure which values it is I'm supposed to change. Do I change starting pool or ending pool, or both? I also tried to change...
  13. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Hmm, I see. I suppose there's no harm in giving it a shot, but I just have a few more random questions before I get into it, if you don't mind. Firstly, how would I add an additional device to your original script? Also, what does remote IP range mean, is it important? How do I configure that...
  14. S

    How to disconnect/reconnect from OPEN VPN Client using Batch File

    Thanks for the info. I think I see what you're suggesting, but is there any way at all to disconnect a specific device from the VPN without shutting it down entirely, or is this the best that can be done? Instead of messing around with batch files should I instead be looking at policy routing...
Top