IPTABLES and EBTABLES

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxxxxxxxx
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


[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux