*SOLVED* iptables: DNAT with --dport option inside ve [message #6089] |
Fri, 08 September 2006 00:22 ![Go to next message Go to next message](/theme/ovz3/images/down.png) |
rudiross
Messages: 3 Registered: September 2006
|
Junior Member |
|
|
Hi all!
I am trying to forward some ports from inside a VE to another host.
The following works:
root@srv03:~# iptables -t nat -A PREROUTING -p tcp -i venet0 -j DNAT --to 10.4.0.2
The following does not:
root@srv03:~# iptables -t nat -A PREROUTING -p tcp --dport 80 -i venet0 -j DNAT --to 10.4.0.2:80
Error message:
iptables: No chain/target/match by that name
Following modules are loaded via <vpsid>.conf:
IPTABLES="ipt_REJECT ipt_tos ipt_limit ipt_multiport iptable_filter iptable_mangle ipt_TCPMSS ipt_tcpmss ipt_ttl ipt_length iptable_nat ip_conntrack ip_conntrack_ftp ipt_conntrack ipt_helper ipt_state"
Can anyone tell me whether it is possible to perform DNAT with selected ports from inside a VE?
TIA
Rudi
[Updated on: Fri, 08 September 2006 08:38] by Moderator Report message to a moderator
|
|
|
|
|
|
|