yum install lzo-develHi,
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.
Set up / install.
OR, probably easier: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.
Change your yum to use whatever pptpd is located on if you can't find it, this may work though...
Anyway, up to you how you install it. Once installed:Code:yum install ppp Then: yum install pptpd
Edit the following file and save.
Note: These may vary on your network setup. I use these at OVH.
nano /etc/pptpd.conf
Edit the following file and save.Code:option /etc/ppp/options.pptpd localip 192.168.0.234-238 remoteip 192.168.1.234-238
nano /etc/ppp/options.pptpd
Edit the following file and save.Code:name pptpd refuse-pap refuse-chap refuse-mschap require-mschap-v2 require-mppe-128 proxyarp lock nobsdcomp novj novjccomp nologfd
nano /etc/ppp/chap-secrets
Edit the following file and save.Code:exampleuser pptpd examplepass *
Some IP table rules and settings:Start pptpd, make sure it's all fine:Code:nano /etc/sysctl.conf change net.ipv4.ip_forward=0 to net.ipv4.ip_forward=1
Once done, set up your connection. In Windows 7:Code:service pptpd start
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][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]
Reach 1000's of webmasters, hosts & affiliates. Banner & sponsored-thread slots available.
Contact us