Re: MAC snat by source IP address
Bart De Schuymer <[email protected]> Tue, 16 Oct 2007 19:59:12 +0200
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Message-ID | <[email protected]> |
Op di, 16-10-2007 te 13:55 +0100, schreef Pete Philips: > Now I want to have more than one SERVER. My first thought was this: > > ebtables -t nat -A POSTROUTING -p IPv4 --ip-protocol 6 --ip-source <IP OF SERVER> -o ethx -j snat > --to-source <MAC of SERVER> > > Unfortunately this doesn't work because ebtables thinks the source IP of > the replies is the IP address of the bridge. > > Any ideas on how I can match the real IP address of the SERVERS? In ebtables PREROUTING the original IP source address will still be there so you can mark the packets there and use that mark in POSTROUTING. cheers, Bart ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/