Hello Zeljko,
I have investigated and found that your VPS is hosted on a Virtuozzo 3 Node and Masquerading is not possible with the current Virtuozzo version [Virtuozzo 3] since it has not been virtualized as a module yet. You must use SNAT in your iptables NAT rule.
You can use the iptables as,
Quote:
|
# iptables -t nat -s clientIP -A POSTROUTING -j SNAT --to serverIP
|
SNAT [Source Network Address Translation] & MASQUERADE change the source address of a packet, whereas DNAT [Destination Network Address Translation] changes the destination address of a packet, hence DNAT is good for port forwarding. On previous versions of Virtuozzo, MASQUERADE wasn't supported for iptables, people used source NAT routing.
The practical difference between these two is that MASQUERADE can only map several ports whereas SNAT/DNAT can map to IP and ports together [AFAIK].
Both targets have port ranges you can specify, both mangle the source address of packets going out the interface (and magically do the reverse as packets come back) but with SNAT you choose the source address while with MASQUERADE picks the address of the interface.
I have created a test VPS on Virtuozzo4 node and tested the "MASQUERADE" module on it and its working fine on it, below are the test results.
Quote:
[root@test ~]# iptables -t nat -A POSTROUTING -o venet0 -j MASQUERADE
[root@test ~]#
|
If you want we can provide you a new VPS on our Virtuozzo 4 node. For new VPS on Virtuozzo 4 node you only need to email at our VPS support on vps[@]eukhost.com from your registered email address and they will provide you a new VPS.