Packet change and redirect using ebtables

 
Thread Tools Search this Thread
Operating Systems Linux Red Hat Packet change and redirect using ebtables
# 1  
Old 04-06-2011
Packet change and redirect using ebtables

Hey all
I need your help with ebtables. I want to redirect traffic through local interfaces.
I have am Ubuntu linux machine with several NICs.
(I understand that ebtables is the same for RH)...
eth0 and eth1 are part of a bridge (br0) and they are connected to tap device. On eth0 I get traffic from network 10.10.10.0/24 to the internet.
Through eth1 I get the responses, internet addresses to 10.10.10.0/24.
None of the packets are destined to the linux host (on L3 and L2 as well).
My goal is to separate the traffic to other interfaces.
Every packet that enters eth0 with source ip 10.10.10.0/24 should be routed or redirected to eth3 (Packet should have the same source and destination IP but the frame should now contain a new SRC MAC, eth3's MAC).
The same applies to traffic that is coming in from eth1. I want to route it to eth4.
eth0 and eth1 are unidirectional, that means that I can't change the traffic and I'm only intercepting it.
Can you please help me build this filter using ebtables ?
I had no luck so far.
Thanks !!
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. AIX

Packet loss coming with big packet size ping

(5 Replies)
Discussion started by: Vishal_dba
5 Replies

2. IP Networking

Berkley Packet Filter

Hi Folks! Im trying to write a packet capture filter on a opnet device. The syntax there to write this filter is BPF. What I wanna do is to capture everything, but from a certain ip-range I just wanna capture the header and not the payload. For your understanding: We are writing our backup to... (1 Reply)
Discussion started by: ati
1 Replies

3. UNIX for Advanced & Expert Users

Delete all ebtables rules

Hi All, I configured a bridged debian firewall using bridging utilities. This works fine & I have been monitoring all users connecting to the internet & bandwidth usage. There are 2 interfaces eth0 & eth1 which i have configured as bridged interface br0. Today, I installed squid on the... (1 Reply)
Discussion started by: coolatt
1 Replies

4. Homework & Coursework Questions

filter packet

Exercise: Protection of WEB and DNS servers using the context-free rules for packet filtering: - Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns. - Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Discussion started by: numeracy
1 Replies

5. Cybersecurity

filter packet

Exercise: Protection of WEB and DNS servers using the context-free rules for packet filtering: - Protect your WEB-server, so that would be for him can be accessed by browsers, and could go to dns. - Protect your primary DNS-server so that it could be to contact clients and secondary servers.... (1 Reply)
Discussion started by: numeracy
1 Replies

6. IP Networking

Packet decoding

Hi, wondering if anyone can suggest a tool to me that will let me either cut & paste hex or type it in for packet decoding. I want to be able to decode a packet as done with tcpdump or wireshark, but I want to be able to manually input the hex myself. (2 Replies)
Discussion started by: Breakology
2 Replies

7. Programming

packet capture

can anyone tell me how can i capture the packets. i have tried ethernet software to capture them but its not doing what i want it to do it (1 Reply)
Discussion started by: dazdseg
1 Replies

8. Programming

Packet capturing using pcap

Hi, i am using a linux CentOS machine. I have 2 real network interfaces eth0, eth1 and 2 virtual interfaces tap0 and tap1. I am using PCAP library to capture the packets on theses interfaces. If i specify the interface as "any", i cannot find a way to know from which interface the packet... (1 Reply)
Discussion started by: rahulnitk2004
1 Replies

9. Programming

Real Packet Counter

Hello Experts, I want to program a realtime Packet counter, that is consist of two threads, first is packet counter engine and second is a (QTWidget)QT gui program(main process) for painting a real time chart, which classes or events are suitable for doing that? (OpenGL or Paint event or ...).note... (0 Replies)
Discussion started by: galaxy.ice
0 Replies

10. IP Networking

Seeing IP packet

Hi, Is there any way that i can directly take out the IP packet and see its contents. Waiting for your answer .............. Bye (4 Replies)
Discussion started by: manjunath
4 Replies
Login or Register to Ask a Question
aoe-interfaces(8)					      System Manager's Manual						 aoe-interfaces(8)

NAME
aoe-interfaces - restrict aoe driver to specified network interfaces SYNOPSIS
aoe-interfaces [dev1] [dev2 ...] aoe-interfaces -c DESCRIPTION
The aoe-interfaces command tells the aoe driver to ignore ATA over Ethernet (AoE) traffic on all but the specified network interfaces. It is analogous to the aoe_iflist module load option. If neither the aoe_iflist module load option nor the aoe-interfaces command are used, the aoe driver will use any network interface for AoE traffic. Using aoe-interfaces to limit AoE to only trusted networks prevents the case where a rogue AoE target appears on a public net- work, diverting data from the legitimate AoE target. Such an imposter target effectively corrupts the data on the legitimate target. If the aoe driver is a module, then calling aoe-interfaces without arguments will display the current interfaces list. If it hasn't been set then the output will be blank. It's good to run the aoe-discover command after setting the AoE interfaces list. OPTIONS
-c The -c flag will clear the interface access list, permitting any interface to be used. EXAMPLE
In this example, the root user on a host named nai loads the aoe module with only eth0 allowable for AoE traffic. After remembering that shelf 7 is on eth3, this sysadmin uses aoe-interfaces to add eth3 to the list of allowable network interfaces and then calls aoe-discover to ask the aoe driver to look for new AoE devices. nai:~# modprobe aoe aoe_iflist="eth0" nai:~# aoe-stat e10.9 eth0 up nai:~# aoe-interfaces eth0 eth3 nai:~# aoe-discover nai:~# aoe-stat e7.0 eth3 up e7.1 eth3 up e7.2 eth3 up e7.3 eth3 up e7.4 eth3 up e7.5 eth3 up e7.6 eth3 up e7.7 eth3 up e7.8 eth3 up e7.9 eth3 up e10.9 eth0 up nai:~# aoe-interfaces eth0 eth3 SEE ALSO
aoe-discover(8), aoe-stat(8), aoetools(8). AUTHOR
Ed L. Cashin (ecashin@coraid.com) aoe-interfaces(8)