Skip to contentSkip to conversation

Problems with target ROUTE

DISCUSSION [email protected] 2 participants 2 messages Jul 14, 2006

lore
Share & tools
lore
#0 lore raw

Hi all,

I have a host with 4 net cards and I need all network traffic to 8180 port of one of them goes to another net card. So, I've thougth about executing this iptables command:
iptables -t mangle -A PREROUTING -p tcp --dport 8180 -s x.x.x.x -d x.x.x.x -j ROUTE --gw x.x.x.x -oif x

However, when I execute this command, this is the message:
'iptables: No chain/target/match by this name'
I know that my kernel supports this target because I got a proper help when I execute 'iptables -t mangle --help'.

Please, help me.
_________________________________________________________
Lortu posta elektronikoa doan >>> http://www.euskalerria.org
___________________________________________________________________________________________
Lortu posta elektronikoa doan >> http://www.euskalerria.org

#1 lore raw
Quoted 13 lines · [email protected] wrote:

Hi all,

I have a host with 4 net cards and I need all network traffic to 8180 port of one of them goes to another net card. So, I've thougth about executing this iptables command:
iptables -t mangle -A PREROUTING -p tcp --dport 8180 -s x.x.x.x -d x.x.x.x -j ROUTE --gw x.x.x.x -oif x

However, when I execute this command, this is the message:
'iptables: No chain/target/match by this name'
I know that my kernel supports this target because I got a proper help when I execute 'iptables -t mangle --help'.

Quoted 8 lines

Please, help me.
_________________________________________________________
Lortu posta elektronikoa doan >>> http://www.euskalerria.org
___________________________________________________________________________________________
Lortu posta elektronikoa doan >> http://www.euskalerria.org

Actually it means the iptables tool knows about the ROUTE target, but the kernel doesn't.