Skip to contentSkip to conversation

local NAT; reconfigured kernel, problems still

DISCUSSION Noino 2 participants 2 messages Mar 31, 2008

lore
Share & tools
lore

Noino

author
#0 lore raw

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
#
____________________________________________________________________________ 
Signature · 1 line
Noino
#1 lore raw

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 <[email protected]> kirjoitti Tue, 01 Apr 2008 00:06:08 +0300:

Quoted 7 lines

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
#
____________________________________________________________________________