RE: IPTABLES and EBTABLES

Errol Mangwiro emangwiro at live.com
Sat Nov 3 17:54:59 UTC 2012


your commands are for iptables not ebtables. another way you could do this is to use system-config-firewall to setup masquerading and a stock set of rules for you since you’re not familiar with netfilter, and then add your custom rules later.


From: Lázaro Morales
Sent: ‎31‎ ‎October‎ ‎2012 ‎3‎:‎39‎ ‎PM
To: users at lists.fedoraproject.org
Subject: IPTABLES and EBTABLES



Hello,

How can be used EBTABLES in addition to IPTABLES to forward traffic
 from an internal LAN to an external?

Suppose that I have an internal LAN with private IPs, and a Gateway
that control the traffic to the outside, and I only need forward traffic
for certain MAC address regardless IP address.


       INTERNET  --> Gateway <--- LAN

I'm not sure if I have to enable the following modules in `sysctl.conf`:
   net.bridge.bridge-nf-call-iptables = 0
   net.bridge.bridge-nf-call-arptables = 0

I have tried with the following configuration, but nothing happens:

# ebtables -F
# ebtables -t nat -F
# ebtables -P INPUT ACCEPT
# ebtables -P OUTPUT ACCEPT
# ebtables -P FORWARD ACCEPT
# ebtables -A FORWARD -i eth0 -o eth1 -j ACCEPT
# ebtables -t nat -A POSTROUTING -s INTERNAL_LAN_CLIENT_MAC -o eth1 \
            -j snat --to-source MAC_OF_EXTERNAL_GATEWAY_INTERFACE

Any thought will be highly appreciated.
Thanks in advance,
Lázaro.

*****************************************************************************
*  Este mensaje de correo electrónico ha sido procesado  por el  *
*  Servidor  de Correo  Electrónico  de  Frioclima  y  es un correo *
*  válido para el dominio: frioclima.com.cu                                     *
*****************************************************************************


-- 
users mailing list
users at lists.fedoraproject.org
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
Have a question? Ask away: http://ask.fedoraproject.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.fedoraproject.org/pipermail/users/attachments/20121103/e311b07b/attachment.html>


More information about the users mailing list