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
ATALKD.CONF(5)							   Netatalk 2.2 						    ATALKD.CONF(5)

NAME
atalkd.conf - Configuration file used by atalkd(8) to determine the interfaces used by the master Netatalk daemon DESCRIPTION
/etc/netatalk/atalkd.conf is the configuration file used by atalkd to configure the Appletalk interfaces and their behavior Any line not prefixed with # is interpreted. The configuration lines are composed like: Interface [ options ] The simplest case is to have either no atalkd.conf, or to have one that has no active lines. In this case, atalkd should auto-discover the local interfaces on the machine. Please note that you cannot split lines. The interface is the network interface that this to work over, such as eth0 for Linux, or le0 for Sun. The possible options and their meanings are: -addr net.node Allows specification of the net and node numbers for this interface, specified in Appletalk numbering format (example: -addr 66.6). -dontroute Disables Appletalk routing. It is the opposite of -router. -net first[-last] Allows the available net to be set, optionally as a range. -noallmulti (linux only) On linux the interfaces, atalkd uses, are set to ALLMULTI by default caused by countless NICs having problems without being forced into this mode (some even don't work with allmulti set). In case, you've a NIC known to support multicasts properly, you might want to set this option causing less packets to be processed -phase ( 1 | 2 ) Specifies the Appletalk phase that this interface is to use (either Phase 1 or Phase 2). -router Like -seed, but allows single interface routing. It is the opposite of -dontroute. -seed The seed option only works if you have multiple interfaces. It also causes all missing arguments to be automagically configured from the network. -zone zonename Specifies a specific zone that this interface should appear on (example: -zone "Parking Lot"). Please note that zones with spaces and other special characters should be enclosed in parentheses. SEE ALSO
atalkd(8) Netatalk 2.2 22 September 2000 ATALKD.CONF(5)