Skip to contentSkip to conversation

routing locally created marked packets

LARTC Greg Osinaike 1 participant 1 message Mar 24, 2001

lore
Share & tools
lore
#0 lore raw

Hello,

I have a simple question regarding routing of locally created packets.

I have set up netfilter 'mark' rules for all locally created IP packets with destination port number 25 with the following:

iptables -A OUTPUT -t mangle -p tcp --dport 25 -j MARK --set-mark 1

I wish to set up specific routing entries for each locally created marked packet. I have tried this using iproute2, with no success.

My question is do locally created packets initiate routing table lookups, if not how can I achieve routing for locally created packets.

I've been trying for a week to do IP port forwarding on locally created packets in this way.

any help would be great.

ThanKs!
Greg.

_______________________________________________
LARTC mailing list / [email protected]
http://mailman.ds9a.nl/mailman/listinfo/lartc HOWTO: http://ds9a.nl/2.4Routing/