Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!


how to set up openvpn? (Gullo's Hosting) (NAT)
New on LowEndTalk? Please Register and read our Community Rules.

All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.

how to set up openvpn? (Gullo's Hosting) (NAT)

th4n0sth4n0s Member

Hi,

I need some help setting up openvpn in Gullo's Hosting 2$ yearly VPS.

I am am following this article in their wiki.

https://hosting.gullo.me/plugin/support_manager/knowledgebase/view/6/nat-ipv4-how-to-set-up-openvpn/4/

Log

systemctl status

root@ham:~# systemctl status openvpn
● openvpn.service - OpenVPN service
   Loaded: loaded (/lib/systemd/system/openvpn.service; enabled; vendor preset: enabled)
   Active: active (exited) since Tue 2019-06-18 11:07:53 EDT; 1min 47s ago
 Main PID: 14830 (code=exited, status=0/SUCCESS)
   CGroup: /system.slice/openvpn.service

Jun 18 11:07:53 ham systemd[1]: Starting OpenVPN service...
Jun 18 11:07:53 ham systemd[1]: Started OpenVPN service.

I cannot connect from my pc

Tue Jun 18 20:44:42 2019 Unrecognized option or missing or extra parameter(s) in thanos(1).ovpn:17: block-outside-dns (2.4.7)
Tue Jun 18 20:44:42 2019 OpenVPN 2.4.7 [git:makepkg/2b8aec62d5db2c17+] x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [LZ4] [EPOLL] [PKCS11] [MH/PKTINFO] [AEAD] built on Feb 19 2019
Tue Jun 18 20:44:42 2019 library versions: OpenSSL 1.1.1c  28 May 2019, LZO 2.10
Tue Jun 18 20:44:42 2019 Outgoing Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Jun 18 20:44:42 2019 Outgoing Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Jun 18 20:44:42 2019 Incoming Control Channel Encryption: Cipher 'AES-256-CTR' initialized with 256 bit key
Tue Jun 18 20:44:42 2019 Incoming Control Channel Encryption: Using 256 bit message hash 'SHA256' for HMAC authentication
Tue Jun 18 20:44:42 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]192.99.148.130:23718
Tue Jun 18 20:44:42 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Tue Jun 18 20:44:42 2019 UDP link local: (not bound)
Tue Jun 18 20:44:42 2019 UDP link remote: [AF_INET]192.99.148.130:23718
Tue Jun 18 20:45:42 2019 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Tue Jun 18 20:45:42 2019 TLS Error: TLS handshake failed
Tue Jun 18 20:45:42 2019 SIGUSR1[soft,tls-error] received, process restarting
Tue Jun 18 20:45:42 2019 Restart pause, 5 second(s)
Tue Jun 18 20:45:47 2019 TCP/UDP: Preserving recently used remote address: [AF_INET]192.99.148.130:23718
Tue Jun 18 20:45:47 2019 Socket Buffers: R=[212992->212992] S=[212992->212992]
Tue Jun 18 20:45:47 2019 UDP link local: (not bound)
Tue Jun 18 20:45:47 2019 UDP link remote: [AF_INET]192.99.148.130:23718


I obtained my public from calculator proved in wiki.this is my info:

Gullo's Hosting


Your Local IP
10.10.20.237


Your External IP
192.99.148.130


Port Range
23700 to 23719
SSH Port: 23720


SSH Command
ssh [email protected] -p 23720

what am i doing wrong?

any help is very appreciated.

Comments

  • NeoonNeoon Community Contributor, Veteran
    edited June 2019

    You do just change the specified port in the openvpn configuration to the one that you can use.
    Just take one of these ports.

  • skorousskorous Member
    edited June 2019

    th4n0s said: UDP link remote: [AF_INET]192.99.148.130:23718

    If I'm reading that properly he did. Perhaps an os-level firewall?

    EDIT: Duh, that's his PC side.

  • th4n0sth4n0s Member

    @Neoon said:
    You do just change the specified port in the openvpn configuration to the one that you can use.
    Just take one of these ports.

    i did. you can see it in the log.

    still cannot connect.

  • th4n0s said: you can see it in the log.

    That log is your PC side though. We don't technically know you fixed it in the server side openvpn config file.

  • sayem314sayem314 Member
    edited June 2019

    Re-install your OS and run these commands:

    curl -O https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh && chmod +x openvpn-install.sh
    
    AUTO_INSTALL=y PORT_CHOICE=2 PORT=23701 ./openvpn-install.sh
    
    Thanked by 1captainwasabi
  • NeoonNeoon Community Contributor, Veteran
    edited June 2019

    Well, install nginx, change the port and check if you can reach dat.
    If you can, its a openvpn issue if not is a general issue with the forwarded ports or your pc is behind a firewall which blocks it.

    Tried a different computer, on a different network?
    Or just a different computer?

  • th4n0sth4n0s Member

    @skorous said:

    th4n0s said: you can see it in the log.

    That log is your PC side though. We don't technically know you fixed it in the server side openvpn config file.

    https://pastebin.com/1b4wx7mp

  • @th4n0s said:

    @skorous said:

    th4n0s said: you can see it in the log.

    That log is your PC side though. We don't technically know you fixed it in the server side openvpn config file.

    https://pastebin.com/1b4wx7mp

    Please don't use root

  • th4n0sth4n0s Member
    edited June 2019

    @sayem314 said:
    Re-install your OS and run these commands:

    curl -O https://raw.githubusercontent.com/Angristan/openvpn-install/master/openvpn-install.sh && chmod +x openvpn-install.sh
    
    AUTO_INSTALL=y PORT_CHOICE=2 PORT=23701 ./openvpn-install.sh
    

    it took ipv6 as default.useless for me.thanks for the suggestion though. :smile: .I am always selecting port within my assigned range.

    upon selecting 'TCP' this time instead of UDP i am now getting connection refused error.

Sign In or Register to comment.