OpenVZ Forum


Home » General » Support » Unable to run OpenVPN - "openvpn --mktun --dev tap0" fails
Re: Unable to run OpenVPN - "openvpn --mktun --dev tap0" fails [message #23992 is a reply to message #22011] Thu, 29 November 2007 18:44 Go to previous messageGo to previous message
tomfra is currently offline  tomfra
Messages: 28
Registered: September 2007
Junior Member
Instead of this line:

/sbin/iptables -t nat -A POSTROUTING -s ! x.x.x.x -o venet0 -j SNAT --to-source x.x.x.x

try this one:

/sbin/iptables -t nat -A POSTROUTING -s 10.88.0.0/16 -o venet0 -j SNAT --to-source 192.168.1.5

where 10.88.0.0/16 is the internal IP range assigned by OpenVPN, you will very likely have a different one so don't forget to change it.

I am not saying it will work, I am really not a "pro" in this field, but it may be worth a try.

Tomas


Do you really believe the Internet is a safe place?
IdentityCloaker.com - Take Back Your Privacy!
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *SOLVED* No Internet access on VEs (but I get remote SSH access)
Next Topic: Warning: Variable TEMPLATE not found in /etc/sysconfig/vz
Goto Forum:
  


Current Time: Sun Jun 15 12:43:51 GMT 2025

Total time taken to generate the page: 0.01907 seconds