Skip to contentSkip to conversation

ROUTE woes ?

DISCUSSION Jan Engelhardt 2 participants 2 messages Aug 24, 2005 1 message not in the archive

lore
Share & tools
lore
#1 lore raw
In reply to a message not in the archive
Quoted 5 lines
Quoted 3 lines
gate:/usr/src# iptables -t mangle -A FORWARD -p tcp --dport 80 -j ROUTE --
oif eth2

It must be used on the POSTROUTING chain of the mangle table.

Hm this sounds somewhat illogical: to route when "routing has already been done" (latin: postrouting). It also requires to have something like:

	ipt -t mangle -A FORWARD -i eth1 -j MARK --set-mark 7
	ipt -t mangle -A POSTROUTING -m mark --mark 7 -j ROUTE

instead of just

ipt -t mangle -A FORWARD -i eth1 -j ROUTE

Jan Engelhardt