OPNsense Forum

Archive => 23.7 Legacy Series => Topic started by: RLuceac on November 07, 2023, 10:14:45 PM

Title: Allow only Internet trafic
Post by: RLuceac on November 07, 2023, 10:14:45 PM
Hello my friends,

I have a opnsense setup with multiple vlans, and for some of them I do not want inter Vlan comunication, only access to internet.

I created a PASS rule on  vlan1 interface, allowing vlan1 net to wan net. but it does not work...

If I create an allow any to any rule I get internet access on that vlan...

Why my vlan1 net  to wan net not working?

What files I can get in opnsense to post here?

Thanks
Title: Re: Allow only Internet trafic
Post by: Patrick M. Hausen on November 07, 2023, 10:24:02 PM
WAN net is only the directly connected network on the WAN interface.

The Internet is "any".

To prohibit a VLAN from accessing other VLANs you need a more specific deny rule in front of the general ("Internet") allow rule.

Source: VLAN X
Destination: Group of all other VLANs (for example)
Action: deny

Source: VLAN X
Destination: any
Action: allow
Title: Re: Allow only Internet trafic
Post by: RLuceac on November 08, 2023, 02:12:32 AM
Thanks!

I create the block rules and after that the allow any..

It works...

A lot of work, but works..
Title: Re: Allow only Internet trafic
Post by: clownschiff on November 08, 2023, 09:07:01 AM
We do it like this:

Title: Re: Allow only Internet trafic
Post by: lukazy on June 12, 2024, 04:21:59 PM
I found it to work only if you use the Destination/Invert checkbox (not the source) which makes more sense.
Or am I wrong?
Title: Re: Allow only Internet trafic
Post by: Patrick M. Hausen on June 12, 2024, 06:47:50 PM
Destination invert is correct.