Howdy, Stranger!

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


Help with openvpn
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.

Help with openvpn

enitan092enitan092 Member
edited March 2014 in Help

Hello guys

i installed openvpn on my vps

and it seems port 1194 is blocked

how can i open it

«1

Comments

  • it runs ubuntu

  • netomxnetomx Moderator, Veteran

    Blocked where?

  • blocked by what? do netstat and find out, then stop the according service.

  • @netomx said:
    Blocked where?

    i set up a vpn based on nyr openvpn ubuntu setup on lowendtalk

    all works fine except am unable to connect because it does not connect to port 1194

  • netomxnetomx Moderator, Veteran

    @enitan092 said:

    all works fine except am unable to connect because it does not connect to port 1194

    yuo said blocked.. blocked where? vps? your end?

    try to change the port to 443, and try again

  • @infected said:
    blocked by what? do netstat and find out, then stop the according service.

    i got this after running netstat -a

    Active Internet connections (servers and established)
    Proto Recv-Q Send-Q Local Address Foreign Address State
    tcp 0 0 :ssh *: LISTEN
    tcp 0 0 localhost.localdom:smtp : LISTEN
    tcp 0 0 localhost.lo:submission : LISTEN
    tcp 0 0 :www *: LISTEN
    tcp 0 180 koko:ssh 196.46.246.51:4331 ESTABLISHED
    tcp6 0 0 [::]:ssh [::]:* LISTEN
    Active UNIX domain sockets (servers and established)
    Proto RefCnt Flags Type State I-Node Path
    unix 6 [ ] DGRAM 11868585 /dev/log
    unix 2 [ ACC ] STREAM LISTENING 11868606 /var/run/saslauthd/mux
    unix 2 [ ACC ] STREAM LISTENING 11876695 /var/run/sendmail/mta/smcontrol
    unix 2 [ ] DGRAM 12050662
    unix 2 [ ] DGRAM 11868868
    unix 2 [ ] DGRAM 11868833
    unix 2 [ ] DGRAM 11868605

  • @netomx said:
    try to change the port to 443, and try again

    i think from the vps

  • netomxnetomx Moderator, Veteran

    seems that openvpn is not running

    try:

    openvpn --config /etc/openvpn/1194-udp.conf

  • @netomx said:
    seems that openvpn is not running

    try:

    openvpn --config /etc/openvpn/1194-udp.conf

    i got this on ssh

    Options error: In [CMD-LINE]:1: Error opening configuration file: /etc/openvpn/1194-udp.conf
    Use --help for more information.

  • netomxnetomx Moderator, Veteran

    Oh wait, Nyr puts the file in other directory

    try:

    find / -name "*.conf" to locate the config file

  • enitan092enitan092 Member
    edited March 2014

    @netomx said:
    Oh wait, Nyr puts the file in other directory

    try:

    find / -name "*.conf" to locate the config file

    i got the following with no refrence to 1194--udp.conf

    /etc/warnquota.conf

    /etc/ca-certificates.conf

    /etc/fonts/conf.avail/10-sub-pixel-rgb.conf

    /etc/fonts/conf.avail/45-latin.conf

    /etc/fonts/conf.avail/50-user.conf

    /etc/fonts/conf.avail/69-unifont.conf

    /etc/fonts/conf.avail/20-fix-globaladvance.conf

    /etc/fonts/conf.avail/90-synthetic.conf

    /etc/fonts/conf.avail/25-unhint-nonlatin.conf

    /etc/fonts/conf.avail/51-local.conf

    /etc/fonts/conf.avail/10-no-sub-pixel.conf

    /etc/fonts/conf.avail/30-metric-aliases.conf

    /etc/fonts/conf.avail/10-sub-pixel-bgr.conf

    /etc/fonts/conf.avail/60-latin.conf

    /etc/fonts/conf.avail/10-sub-pixel-vrgb.conf

    /etc/fonts/conf.avail/30-urw-aliases.conf

    /etc/fonts/conf.avail/10-autohint.conf

    /etc/fonts/conf.avail/10-unhinted.conf

    /etc/fonts/conf.avail/65-fonts-persian.conf

    /etc/fonts/conf.avail/70-force-bitmaps.conf

    /etc/fonts/conf.avail/65-nonlatin.conf

    /etc/fonts/conf.avail/20-unhint-small-vera.conf

    /etc/fonts/conf.avail/10-sub-pixel-vbgr.conf

    /etc/fonts/conf.avail/70-no-bitmaps.conf

    /etc/fonts/conf.avail/65-khmer.conf

    /etc/fonts/conf.avail/70-yes-bitmaps.conf

    /etc/fonts/conf.avail/80-delicious.conf

    /etc/fonts/conf.avail/49-sansserif.conf

    /etc/fonts/conf.avail/40-nonlatin.conf

    /etc/fonts/conf.d/45-latin.conf

    /etc/fonts/conf.d/50-user.conf

    /etc/fonts/conf.d/69-unifont.conf

    /etc/fonts/conf.d/20-fix-globaladvance.conf

    /etc/fonts/conf.d/90-synthetic.conf

    /etc/fonts/conf.d/51-local.conf

    /etc/fonts/conf.d/30-metric-aliases.conf

    /etc/fonts/conf.d/60-latin.conf

    /etc/fonts/conf.d/30-urw-aliases.conf

    /etc/fonts/conf.d/65-fonts-persian.conf

    /etc/fonts/conf.d/30-defoma.conf

    /etc/fonts/conf.d/65-nonlatin.conf

    /etc/fonts/conf.d/20-unhint-small-vera.conf

    /etc/fonts/conf.d/70-no-bitmaps.conf

    /etc/fonts/conf.d/80-delicious.conf

    /etc/fonts/conf.d/49-sansserif.conf

    /etc/fonts/conf.d/40-nonlatin.conf

    /etc/fonts/fonts.conf

    /etc/mail/sendmail.conf

    /etc/logrotate.conf

    /etc/udev/links.conf

    /etc/udev/udev.conf

    /etc/modprobe.conf

    /etc/ld.so.conf.d/x86_64-linux-gnu.conf

    /etc/ld.so.conf.d/libc.conf

    /etc/initramfs-tools/update-initramfs.conf

    /etc/initramfs-tools/initramfs.conf

    /etc/cracklib/cracklib.conf

    /etc/dhcp/dhclient.conf

    /etc/mke2fs.conf

    /etc/snmp/snmp.conf

    /etc/samba/smb.conf

    /etc/deluser.conf

    /etc/resolv.conf

    /etc/nsswitch.conf

    /etc/mtools.conf

    /etc/gai.conf

    /etc/debconf.conf

    /etc/adduser.conf

    /etc/wide-dhcpv6/dhcp6c.conf

    /etc/xinetd.conf

    /etc/insserv.conf

    /etc/apache2/ports.conf

    /etc/apache2/mods-enabled/negotiation.conf

    /etc/apache2/mods-enabled/setenvif.conf

    /etc/apache2/mods-enabled/dir.conf

    /etc/apache2/mods-enabled/mime.conf

    /etc/apache2/mods-enabled/deflate.conf

    /etc/apache2/mods-enabled/autoindex.conf

    /etc/apache2/mods-enabled/alias.conf

    /etc/apache2/mods-enabled/reqtimeout.conf

    /etc/apache2/mods-enabled/status.conf

    /etc/apache2/mods-available/info.conf

    /etc/apache2/mods-available/negotiation.conf

    /etc/apache2/mods-available/proxy_balancer.conf

    /etc/apache2/mods-available/setenvif.conf

    /etc/apache2/mods-available/dir.conf

    /etc/apache2/mods-available/ldap.conf

    /etc/apache2/mods-available/mime.conf

    /etc/apache2/mods-available/dav_fs.conf

    /etc/apache2/mods-available/deflate.conf

    /etc/apache2/mods-available/autoindex.conf

    /etc/apache2/mods-available/mem_cache.conf

    /etc/apache2/mods-available/alias.conf

    /etc/apache2/mods-available/disk_cache.conf

    /etc/apache2/mods-available/cgid.conf

    /etc/apache2/mods-available/mime_magic.conf

    /etc/apache2/mods-available/proxy.conf

    /etc/apache2/mods-available/proxy_ftp.conf

    /etc/apache2/mods-available/reqtimeout.conf

    /etc/apache2/mods-available/actions.conf

    /etc/apache2/mods-available/ssl.conf

    /etc/apache2/mods-available/status.conf

    /etc/apache2/mods-available/userdir.conf

    /etc/apache2/httpd.conf

    /etc/apache2/apache2.conf

    /etc/bind/named.conf

    /etc/host.conf

    /etc/ucf.conf

    /etc/openvpn/server.conf

    /etc/security/namespace.conf

    /etc/security/time.conf

    /etc/security/limits.conf

    /etc/security/pam_env.conf

    /etc/security/access.conf

    /etc/security/group.conf

    /etc/security/sepermit.conf

    /etc/syslog.conf

    /etc/sensors3.conf

    /etc/ld.so.conf

    /etc/sysctl.conf

    /etc/updatedb.conf

    /etc/pam.conf

    /etc/ldap/ldap.conf

    /etc/modprobe.d/fbdev-blacklist.conf

    /etc/modprobe.d/blacklist.conf

    /etc/modprobe.d/aliases.conf

    /usr/lib/sasl2/Sendmail.conf

    /usr/lib/sasl2/saslpasswd.conf

    /usr/share/samba/smb.conf

    /usr/share/base-files/nsswitch.conf

    /usr/share/adduser/adduser.conf

    /usr/share/debconf/debconf.conf

    /usr/share/doc/apt-utils/examples/apt-ftparchive.conf
    /usr/share/doc/procps/examples/sysctl.conf

    /usr/share/doc/rsync/examples/rsyncd.conf

    /usr/share/doc/apt/examples/apt.conf

    /usr/share/doc/sudo/sample.syslog.conf

    /usr/share/doc/adduser/examples/adduser.local.conf.examples/adduser.conf

    /usr/share/doc/adduser/examples/adduser.local.conf

    /usr/share/doc/mtools/examples/mtools.conf

    /usr/share/doc/openvpn/examples/sample-config-files/static-home.conf

    /usr/share/doc/openvpn/examples/sample-config-files/tls-home.conf

    /usr/share/doc/openvpn/examples/sample-config-files/server.conf

    /usr/share/doc/openvpn/examples/sample-config-files/client.conf

    /usr/share/doc/openvpn/examples/sample-config-files/static-office.conf

    /usr/share/doc/openvpn/examples/sample-config-files/tls-office.conf

    /usr/share/doc/libcups2/examples/client.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-dav.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-userdir.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-autoindex.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-manual.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-mpm.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-default.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-info.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-vhosts.conf

    /usr/share/doc/apache2.2-common/examples/apache2/extra/httpd-multilang-errordoc.conf

    /usr/share/doc/fetchmail/contrib/gotmail.conf

    /usr/share/doc/quota/warnquota.conf

    /var/lib/ucf/cache/:etc:samba:smb.conf

  • netomxnetomx Moderator, Veteran

    Use

    openvpn --config /etc/openvpn/server.conf

  • @netomx said:
    Use

    openvpn --config /etc/openvpn/server.conf

    i got this now

    Wed Mar 26 19:08:58 2014 OpenVPN 2.1.3 x86_64-pc-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [MH] [PF_INET6] [eurephia] built on Jun 4 2013
    Wed Mar 26 19:08:58 2014 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
    Wed Mar 26 19:08:58 2014 Cannot open dh2048.pem for DH parameters: error:02001002:system library:fopen:No such file or directory: error:2006D080:BIO routines:BIO_new_file:no such file
    Wed Mar 26 19:08:58 2014 Exiting

  • netomxnetomx Moderator, Veteran

    @enitan092 said:

    try to run the installer again

  • am thinking of reinstalling now

  • @netomx said:
    try to run the installer again

    now i keep getting

    TUN/TAP is not available

    after reinstalling and runing./openvpn-install.sh

  • enitan092 said: TUN/TAP is not available

    ask your provider to enable it

    Thanked by 1ErawanArifNugroho
  • After having tun/tap enabled again, try to add the complete location in the openvpn server.conf for example :

    /etc/openvpn/dh2048.pem
    
  • @ftpit said:

    ok
    thanks

  • @ErawanArifNugroho said:
    After having tun/tap enabled again, try to add the complete location in the openvpn server.conf for example :

    > /etc/openvpn/dh2048.pem
    > 

    i open the server.conf but i dont know which line to add it to

  • Sorry, maybe this is the example if you placed your dh1024.pem in the /etc/openvpn

    dh /etc/openvpn/dh1024.pem
    
  • @ErawanArifNugroho said:
    Sorry, maybe this is the example if you placed your dh1024.pem in the /etc/openvpn

    > dh /etc/openvpn/dh1024.pem
    > 

    not found

  • @enitan092 said:

    can i send you the details to help with

  • @ErawanArifNugroho

    can i send you the details to help with

  • edited March 2014

    Sure, just pm me your openvpn config, and I will try to help you with it :)

  • @ErawanArifNugroho said:
    Sure, just pm me your openvpn config, and I will try to help you with it :)

    already sent you the pm

  • @Nyr
    i need help with this

  • @Nyr
    i can not start openvpn because of the server.conf and i dont know what to do

  • NyrNyr Community Contributor, Veteran

    @enitan092 said:
    Nyr
    i can not start openvpn because of the server.conf and i dont know what to do

    I only provide support for clean installs of the script. If you want to use any kind of custom configuration, other members can maybe help you. If you installed OpenVPN previously to using my script, try it on a clean system and it will probably work.

    Thanked by 1netomx
  • @Nyr said:
    I only provide support for clean installs of the script. If you want to use any kind of custom configuration, other members can maybe help you. If you installed OpenVPN previously to using my script, try it on a clean system and it will probably work.

    i used yours on a clean installation

Sign In or Register to comment.