Been trying to run
iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o venet0:0 -j MASQUERADE
and I keep getting the above error message. Trying to set up openvpn on my server.
Does anyone have any idea how to solve this?
firstly, venet0:0 is not valid, just use venet0, iptables does not care about interface labels.
The error itself is down to the fact that either you do not have the nat table kernel module loaded or you do, but don't have MASQUERADE.
Since this is OpenVZ, you would need to ask your host to provide it.
It need nf_nat_masquerade_ipv4.ko and iptable_mangle.ko, enable CONFIG_NF_NAT_MASQUERADE_IPV4 and CONFIG_IP_NF_TARGET_MASQUERADE in .config to build this module.