+ Post New Thread
Results 1 to 10 of 10
*nix Thread, openvpn problem in Technical; have set up openvpn many times and never had an issue, but on this latest install, I keep getting connection ...
  1. #1

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200

    openvpn problem

    have set up openvpn many times and never had an issue, but on this latest install, I keep getting connection refused on port 1194, even locally.

    The conf is fine, and openvpn starts no problem, no error messages or anything anywhere.

    Have I forgotton something stupid?

  2. #2
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    firewall (iptables) on the box?

  3. #3

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Its installed but I dont use it. Every other service works fine. Im wondering if its worth re-emerging openvpn. Will all my keys still work if i re-install?

  4. #4


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    Before re-emerging it, check iptables -L and see if you can telnet to the port locally.

  5. #5

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Code:
    oasis ~ # iptables -L 
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    ACCEPT     all  --  anywhere             anywhere            
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    ACCEPT     all  --  anywhere             anywhere            
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination
    cant telnet locally and nmap doesnt list it as open

  6. #6
    kesomir's Avatar
    Join Date
    Mar 2008
    Location
    London
    Posts
    288
    Thank Post
    15
    Thanked 28 Times in 23 Posts
    Rep Power
    18
    are you sure it's running?

    ps aux | grep openvpn

    and nothing strange in the logfiles?

    - I don't do gentoo, but purge and reinstall if all else fails? - I don't know how long an install takes - if you're using binaries or building.

  7. #7

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    Interesting...

    Code:
    oasis ~ # /etc/init.d/openvpn start
     * WARNING:  openvpn has already been started.
    oasis ~ # rc-status
    Runlevel: default
     dhcpd                   stopped  
     local                   started  
     mysql                   started  
     net.eth0                started  
     netmount                started  
     ntpd                    started  
     openvpn                 started  
     proftpd                 started  
     samba                   started  
     sshd                    started  
     syslog-ng               started  
     vixie-cron              started  
     webmin                  started  
     xinetd                  started  
    oasis ~ # ps x | grep openvpn
    16037 pts/0    S+     0:00 grep --colour=auto openvpn
    oasis ~ #

  8. #8


    Join Date
    Feb 2007
    Location
    Northamptonshire
    Posts
    4,692
    Thank Post
    352
    Thanked 797 Times in 716 Posts
    Rep Power
    347
    I wonder if its randomly listening on a different made up interface...

    Check the conf?

  9. #9
    ahuxham's Avatar
    Join Date
    Apr 2008
    Posts
    1,122
    Thank Post
    76
    Thanked 138 Times in 109 Posts
    Rep Power
    31
    Quote Originally Posted by kmount View Post
    I wonder if its randomly listening on a different made up interface...

    Check the conf?
    Doesn't explain why its not showing from the ps aux | grep openvpn, when it say's its infact running.

  10. #10

    RabbieBurns's Avatar
    Join Date
    Apr 2008
    Location
    Sydney
    Posts
    5,527
    Thank Post
    1,339
    Thanked 470 Times in 307 Posts
    Blog Entries
    6
    Rep Power
    200
    ok, I unmerged and built from source

    Code:
    oasis ~ # ps aux | grep openvpn
    nobody    4897  0.0  0.1  24932  1032 ?        Ss   00:23   0:00 /usr/sbin/openvpn --config /etc/openvpn/openvpn.conf --writepid /var/run/openvpn.pid --daemon --cd /etc/openvpn
    But still same problem

SHARE:
+ Post New Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •