RE: IPTABLES and EBTABLES

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

 



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