Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I allow all traffic for a kind of "switch" #3767

Open
yxh4n opened this issue Feb 20, 2024 · 2 comments
Open

How can I allow all traffic for a kind of "switch" #3767

yxh4n opened this issue Feb 20, 2024 · 2 comments
Labels
question Further information is requested

Comments

@yxh4n
Copy link

yxh4n commented Feb 20, 2024

I have an edge node with 3 NICs. I would like to have the 2 NICs connected to a "switch" configuration so that it can talk to an external flat network.

How can I do this?

The documentation (https://github.com/lf-edge/eve/blob/master/docs/NETWORK-ACLS.md#allow-all-ipv4-traffic) seems to indicate that I have to have ACL even for layer 2. But can't figure out how to do this. I have spent too much time researching this - any help is greatly appreciated.

@yxh4n yxh4n added the question Further information is requested label Feb 20, 2024
@eriknordmark
Copy link
Contributor

@yxh4n will the two NICs be connected to different external Ethernet networks? If not, do you have a drawing showing the intended IP addresses and communication paths? (Need to understand whether you might accidentally create a L2 loop resulting in broadcast storms, or you intent to have use link aggregation, or something else for those two NICs.)

For the simpler case of one NIC connected to an external Ethernet network (or two NICs connected to two separate external Ethernet network), you define a switch network instance (or two if two NICs), and then for the app instances which use this you define IP-level ACLs. If you want all traffic to pass you specify an ACL for 0.0.0.0/0. But you can also specify different IP ranges and TCP/UDP ports to allow.

@yxh4n
Copy link
Author

yxh4n commented Feb 22, 2024

RE: will the two NICs be connected to different external Ethernet networks?
Yes.

RE: If you want all traffic to pass you specify an ACL for 0.0.0.0/0
Yes. It took me a while to figure out how to do this using Zededa web UI. What made it difficult to discover was that we started with no ACL for App-Shared. Most solutions I have used so far does not have ACLs for virtual switch (Hyper-V and VMware). Azure VMs/networking is a different story.

When we did add ACE and update the instance - it was erroring out. It took us very long time to realize that if we have the ACE already defined in ECI (EVE Container Instance?) in the Outbound - then deploy works.

I was not expecting to do the ACE in the Outbond in Zededa web UI (because I was thinking inbound/outbond rules).

Anyway, I am wondering if there is a way to do it via cli?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants