On Tue, 2003-05-27 at 12:49, Cedric Blancher wrote: > [...] possible using fwmark propagation. > > iptables -t mangle -A OUTPUT -p tcp --sport Y -d A --dport X \ > -j MARK --set-mark 0x01 > > Then, you SNAT in POSTROUTING using ebtables marked packets : > > ebtables -t nat -A POSTROUTING -m mark_m --mark 0x01 \ > -j snat --to-source C_MAC > wow this sound not pretty bad .. thanks I'll test this in some times (need to finish one work before, so I'll tell you if this work) but if other have others solutions (in case) Merci ;-) > You didn't get any other answer for this on > ebtables-user list ? no except your other one :-) (which tell me to read features page, :-D ) but I was testing if there are some potentials solution only with iptables ... and one another solution is perhaps (perhaps !) to have some IOCTL command on socket to force by this channel to use a specific MAC address .. Best regards Michael