Quote:
Code:
sudo hma-openvpn.sh Code:
sudo ./hma-openvpn.sh Code:
cd /home/yufi/Desktop |
Quote:
Here you have the print from the terminal: yufi@yufi-K53SM:~/Desktop$ ls -l total 4 drwx------ 2 yufi yufi 4096 maj 15 2018 hma-linux yufi@yufi-K53SM:~/Desktop$ cd hma-linux yufi@yufi-K53SM:~/Desktop/hma-linux$ ls -l total 48 -rw-rw-r-- 1 yufi yufi 10298 maj 15 2018 hma-openvpn.sh -rw-rw-r-- 1 yufi yufi 17536 maj 15 2018 hma-vpn.sh yufi@yufi-K53SM:~/Desktop/hma-linux$ sudo ./hma-openvpn.sh sudo: ./hma-openvpn.sh: command not found yufi@yufi-K53SM:~/Desktop/hma-linux$ |
Quote:
Code:
chmod +x ./hma-openvpn.sh Code:
sudo /bin/bash /home/yufi/Desktop/hma-linux/hma-openvpn.sh |
*yawn* Sorry, just woke up ;-), had a cup of coffee and am now up and running your suggestions.
First option done: chmod +x ./hma-openvpn.sh sudo ./hma-openvpn.sh The first line of command didn't return anything to see. The second line started the hma script and it stops with the last line "Initialization Sequence Completed" and seems to be waiting with a blinking marker. - Getting .ovpn template... - Current IP: 83.251.225.44 - Starting OpenVPN connection to: Sweden, Stockholm, Nacka - se.hma.rocks : 553 (udp) ... (Please enter your HMA! Pro VPN account username and password when asked) Wed Jan 29 09:45:21 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019 Wed Jan 29 09:45:21 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08 Enter Auth Username: peterafzelius Enter Auth Password: *************** Wed Jan 29 09:45:44 2020 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead. Wed Jan 29 09:45:44 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]37.46.121.240:553 Wed Jan 29 09:45:44 2020 UDP link local: (not bound) Wed Jan 29 09:45:44 2020 UDP link remote: [AF_INET]37.46.121.240:553 Wed Jan 29 09:45:44 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Wed Jan 29 09:45:44 2020 VERIFY OK: depth=1, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=hidemyass.com, emailAddress=info@privax.com Wed Jan 29 09:45:44 2020 VERIFY OK: nsCertType=SERVER Wed Jan 29 09:45:44 2020 VERIFY OK: depth=0, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=server, emailAddress=info@privax.com Wed Jan 29 09:45:44 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1590', remote='link-mtu 1558' Wed Jan 29 09:45:44 2020 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500' Wed Jan 29 09:45:44 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA Wed Jan 29 09:45:44 2020 [server] Peer Connection Initiated with [AF_INET]37.46.121.240:553 Wed Jan 29 09:45:45 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks Wed Jan 29 09:45:45 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:13 is ignored by previous <connection> blocks Wed Jan 29 09:45:45 2020 Data Channel: using negotiated cipher 'AES-256-GCM' Wed Jan 29 09:45:45 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Wed Jan 29 09:45:45 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Wed Jan 29 09:45:45 2020 TUN/TAP device tun0 opened Wed Jan 29 09:45:45 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1 Wed Jan 29 09:45:45 2020 /sbin/ip link set dev tun0 up mtu 1500 Wed Jan 29 09:45:45 2020 /sbin/ip addr add dev tun0 100.120.76.208/21 broadcast 100.120.79.255 Wed Jan 29 09:45:45 2020 /sbin/ip -6 addr add 2001:db8:123::2/64 dev tun0 Wed Jan 29 09:45:45 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0 Wed Jan 29 09:45:45 2020 Initialization Sequence Completed ---------------------------------- This I have done several times and I eventually need to kill the process as it seems to wait indefinitely. I break it with ctrl+c and below you have the result of that + adding the last line from previous output above. In addition, the internet connection is broken during and after this try: Wed Jan 29 09:45:45 2020 Initialization Sequence Completed ^CWed Jan 29 09:54:52 2020 event_wait : Interrupted system call (code=4) Wed Jan 29 09:54:52 2020 SIGTERM received, sending exit notification to peer Wed Jan 29 09:54:54 2020 delete_route_ipv6(2000::/3) Wed Jan 29 09:54:54 2020 Closing TUN/TAP interface Wed Jan 29 09:54:54 2020 /sbin/ip addr del dev tun0 100.120.76.208/21 Wed Jan 29 09:54:54 2020 /sbin/ip -6 addr del 2001:db8:123::2/64 dev tun0 Wed Jan 29 09:54:54 2020 SIGTERM[soft,exit-with-notification] received, process exiting Exiting script... yufi@yufi-K53SM:~/Desktop/hma-linux$ Second option done with output as follows and I'm doing it now with the broken internet connection. If it turns out the same, I'll reboot and try it again and give you the ouput on that aswell: - Getting .ovpn template... - Current IP: 83.251.225.44 - Starting OpenVPN connection to: Sweden, Stockholm, Nacka - se.hma.rocks : 553 (udp) ... (Please enter your HMA! Pro VPN account username and password when asked) Wed Jan 29 09:58:00 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019 Wed Jan 29 09:58:00 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08 Enter Auth Username: peterafzelius Enter Auth Password: *************** Wed Jan 29 09:58:23 2020 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead. Wed Jan 29 09:58:23 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]31.3.152.98:553 Wed Jan 29 09:58:23 2020 UDP link local: (not bound) Wed Jan 29 09:58:23 2020 UDP link remote: [AF_INET]31.3.152.98:553 Wed Jan 29 09:58:23 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Wed Jan 29 09:58:23 2020 VERIFY OK: depth=1, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=hidemyass.com, emailAddress=info@privax.com Wed Jan 29 09:58:23 2020 VERIFY OK: nsCertType=SERVER Wed Jan 29 09:58:23 2020 VERIFY OK: depth=0, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=server, emailAddress=info@privax.com Wed Jan 29 09:58:23 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1590', remote='link-mtu 1558' Wed Jan 29 09:58:23 2020 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500' Wed Jan 29 09:58:23 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA Wed Jan 29 09:58:23 2020 [server] Peer Connection Initiated with [AF_INET]31.3.152.98:553 Wed Jan 29 09:58:25 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks Wed Jan 29 09:58:25 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:13 is ignored by previous <connection> blocks Wed Jan 29 09:58:25 2020 Data Channel: using negotiated cipher 'AES-256-GCM' Wed Jan 29 09:58:25 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Wed Jan 29 09:58:25 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Wed Jan 29 09:58:25 2020 TUN/TAP device tun0 opened Wed Jan 29 09:58:25 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1 Wed Jan 29 09:58:25 2020 /sbin/ip link set dev tun0 up mtu 1500 Wed Jan 29 09:58:25 2020 /sbin/ip addr add dev tun0 100.120.5.7/21 broadcast 100.120.7.255 Wed Jan 29 09:58:25 2020 /sbin/ip -6 addr add 2001:db8:123::2/64 dev tun0 Wed Jan 29 09:58:25 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0 Wed Jan 29 09:58:25 2020 Initialization Sequence Completed It could not proceed, same procedure as last time. Turns out though I didn't have to reboot this time as the connection got up again when I killed the script the first time so I'll run with that. Here's the result of the second option: - Getting .ovpn template... - Current IP: 83.251.225.44 - Starting OpenVPN connection to: Sweden, Stockholm, Nacka - se.hma.rocks : 553 (udp) ... (Please enter your HMA! Pro VPN account username and password when asked) Wed Jan 29 10:09:19 2020 OpenVPN 2.4.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on May 14 2019 Wed Jan 29 10:09:19 2020 library versions: OpenSSL 1.1.1 11 Sep 2018, LZO 2.08 Enter Auth Username: peterafzelius Enter Auth Password: *************** Wed Jan 29 10:09:48 2020 WARNING: --ns-cert-type is DEPRECATED. Use --remote-cert-tls instead. Wed Jan 29 10:09:48 2020 TCP/UDP: Preserving recently used remote address: [AF_INET]128.127.105.164:553 Wed Jan 29 10:09:48 2020 UDP link local: (not bound) Wed Jan 29 10:09:48 2020 UDP link remote: [AF_INET]128.127.105.164:553 Wed Jan 29 10:09:48 2020 WARNING: this configuration may cache passwords in memory -- use the auth-nocache option to prevent this Wed Jan 29 10:09:48 2020 VERIFY OK: depth=1, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=hidemyass.com, emailAddress=info@privax.com Wed Jan 29 10:09:48 2020 VERIFY OK: nsCertType=SERVER Wed Jan 29 10:09:48 2020 VERIFY OK: depth=0, C=UK, ST=London, L=London, O=Privax Ltd, OU=HMA Pro VPN, CN=server, emailAddress=info@privax.com Wed Jan 29 10:09:48 2020 WARNING: 'link-mtu' is used inconsistently, local='link-mtu 1590', remote='link-mtu 1558' Wed Jan 29 10:09:48 2020 WARNING: 'tun-mtu' is used inconsistently, local='tun-mtu 1532', remote='tun-mtu 1500' Wed Jan 29 10:09:48 2020 Control Channel: TLSv1.2, cipher TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384, 2048 bit RSA Wed Jan 29 10:09:48 2020 [server] Peer Connection Initiated with [AF_INET]128.127.105.164:553 Wed Jan 29 10:09:49 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:5 is ignored by previous <connection> blocks Wed Jan 29 10:09:49 2020 Option 'explicit-exit-notify' in [PUSH-OPTIONS]:13 is ignored by previous <connection> blocks Wed Jan 29 10:09:49 2020 Data Channel: using negotiated cipher 'AES-256-GCM' Wed Jan 29 10:09:49 2020 Outgoing Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Wed Jan 29 10:09:49 2020 Incoming Data Channel: Cipher 'AES-256-GCM' initialized with 256 bit key Wed Jan 29 10:09:49 2020 TUN/TAP device tun0 opened Wed Jan 29 10:09:49 2020 do_ifconfig, tt->did_ifconfig_ipv6_setup=1 Wed Jan 29 10:09:49 2020 /sbin/ip link set dev tun0 up mtu 1500 Wed Jan 29 10:09:49 2020 /sbin/ip addr add dev tun0 100.120.125.109/21 broadcast 100.120.127.255 Wed Jan 29 10:09:49 2020 /sbin/ip -6 addr add 2001:db8:123::2/64 dev tun0 Wed Jan 29 10:09:49 2020 add_route_ipv6(2000::/3 -> 2001:db8:123::1 metric -1) dev tun0 Wed Jan 29 10:09:49 2020 Initialization Sequence Completed I'll wait for it as you can see from the time stamp, I'll wait for +10 minutes before I do something, below is the result of me again killing the script. The internet connection is again broken: Wed Jan 29 10:09:49 2020 Initialization Sequence Completed ^CWed Jan 29 10:20:04 2020 event_wait : Interrupted system call (code=4) Wed Jan 29 10:20:04 2020 SIGTERM received, sending exit notification to peer Wed Jan 29 10:20:06 2020 delete_route_ipv6(2000::/3) Wed Jan 29 10:20:06 2020 Closing TUN/TAP interface Wed Jan 29 10:20:06 2020 /sbin/ip addr del dev tun0 100.120.125.109/21 Wed Jan 29 10:20:06 2020 /sbin/ip -6 addr del 2001:db8:123::2/64 dev tun0 Wed Jan 29 10:20:06 2020 SIGTERM[soft,exit-with-notification] received, process exiting Exiting script... yufi@yufi-K53SM:~$ The connection got up instantly right after I ended the script as I had a youtube video I tried earlier to see if the connection was up or not. I might add some additional information to you to clear up some probable confusion you may have of what and how I installed my system Previously I downloaded a version of Linux as an ISO file, burned it to a cd-rom and installed my computer using the oem version. I did that with the mindset of a Windows user as I saw that as my only option to have it installed on the computer. I got a tip about which version I should download and try again so I did that. Turns out it was the exact same file but I used that instead of my previous downloads just for the spite of it ;-). This time I made a bootable USB drive instead since I was out of cd's and it worked great. This time I stood with the same option again. It looked exactly the same as with the cd but instead I chose the "Start Linux Mint" option to see if there was something more to it, and of course it did. On my desktop there was a mounted cd with the text "Install Linux Mint" so I went with that. I followed the instructions during install and went on to activate all the extra security options I could except the overwriting of free disk space as I didn't know what it does and if it has any effect on my computers performance. I ended up with a fresh install with one user "yufi" and I didn't fiddle with any permissions what so ever. After that I rebooted the computer and went into the BIOS and maximized the security even there. If anyone lays their hand on my computer without me knowing about it they will have a world of work to try and penetrate any information on it. I think they will fail miserably and that is exactly how I want it to be. So the last thing I want up is the VPN and then I'm all set and done! I didn't expect it to be so difficult as it has been but I'm confident that we'll solve that too :-D |
I haven't used HMA, but it looks to me just from that output and description that you are getting the VPN running. Is there some output that you expected to see after "Initialization Sequence Completed"? You can easily check whether it works by opening whatismyip.com and checking if your IP is 83.251.225.44.
|
Well, I don't know really but I suspect that the script should finish and that I'd have some kind of icon on the bar telling me I'm connected to the VPN. The internet cuts off when I run the script and it doesn't return and the script has not finished, it just sit there and wait for something and eventually I have to kill it in order to get my connection back.
|
Quote:
|
Quote:
I'll get back to you on how it goes. Thanks for your effort on this, very much appreciated. I can fairly say that we've done what we could on this. We'll see what happens on their part! Cheers! |
Sorry, I'll make it easier for you to follow this. I haven't thought about quotes until now! So I re-edited it all.
Ok, I did not get much help this from the HMA-support this time. I did unload a boat load of info from the conversations here with all the outputs so he could see if there was something he missed or I missed, he said: Quote:
The command he gave me that supposedly should work gives below output: Quote:
chmod +x ./hma-openvpn.sh sudo ./hma-openvpn.sh Explain to me what the chmod-line did because that made the sudo-line work. I'd like to understand the workings here :-) Then he said: Quote:
Quote:
I think this last command is the key to make it all work. What is missing here, I don't understand? Do I have to create a sudo user and log in with it like the support says? Thanks guys, I know you do the best you can, sorry if I repeat myself like a parrot on above information. |
chmod +x [filename] makes a file executable (in this case, the VPN script). You shouldn't have to do it multiple times on the same file, though...
It looks like you're in the right directory - check if hma-openvpn.sh is still in there: Code:
if [ -f /home/yufi/Desktop/hma-linux/hma-openvpn.sh ]; then Code:
chmod +x hma-openvpn.sh However, there is a larger issue here: the tech support person appears to be pranking you, as that DNS server is for a service called "CleanBrowsing Family Filter" that blocks VPNs/proxies and adult content (also malware and phishing sites, which probably wouldn't be as much of an issue). |
Ok, now I understand a bit of that. No I don't have to run the chmod again, the command works and the script fires up.
Quote:
I told him about what you said so we'll see what he comes up with ;-) |
Quote:
According to the HMA website, they use OpenDNS servers. I think their advice could actually help with the exception of the DNS server; maybe try 208.67.222.222 (OpenDNS) instead. Admittedly, this is getting into territory with which I'm quite unfamiliar. |
This was the reply i got:
Quote:
Quote:
|
I have picture here, maybe something's missing?
/home/yufi/Pictures/yufi account permissions.png Can I add pics here in the forum? |
It appears that there is a permission problem from my part, let's find out why it is so and how to fix it. I didn't create any other users during install of my OS that I can think of, yufi is the only one I know of. So I figure the others are hidden from view.
|
All times are GMT -5. The time now is 11:47 PM. |