Hello Guest, if you are reading this it means you have not registered yet. Please take a second, Click here to register, and in a few simple steps you will be able to enjoy our community and use our OpenViX support section.
Page 3 of 22 FirstFirst 1234513 ... LastLast
Results 31 to 45 of 318

Thread: OpenVPN Setup guide for most VPN,s

  1. #31
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    So if I can get it to rename .ovpn to .conf with _ replacing spaces it should work? I'll see what I can do.

    This is the line used to rename .ovpn to .conf
    Code:
    for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done
    Last edited by dsayers; 21-08-18 at 20:34.

  2. The Following User Says Thank You to dsayers For This Useful Post:

    liamkenyon (21-08-18)

  3. #32

    Title
    Junior Member
    Join Date
    Nov 2013
    Posts
    11
    Thanks
    5
    Thanked 5 Times in 4 Posts
    Quote Originally Posted by dsayers View Post
    So if I can get it to rename .ovpn to .conf with _ replacing spaces it should work? I'll see what I can do.

    This is the line used to rename .ovpn to .conf
    Code:
    for x in *.ovpn; do mv "$x" "${x%.ovpn}.conf"; done
    Yeah, after trying everything it all started working when replacing a space with a underscore for example UK London>UK London.conf is now UK_London>UK_London.conf
    Always lurking, never posting...

  4. The Following 2 Users Say Thank You to liamkenyon For This Useful Post:

    dsayers (21-08-18),Ford1 (22-08-18)

  5. #33

    Title
    Junior Member
    Join Date
    Nov 2013
    Posts
    11
    Thanks
    5
    Thanked 5 Times in 4 Posts
    Would something like this help?
    Code:
    for f in *\ *; do mv "$f" "${f// /_}"; done
    Not near a box to test.
    Always lurking, never posting...

  6. The Following User Says Thank You to liamkenyon For This Useful Post:

    dsayers (23-08-18)

  7. #34
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by liamkenyon View Post
    Would something like this help?
    Code:
    for f in *\ *; do mv "$f" "${f// /_}"; done
    Not near a box to test.
    Just been looking on my phone and found the same command https://superuser.com/a/300714

    I've tested it on mobile sh and it seems to work. I'll update repo tomorrow with that command before renaming to .conf

  8. The Following User Says Thank You to dsayers For This Useful Post:

    liamkenyon (23-08-18)

  9. #35
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Quote Originally Posted by liamkenyon View Post
    Would something like this help?
    Code:
    for f in *\ *; do mv "$f" "${f// /_}"; done
    Not near a box to test.
    Ok I have added that command can you retry the command on post 21 https://www.world-of-satellite.com/s...l=1#post473575

  10. The Following User Says Thank You to dsayers For This Useful Post:

    liamkenyon (24-08-18)

  11. #36

    Title
    Junior Member
    Join Date
    Nov 2013
    Posts
    11
    Thanks
    5
    Thanked 5 Times in 4 Posts
    Will test when I get home pal!
    Always lurking, never posting...

  12. #37

    Title
    Junior Member
    Join Date
    Nov 2013
    Posts
    11
    Thanks
    5
    Thanked 5 Times in 4 Posts
    PIA Script fully working pal well done!
    Always lurking, never posting...

  13. The Following User Says Thank You to liamkenyon For This Useful Post:

    dsayers (24-08-18)

  14. #38
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    Ok added to main script.

  15. The Following User Says Thank You to dsayers For This Useful Post:

    liamkenyon (24-08-18)

  16. #39

    Title
    Junior Member
    Join Date
    Nov 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    I am trying to work out from the scripts what files are needed where. The tut at the top of this is decent, but I'm struggling with the username/password part. I am using VPN unlimited. I have a single .ovpn file. It contains the VPN setting and ca/cert/private key sections. I have a device username and password. Where do I put these? What is the format of the password file?

    I've looked at the github dsayers is maintaining and cant see anything similar in vpnumlimited to help with downloading ovpn files for all servers, merely through their account portal the ability to generate a single file for a selected server.

    I have renamed the ovpn file and placed it in to the the /etc/openvpn folder I created. OpenVpn does start, but no network traffic is getting through. I guess this is because of the username/password but dont know how to get this in to OpenVPN. I cant see any logging to give me any clues so am in the dark a little. Where is the log file? Can anybody help witht he configuration of this vpn unlimited connection please?

  17. #40
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    open the client.conf and modify the line "auth-user-pass" so it reads "auth-user-pass auth.txt" (without the quotes)

    Now create a txt file called auth.txt and edit with notepad ++ add username and password in auth.txt and send it to etc/openvpn

  18. #41

    Title
    Junior Member
    Join Date
    Nov 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks for the help. I've done the auth.txt creation, added the line to the bottom of my client.conf. Both files live in /etc/openvpn
    root@osmini:/etc/openvpn# ls -l
    -rwxr-xr-x 1 root root 49 Aug 27 16:44 auth.txt
    -rw-r--r-- 1 root root 5508 Aug 27 16:47 client.conf
    The openvpn process starts, but the networking fails. If i press blue to Show Log its empty. Where would the logs be?

    The client.conf contains ca, cert and private key sections. Is that ok?

    i.e.
    ...
    <ca>
    -----BEGIN CERTIFICATE-----
    ...
    -----END CERTIFICATE-----
    </ca>
    <cert>

    -----BEGIN CERTIFICATE-----
    ...

  19. #42
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    In the client.conf at the top or under the user pass line add

    log /etc/openvpn/openvpn.log

    Next time you start vpn see if it generates a log file in etc/openvpn.

  20. #43

    Title
    Junior Member
    Join Date
    Nov 2010
    Posts
    5
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Update.

    UPDATE.

    I used the command line to run openvpn and see the output. Eveything appears to work ok, so it seems that the remote location I was hoping to connect to has an issue with me using the vpn. Will contact them for advice.

    Thanks very much again for your help and knowledge share
    Last edited by g_bloggs; 27-08-18 at 18:00. Reason: quoted wrongly

  21. #44
    dsayers's Avatar
    Title
    ViX Beta Tester
    Join Date
    Mar 2016
    Posts
    1,760
    Thanks
    473
    Thanked 607 Times in 433 Posts
    If using virgin I had to use Google dns to get vpn working as soon as I started openvpn I lost network connection. See here https://www.world-of-satellite.com/s...l=1#post462711

  22. #45

    Title
    Forum Supporter
    Donated Member
    Join Date
    Feb 2011
    Posts
    1
    Thanks
    9
    Thanked 0 Times in 0 Posts
    Anyone know how to add automatically the line "block-outside-dns" in to all .conf files with every change of the server?

Page 3 of 22 FirstFirst 1234513 ... LastLast

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
This website uses cookies
We use cookies to store session information to facilitate remembering your login information, to allow you to save website preferences, to personalise content and ads, to provide social media features and to analyse our traffic. We also share information about your use of our site with our social media, advertising and analytics partners.