Page 4 of 4 FirstFirst 1234
Results 76 to 93 of 93
  1. #76
    Join Date
    Apr 2008
    Location
    Saudi Arabia
    Posts
    16
    Quote Originally Posted by thatdaveguy View Post
    ugh. hung up on this too.
    me too

    Very good tutorial by the way

  2. #77
    Join Date
    Apr 2008
    Location
    Saudi Arabia
    Posts
    16
    for others who are stuck at this too, I discovered that we already have sample server.conf file.

    you can find it here:
    /usr/share/doc/openvpn-2.1/sample-config-files/server.conf

  3. #78
    Join Date
    Apr 2010
    Posts
    421
    Quote Originally Posted by Sweet Sniff View Post
    for others who are stuck at this too, I discovered that we already have sample server.conf file.

    you can find it here:
    /usr/share/doc/openvpn-2.1/sample-config-files/server.conf
    thank you, is there anything we should change on the file ?
    please cmiiw always

  4. #79
    Join Date
    Apr 2008
    Location
    Saudi Arabia
    Posts
    16
    Quote Originally Posted by craig joe View Post
    thank you, is there anything we should change on the file ?
    Actually, yes, there are a lot of things that you need to change to suit your needs.

    The most important thing is the path to the certificates and keys.

    I have been palying around with it for more than a week now, and all what I could achieve is to have my client connect to the vpn server and ping the local IPs to the server.

    But I can't use the internet while connected, so, if anybody has any suggestion about that, it will be most appreciated

  5. #80
    Join Date
    Aug 2002
    Location
    Bharat
    Posts
    4,808
    Quote Originally Posted by Sweet Sniff View Post
    Actually, yes, there are a lot of things that you need to change to suit your needs.

    The most important thing is the path to the certificates and keys.

    I have been palying around with it for more than a week now, and all what I could achieve is to have my client connect to the vpn server and ping the local IPs to the server.

    But I can't use the internet while connected, so, if anybody has any suggestion about that, it will be most appreciated
    Are you on a VPS?

    Use this
    iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source xyz.xyz.xyz.xyz

    Where xyz.xyz.xyz.xyz is your main public IP.
    Last edited by Vinayak_Sharma; 11-13-2010 at 08:14 AM.
    Vinsar.Net - Quality Web Hosting at Economical Price on USA & European Servers
    Offering domains, shared, reseller & VPS hosting.
    Reliable Domain Reseller Account Resell Domains with Confidence

  6. #81
    Join Date
    Apr 2008
    Location
    Saudi Arabia
    Posts
    16
    Quote Originally Posted by Vinayak_Sharma View Post
    Are you on a VPS?

    Use this
    iptables -t nat -A POSTROUTING -o venet0 -j SNAT --to-source xyz.xyz.xyz.xyz

    Where xyz.xyz.xyz.xyz is your main public IP.
    No, I'm on a dedicated server which has 5 dedicated IPs

    does that makes any difference?

    if it helps, here is my usage to the IPs

    IP1 : main public IP
    IP2 : I'm hosting a website that uses this IP as its dedicated IP.
    IP3 : not used
    IP4 : for DNS (i.e ns1.mydomain.com)
    IP5 : for DNS (i.e ns2.mydomain.com)

    I have apache and WHM/cPanel installed, but I'm using this server only to host 1 website which has the second dedicated IP.

    Note: when I connect to the server from the client, and try to go to mydomain.com in my browser it works just fine, but when I try any other website it does not work


    Thank you very much for your replay, and hope you can help me

  7. #82
    will someone please update the instructions? yum install openvpn doesn't work too

  8. #83
    Join Date
    Jan 2011
    Posts
    93
    You must add the dag wiers Repo
    This is for Centos 5.4
    I can make on Sunday night an How to for Centos and Debian.
    Because as i saw the tutorial here, not so good to give the DNS in client.conf better way is to do it in server.conf
    And yes its possible to bind the openvpn to one of your Ip addresses.
    Sunday i make an nice tutorial where i try to explain what options is for what.

  9. #84
    You cant do yum install openvpn anymore

    Instead, go to openvpn and download the TAR GZ. Then use configure and make to build the binaries yourself (need to install gcc, make and lzo).


    Or get the RPM file and use rpmbuild

    :_)

  10. #85
    Yes you can stil do yum install openvpn...

  11. #86
    Everything worked up until trying to connect.

    Getting:

    Code:
    2011-03-29 14:12:32 Attempting to establish TCP connection with ##.##.##.###:1194 [nonblock]
    2011-03-29 14:12:32 
    2011-03-29 14:12:33  will try again in 5 seconds: Connection refused
    2011-03-29 14:12:36  process exiting
    2011-03-29 14:12:36
    I've replaced my IP with the ##'s

    any suggestions?

  12. #87
    Join Date
    Mar 2011
    Posts
    98
    4. You need to edit the vars file, located in /etc/openvpn/easy-rsa
    You can use any editor you like, I used vi.

    Change the line

    Code:
    export KEY_DIR=$D/keys
    to

    Code:
    export KEY_DIR=/etc/openvpn/keys
    Also at the bottom of this file you will see something similar to this,

    Code:
    export KEY_COUNTRY=US
    export KEY_PROVINCE=CA
    export KEY_CITY=SOMEWHERE
    export KEY_ORG="My Org"
    export KEY_EMAIL=me@mydomain.com
    Change this to your own values.

    i cant see that on nano /etc/openvpn/easy-rsa

    it was blank nothing on it

    please help me

  13. #88
    Join Date
    May 2010
    Location
    Online
    Posts
    236
    Quote Originally Posted by NetfirmsSupport View Post
    Everything worked up until trying to connect.

    Getting:

    Code:
    2011-03-29 14:12:32 Attempting to establish TCP connection with ##.##.##.###:1194 [nonblock]
    2011-03-29 14:12:32 
    2011-03-29 14:12:33  will try again in 5 seconds: Connection refused
    2011-03-29 14:12:36  process exiting
    2011-03-29 14:12:36
    I've replaced my IP with the ##'s

    any suggestions?
    What port do you have in server.conf? did you check if OpenVPN is actually running?


    Quote Originally Posted by eric6630 View Post
    i cant see that on nano /etc/openvpn/easy-rsa

    it was blank nothing on it

    please help me
    try nano /etc/openvpn/easy-rsa/vars
    or
    vi /etc/openvpn/easy-rsa/vars
    Chicago VPS | Gigabit uplink host90.com

    OpenVPN VPS spidervpn.com

  14. #89
    Join Date
    Mar 2011
    Posts
    98
    can i ask?

    what was the difference adding several lines like

    #iptables -t nat -A POSTROUTING -s 1.2.3.0/24 -j SNAT --to 123.123.123.123
    #iptables -t nat -A POSTROUTING -s 1.2.3.1/24 -j SNAT --to 123.123.123.123
    #iptables -t nat -A POSTROUTING -s 1.2.3.2/24 -j SNAT --to 123.123.123.123

    and so on.... is this advisable? or single line only will help

    and can this code on 1194.conf will help us from getting disconnected when several user's connected?

    or how can this be prevented from gaining network failure when several user's connected?

    thanks

  15. #90
    Join Date
    Mar 2011
    Posts
    98
    we do hope someone will create procedure how to create icmp connection via openvpn

  16. #91
    Join Date
    Aug 2004
    Location
    Shanghai
    Posts
    1,475
    I don't see why ICMP wouldn't work after setting-up OpenVPN.

    Thomas
    GPLHost:>_ open source hosting worldwide (I'm founder, CEO & official Debian Developer)
    Servers & our leading control panel and our Xen VPS hosting, which are already included in Debian and Ubuntu
    Available in: Kuala Lumpur, Singapore, Sydney, Seattle, Atlanta, Paris, London, Barcelona, Zurich, Israel

  17. #92
    Join Date
    May 2011
    Location
    Beach
    Posts
    114
    check the firewall

  18. #93
    Join Date
    Mar 2011
    Posts
    98
    can you post the configuration to build icmp connection?

Page 4 of 4 FirstFirst 1234

Posting Permissions

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