Why fails when I setup the rules for iptables?

Good evening, I googled the error and in many vorunah writing that the case in the type of virtualization in openVZ is not working, but I have not this type.
iptables-t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner user -m tcp -j REDIRECT --to-ports 9040;

when adding a rule produces this error
iptables: No chain/target/match by that name.
well, the conclusion here is such a(
user@alex:~$ sudo iptables-L-n
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 1001 tcp dpt:9040
ACCEPT udp -- 0.0.0.0/0 0.0.0.0/0 owner UID match 1001 udp dpt:53
DROP all -- 0.0.0.0/0 0.0.0.0/0 owner UID match 1001
user@alex:~$

Please help
June 3rd 19 at 19:22
2 answers
June 3rd 19 at 19:24
Solution
well, there in black and white written no chain/target/zapadenia name. Looking below and not seeing...
damn, yeah, sure , and can break me chain/target/sovpadenie to understand even where to look to change - Shyann26 commented on June 3rd 19 at 19:27
I do not understand what the owner in the manuals where apart values this no where , maybe it should change on that? - Shyann26 commented on June 3rd 19 at 19:30
translate.google. com says "owner" - Darron.Trembl commented on June 3rd 19 at 19:33
excuse me for such, nedelea questions, but owner of what? I just need to run the script from the user which I set the rules, but then no where is written the path of the script, there are just some rules and the maximum that I understand is to change the user to your specified rules - Shyann26 commented on June 3rd 19 at 19:36
Don't understand what you want to achieve by this rule.Iptables directly, do not use, anything deeper will not help. - Darron.Trembl commented on June 3rd 19 at 19:39
like it became better, but now another trouble
root@alex:~# iptables-t nat -A OUTPUT! -o lo -p tcp -m owner --uid-owner user -m tcp -j REDIRECT - to-ports 9040;Bad argument `-'
Try `iptables -h' or 'iptables --help' for more information.
root@alex:~#

babulal had to remove some "-" but then the error bad owner or a bad port - Shyann26 commented on June 3rd 19 at 19:42
the rule redirects HTTP traffic (actually, TCP) to your local port - Shyann26 commented on June 3rd 19 at 19:45
And cons very carefully it is necessary to apply. To redirect http to another port of this rule. http port this is. - Darron.Trembl commented on June 3rd 19 at 19:48
June 3rd 19 at 19:26
What action is REDIRECT. In General, the rule should work if you paste the real system user is used for the example user
iptables-t nat -A OUTPUT ! -o lo -p tcp -m owner --uid-owner root-m tcp -j REDIRECT --to-ports 9040

Find more questions by tags UbuntuIptables