I'm doing this:
iptables -t mangle -A PREROUTING -d ! $inet -j MARK --set-mark 0x0a -p tcp --dpo rt 25 ip route add default via $IPADDR2 table TSMTP ip rule add pref 1 fwmark 0x0a table TSMTP
I'm also using NAT and masquarading.
The rules above work for packets received from other systems that are going through NAT, but it doesn't work for packets from the local system. Those packets are still going out through the normal default route of the system.
Is there a way to mark packets originating on the local system?
Thanks,
John Spicer