0

I have a vps account with CentOS 5 installed. It uses OpenVZ for virtualization.

Now I'm trying to install pptp service (using this guide) on it. I'm currently on Step 6 but I don't see any eth0 interface on my box.

I can only see lo and venet0. Now, how do I proceed with these steps if I don't have eth0 or ppp+:

iptables -A INPUT -i eth0 -p tcp --dport 1723 -j ACCEPT
iptables -A INPUT -i eth0 -p gre -j ACCEPT
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
iptables -A FORWARD -i ppp+ -o eth0 -j ACCEPT
iptables -A FORWARD -i eth0 -o ppp+ -j ACCEPT
service iptables save
service iptables restart
slm
  • 7,615
  • 16
  • 56
  • 76
reikyoushin
  • 103
  • 1
  • 8

1 Answers1

1

Use venet0. An OpenVZ machine has no ethX because it is a virtual adapter.

Christopher Perrin
  • 4,811
  • 19
  • 33
  • so i should use `iptables -A INPUT -i venet0 -p tcp --dport 1723 -j ACCEPT` right? how about the `ppp+` part? – reikyoushin Aug 05 '13 at 18:36
  • I guess ppp+ will come up as soon as you start the service (next step). Otherwise it might be possible that it is not possible like this. OpenVZ is no real virtualization like KVM and VMware ESX. It is a Operating system-level virtualization where one kernel is used for multiple userspaces (containers). – Christopher Perrin Aug 05 '13 at 18:41
  • It is working now.. I can connect but after a few minutes it disconnects me. I am going to check the ppp logs to see what the problem is. – reikyoushin Aug 05 '13 at 18:45
  • Yep. But it still doesn't allow me awhile ago. will do so now. thanks! – reikyoushin Aug 05 '13 at 18:48