LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-23-2012, 07:06 PM   #1
Lantzvillian
Member
 
Registered: Oct 2007
Location: BC, Canada
Distribution: Fedora, Debian
Posts: 210

Rep: Reputation: 41
Fedora ebtables not forwarding traffic


Hi all,

Original problem:

I am running on Fedora 17 with the latest ebtables and have been trying to setup a transparent bridge - using the following script, I send a ping through the bridged host and only see the requests, BUT, arps and arp replies are making it through.

My host is setup - Client 192.168.1.10 <-- eth0 <Bridgehost br0> --> eth2 192.168.1.20

Here is the edited script

Code:
#!/bin/bash
# Ebtables transparent firewall script
INF0="eth0"
INF1="eth2"

ifconfig $INF0 down
ifconfig $INF1 down
ifconfig $INF0 0.0.0.0 up
ifconfig $INF1 0.0.0.0 up

/usr/sbin/brctl addbr br0
/usr/sbin/brctl stp br0 off
/usr/sbin/brctl addif br0 $INF0
/usr/sbin/brctl addif br0 $INF1
/usr/sbin/brctl setfd br0 5
ifconfig br0 0.0.0.0 up

# Make sure forwarding is on
echo "1" > /proc/sys/net/ipv4/ip_forward

# DEFAULT POLICY
ebtables -P INPUT ACCEPT
ebtables -P OUTPUT ACCEPT
ebtables -P FORWARD ACCEPT

# FLUSH TABLES
ebtables -F FORWARD
ebtables -F INPUT
ebtables -F OUTPUT

# Forward Arp and IPv4 Traffic
ebtables -A FORWARD -p ip -j ACCEPT
ebtables -A FORWARD -p arp -j ACCEPT

# Just to make sure
iptables -I FORWARD -j ACCEPT
The verify in /etc/sysctl.conf that these are set to 0

Code:
net.bridge.bridge-nf-call-ip6tables = 0
net.bridge.bridge-nf-call-iptables = 0
net.bridge.bridge-nf-call-arptables = 0
Verify that NetworkManager is off:

Code:
sudo ckconfig NetworkManager off
Finally verify that your interfaces are up and running.. make sure you have management interfaces unplugged for testing... some weird routing issues can happen and you won't be able to isolate the issue with the bridge.

Last edited by Lantzvillian; 10-24-2012 at 12:56 PM. Reason: Solved
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Forwarding Http traffic through another machine in my LAN bi0s.kidd0 Linux - Networking 3 02-25-2012 07:41 AM
Forwarding traffic to another machine eaglefly Linux - Networking 6 09-19-2011 02:33 PM
[SOLVED] forwarding all internet traffic through proxy BHABANIPRASADPATI Linux - Networking 2 07-20-2011 10:20 AM
TCP traffic forwarding shathil Linux - Networking 1 09-05-2009 10:46 PM
Forwarding traffic between 2 NICs! muzzamil.luqman Linux - Networking 4 12-08-2005 05:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 08:21 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration