Re: custom target: vlan_t extension pr oblem.
simon Pelckmans <[email protected]>
| Newsgroups | gmane.linux.network.bridge.ebtables.devel |
|---|---|
| Message-ID | <[email protected]> |
Dawid Ciężarkiewicz <dpc@...> writes: > > Hi, > I'm trying to develop ebt-vlan_t extension for ebtables. It should change > vlan ID of ethernet frame. Having most of work already done I'm experiencing > problems with changing frame type from non-vlan to vlan. > > I derived my work from ebt-mark so I just paste target function which > essential here: > Hi, This is an interesting problem trying to change vlan tags if packets are already in the kernel. I see a lot of interesting stuff you can do with this. I try to get the patch working. I backported it to a 2.4.20 kernel, I get it compiled and running. To get it working, I was wondering to which table and chain you need to add this rules. I want to mark packets matching a certain mac address, with a certain vlan tag. ebtables -t nat -A PREROUTING -s 0:d2:b3:51:37:d9 -j vlan_t --vlan-set 0x64 --vlan-target CONTINUE then I create a vlan interface with vlantag 0x64(100) and I expected to see some packets coming in but none did. Is this the correct way to use it? thanks Simon ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Ebtables-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/ebtables-devel