New on LowEndTalk? Please Register and read our Community Rules.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
All new Registrations are manually reviewed and approved, so a short delay after registration may occur before your account becomes active.
How to setup PPTP VPN ON OPENVZ VPS ( tested with ubuntu 11.04 with 32 mb IPXCORE vps )
Researcher
Member
Hey
I have already confirmed that ipxcore have enable by default both of these required modules
Required kernel support:
ppp
MPPE
mknod /dev/ppp c 108 0
apt-get update
apt-get install pptpd
vim /etc/ppp/pptpd-options
add
ms-dns 8.8.8.8
ms-dns 8.8.4.4
cp -R /etc/ppp/pptpd-options /etc/pptpd.conf
vim /etc/pptpd.conf
add
localip ipv4-ip-of-your-vps
remoteip 10.0.0.10-100
vim /etc/ppp/chap-secrets
add
johndoe * johndoepassword *
note : use tab key to create space in above line
#/etc/init.d/pptpd restart
Now, if you would like to add internet access over this vpn, you can do this:
#vim /etc/sysctl.conf
and find the line for ipv4 forwarding and make sure it = 1:
net.ipv4.ip_forward = 1
Then use iptables to get the net forwarded:
#/sbin/iptables -P FORWARD ACCEPT
#/sbin/iptables --table nat -A POSTROUTING -o venet0 -j MASQUERADE
If this gives an error like “iptables: No chain/target/match by that name”, check if iptable_nat is enabled:
#modprobe iptable_nat
If not, then either enable it and try again or use this instead:
#iptables -t nat -A POSTROUTING -o venet0 -s 10.0.0.1/24 -j SNAT --to x.x.x.x
Where x.x.x.x is your server’s outgoing IP.
And then restart again`
Comments
Nice copy & paste.
http://www.putdispenserhere.com/pptp-vpn-setup-guide-for-a-debian-openvz-vps/
@AsadHaider it is copy or paste i dnt care if it is helping others.. if u found it useful then i am happy
Maybe if you formatted it better...
@ErawanArifNugroho sorry bro this tutorial donot work anyways thanks for the sharing
@ErawanArifNugroho lemme try dude
@ErawanArifNugroho : is that better now ?
i try to install it, but i did something wrong, now i using
and i know where is wrong, but let me try...
Which part?
last -f /var/log/wtmp will show logins, too.
first things first, always open a tix to ask your provider if you can run pptp only then spend time doing it.
i know like alot of providers pptp failz.
probably totally unrelated. I am transforming into a super saiyan.
lol...
PPTP needs a click of the button in Solus these days, it doesn't create the /dev/ppp nod though, so mknod it, then chmod it to 666, etc.
The usual stuff.
Hm.. With Prometeus, RamNode, PyramidServer, I only have to click, and wait until Solus said process complete. ( Sometimes it will reboot the vps ), but I never try to make pptpd. Maybe if I have a problem with another host I will try it.
Thank's Wintereise
Sorry but the formatting looks like shit. Might be because you did a copy-pasta.
If you need a VPN tutorial, with a nice layout: https://raymii.org/cms/p_IPSEC_L2TP_VPN_on_ubuntu_12.04
@Raymii if it is a shit then dnt look here and spam with outside links, better right ur own tutorial and i will delete this and forward it to yours ... you talk like a shit and nothing else,
If u need help state your question here with respect to this tutorial and wait patiently for the answer, if not then go away with your shit.
@dedicados : hey, what error you get while going through this tutorial ?