Need to install Open VPN 2.1

Status
Not open for further replies.

DJ7

Member
15
2010
0
0
Hi,
I need to install openvpn on my 64bit centos server, to use HideMyAss VPN on it, i tried installing myself but getting dependencies error of lzo-devel.

I am even ready to pay if someone helps me out with it.
 
9 comments
i have tutorial of openvpn-2.0.9, i said i need of 2.1 because HideMyASS only works with latest version, also the tut u gave was of x86 but my server as i mentioned is x64
 
Hi,
I need to install openvpn on my 64bit centos server, to use HideMyAss VPN on it, i tried installing myself but getting dependencies error of lzo-devel.

I am even ready to pay if someone helps me out with it.
yum install lzo-devel
you may need RPMForge repo tho
 
how about this repo
Code:
rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm
:D
 
thanks for this will try it tonight

Edit:
@Erratic
I suppose the guide you gave was to make our own vpn server but i need the client's guide to connect HideMyAss to mask server's ip and i think it supports pptp
 
Set up / install.
Code:
http://sourceforge.net/projects/poptop/files/pptpd/pptpd-1.3.4/pptpd-1.3.4.tar.gz/download
tar -zxf pptpd-1.3.4.tar.gz
cd pptpd-1.3.4
./configure
make && make install
... set up the service or whatever, up to you.
OR, probably easier:

Change your yum to use whatever pptpd is located on if you can't find it, this may work though...
Code:
yum install ppp
Then:
yum install pptpd
Anyway, up to you how you install it. Once installed:

Edit the following file and save.
Note: These may vary on your network setup. I use these at OVH.
nano /etc/pptpd.conf
Code:
option /etc/ppp/options.pptpd
localip 192.168.0.234-238
remoteip 192.168.1.234-238
Edit the following file and save.
nano /etc/ppp/options.pptpd
Code:
name pptpd
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
proxyarp
lock
nobsdcomp
novj
novjccomp
nologfd
Edit the following file and save.
nano /etc/ppp/chap-secrets
Code:
exampleuser pptpd examplepass *
Edit the following file and save.
Some IP table rules and settings:
Code:
nano /etc/sysctl.conf
change net.ipv4.ip_forward=0 to net.ipv4.ip_forward=1
Start pptpd, make sure it's all fine:
Code:
service pptpd start
Once done, set up your connection. In Windows 7:
Control Panel
Network & Sharing
Set Up New Connection
Connect to a Workplace
New Connection
"Use my internet connection (VPN)"
Address: IP address/domain of your server
Username & Password are what you put in the chapsecrets file.

If you get an "Encryption not supported" right click the connection in the task bar, go properties. Go into security and check data encryption "Optional".

This is a pretty basic guide, if you want to set up encryption and the more fancy stuff you can do so from here. This basically gets you connected though :)

To confirm it's working, check: http://wgtools.com/your-ip/ to see if it shows your server IP.

I can login but can not access any remote sites with this setup. I also have setup iptables.

Code:
[I][B]/sbin/iptables -F
/sbin/iptables -t nat -F
/sbin/iptables -t mangle -F
/sbin/iptables -X
/sbin/iptables -t nat -A PREROUTING -p tcp --dport 80 -j REDIRECT --to-port 3128
/sbin/iptables -t nat -A POSTROUTING -o eth2 -j MASQUERADE
/sbin/iptables -A FORWARD -i eth2 -j ACCEPT
/sbin/iptables -A INPUT -i eth2 -p tcp --dport 1723 -j ACCEPT
/sbin/iptables -A INPUT -i eth2 -p gre -j ACCEPT
/sbin/iptables -A FORWARD -i ppp+ -o eth2 -j ACCEPT
/sbin/iptables -A FORWARD -i eth2 -o ppp+ -j ACCEPT
/sbin/iptables -A OUTPUT -p tcp --dport 1723 -j ACCEPT
/sbin/iptables -A OUTPUT -p gre -j ACCEPT
#/sbin/iptables -t nat -A PREROUTING -i eth2 -p tcp --dport 80 -j REDIRECT --to-port 3128
/sbin/iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j SNAT --to X.X.X.X
echo 1 > /proc/sys/net/ipv4/ip_forward[/B][/I]
 
Status
Not open for further replies.
Back
Top