Results 1 to 17 of 17
  1. #1

    openVPN on openVZ with CentOS 5.5

    I have contacted my company with setting up TUN/TAP and they say it is setup

    I am still getting this error:

    Code:
    Service deferred error: IPTablesServiceBase: failed to run iptables-restore [status=1]: ['iptables-restore: line 62 failed']: python/context:37,internet/epollreactor:223,internet/posixbase:191,internet/process:260,internet/process:762,internet/process:775,internet/_baseprocess:60,svc/pp:116,svc/svcnotify:26,internet/defer:238,internet/defer:307,internet/defer:323,sagent/ipts:105,sagent/ipts:39,util/error:52,util/error:32
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['user', 'iptables_openvpn'])
    service failed to start due to unresolved dependencies: set(['iptables_openvpn'])
    Any idea on what is causing it and how can I fix it?

  2. #2
    Check out http://wiki.openvz.org/VPN_via_the_TUN/TAP_device and see if it gives you anything you can use
    Francis | Good with Linux
    Buzz word downsizing advocate

  3. #3
    Join Date
    Sep 2002
    Location
    London/Edinburgh
    Posts
    1,131
    What does the command modprobe tun bring up?
    Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
    Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
    99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
    Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895

  4. #4
    Quote Originally Posted by ThomasC View Post
    What does the command modprobe tun bring up?
    I get this

    Code:
    # modprobe tun
    FATAL: Could not load /lib/modules/2.6.18-194.17.1.el5.028stab070.7/modules.dep: No such file or directory

  5. #5
    Join Date
    Sep 2002
    Location
    London/Edinburgh
    Posts
    1,131
    This clearly shows that TAP/TUN is not setup. Get back in touch with your host.
    Europhase UK Limited - XEN/OpenVZ UK/US Virtual Private Servers | R1Soft Backups for Web Hosts
    Custom R1Soft Backups | UK/US Web Hosting | UK/US Virtual Private Servers
    99.9% Uptime SLA | Non Overloaded Service | Guaranteed Ram / Resources
    Company: SC345142 VAT: GB-947754180 Tel: 0870 4710 895

  6. #6
    cat: /dev/net/tun: File descriptor in bad state

    So apparently TUN/TAP is on

    What else could it be?

  7. #7
    Join Date
    Jan 2008
    Location
    Jax, FL
    Posts
    2,707
    Quote Originally Posted by ThomasC View Post
    This clearly shows that TAP/TUN is not setup. Get back in touch with your host.
    You cannot run modprobe from within an OpenVZ based container due to the shared kernel architecture. Modprobe will always fail within the container.

    OP -- What version of OpenVPN are you using?

  8. #8
    Quote Originally Posted by SC-Daniel View Post
    You cannot run modprobe from within an OpenVZ based container due to the shared kernel architecture. Modprobe will always fail within the container.

    OP -- What version of OpenVPN are you using?
    openvpn-as-1.5.6-CentOS5.i386.rpm

  9. #9
    Join Date
    Jan 2008
    Location
    Jax, FL
    Posts
    2,707
    Quote Originally Posted by Teh Wallhacks View Post
    openvpn-as-1.5.6-CentOS5.i386.rpm
    That is why you are having troubles -- OpenVPN-AS (OpenVPN Access Server) requires additional iptables modules to be loaded on the hostnode. OVPN-AS is also not free.

    You should download the community version, which, I believe, is at version 2.0.9, but I may be off on that.

    EDIT: just checked -- it is at version 2.1.4 for stable. You can get it here: http://www.openvpn.net/index.php/ope...downloads.html

    You can also get 2.0.9 in the RPMForge repository.

  10. #10
    Join Date
    Sep 2002
    Location
    Chicago, Illinois
    Posts
    884
    OpenVPN AS is free for two users AFAIK.
    Neosurge Web Services since 2002
    Neosurge VPS Hosting

  11. #11
    Quote Originally Posted by SC-Daniel View Post
    That is why you are having troubles -- OpenVPN-AS (OpenVPN Access Server) requires additional iptables modules to be loaded on the hostnode. OVPN-AS is also not free.

    You should download the community version, which, I believe, is at version 2.0.9, but I may be off on that.
    Which version should I download from here?
    http://www.openvpn.net/index.php/ope...downloads.html

    And how do I remove openVPN

  12. #12
    Join Date
    Jan 2008
    Location
    Jax, FL
    Posts
    2,707
    Quote Originally Posted by Teh Wallhacks View Post
    Which version should I download from here?
    http://www.openvpn.net/index.php/ope...downloads.html

    And how do I remove openVPN
    rpm -e openvpn-as-1.5.6-CentOS5.i386.rpm

    Download the 2.1.4 source tarball and compile it if you want the latest... Otherwise, add the RPMForge repo to yum and install 2.0.9

  13. #13
    Quote Originally Posted by Teh Wallhacks View Post
    I get this

    Code:
    # modprobe tun
    FATAL: Could not load /lib/modules/2.6.18-194.17.1.el5.028stab070.7/modules.dep: No such file or directory
    try to download the kernel module or manually create the said directory.
    ControlVM.com :: Elastic Cloud Hosting Alternatives to VPS Reliable Cloud Server
    Enterprise Hosting @
    Malaysia ● Germany ● USA ● Singapore
    We Accept: Paypal
    Alipay GrabPay Credit/Debit Card FPX Bank Transfer Bank TT

  14. #14
    Quote Originally Posted by SC-Daniel View Post
    rpm -e openvpn-as-1.5.6-CentOS5.i386.rpm

    Download the 2.1.4 source tarball and compile it if you want the latest... Otherwise, add the RPMForge repo to yum and install 2.0.9
    error: package openvpn-as-1.5.6-CentOS5.i386.rpm is not installed

    Gosh this is annoying
    I just installed openVPN yesterday.

    Well I will go Google how to remove openVPN
    How do I add RPMForge repo to yum


    Quote Originally Posted by CH Hosting View Post
    try to download the kernel module or manually create the said directory.
    I don't have access to the node
    I am with 123systems.net right now

  15. #15
    Join Date
    Jan 2008
    Location
    Jax, FL
    Posts
    2,707
    Quote Originally Posted by Teh Wallhacks View Post
    error: package openvpn-as-1.5.6-CentOS5.i386.rpm is not installed

    Gosh this is annoying
    I just installed openVPN yesterday.

    Well I will go Google how to remove openVPN
    How do I add RPMForge repo to yum
    Try just this --

    rpm -e openvpn-as

    http://dag.wieers.com/rpm/FAQ.php#B1

    There is a guide on RPMForge... Once you have it installed, just run "yum install openvpn"

  16. #16
    Quote Originally Posted by SC-Daniel View Post
    Try just this --

    rpm -e openvpn-as

    http://dag.wieers.com/rpm/FAQ.php#B1

    There is a guide on RPMForge... Once you have it installed, just run "yum install openvpn"
    I used yum remove openvpn-as to get rid of it
    Thanks for the link

    How do I edit configuration now?
    Last edited by Teh Wallhacks; 11-24-2010 at 12:12 PM.

  17. #17
    http://www.webhostingtalk.com/showpo...3&postcount=19

    openvpn-as does not work on openvz vps's correctly, use the community version

Similar Threads

  1. Setting up Openvpn on OpenVZ
    By vpsbuster in forum VPS Hosting
    Replies: 13
    Last Post: 09-07-2011, 12:54 PM
  2. Setup openvpn on openvz
    By total_assault in forum Employment / Job Offers
    Replies: 8
    Last Post: 03-23-2010, 03:22 AM
  3. OpenVPN with OpenVZ
    By newbie_security in forum VPS Hosting
    Replies: 7
    Last Post: 01-08-2010, 07:53 AM
  4. OpenVPn wif openvz
    By chaotix in forum Hosting Security and Technology
    Replies: 4
    Last Post: 08-18-2009, 03:54 AM
  5. openvz port and openvpn
    By robocap in forum Hosting Security and Technology
    Replies: 14
    Last Post: 05-17-2008, 02:11 PM

Posting Permissions

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