Re: Question on manual bridging.
Bart De Schuymer <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.user |
|---|---|
| Message-ID | <[email protected]> |
Op di, 22-11-2005 te 14:50 -0800, schreef Ben Greear: > Suppose I have a wifi interface 'ms1' and an ethernet interface eth0. > > Connected to eth0 is a PC with MAC address AA, which is exactly the > same MAC address as ms1 has. > > Is there a way to make ebtables forward all packets from ms1 to > eth0 (un-changed), and have all packets from eth0 with source-MAC of AA > be forwarded to ms1? I haven't used wireless with Linux yet, but you can get the bridge to act like a hub by using these commands: #brctl stp br0 off #brctl setageing br0 0 #brctl setfd br0 0 That should make all packets from ms1 be forwarded to eth0. Letting all packets with source-mac AA go from eth0 to ms1: ebtables -A FORWARD -i eth0 -o ms1 -s $AA -j ACCEPT ebtables -A FORWARD -i eth0 -o ms1 -j DROP > I want this setup to be as transparent as possible, so if I don't have > to have any IP addresses on the ms1 and eth0 interface, that is best. You won't need an IP address. cheers, Bart ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click