Hey.
1. Are you trying to redirect traffic directed to port 53 to port 10053?
Use REDIRECT target.
http://www.linuxtopia.org/Linux_Firewall_iptables/x4508.html
2. DNAT requires destination IP as well.
Noino <mg8c1zu02@xxxxxxxxxxxxxx> kirjoitti Tue, 01 Apr 2008 00:06:08 +0300:
Dear List, I recompiled my Linux 2.6.5 kernel, adding the option
required for local NAT . Am still encountering problems nonetheless. I
wonder whether I shouldn't compile the iptables program itself from
source, too. Else why do I get "invalid argument" here ? (same without
"-o lo") :
___________________________________________________________________________
# iptables -t nat -A OUTPUT -o lo -p udp --dport 53 -j DNAT
--to-destination :10053
iptables: Invalid argument
#
____________________________________________________________________________
--
To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html