Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    Blocking inter-vlan and full acces to Internet

    Scheduled Pinned Locked Moved Firewalling
    3 Posts 3 Posters 4.4k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R Offline
      rcaamer
      last edited by

      I have set up 20 Vlans , i would like to block communications inter-vlan and have a full acces to Internet for each vlan .

      Have i to create rules likes ?

      subnet vlan 1 ==> any ==> pass
      subnet vlan 1 <==> vlan2 ==> block 
      subnet vlan 1 <==> vlan3 ==> block 
      subnet vlan 1 <==> vlan4 ==> block 
      etc ..
      subnet vlan 2 ==> any ==> pass
      subnet vlan 2 <==> vlan1 ==> block 
      subnet vlan 2 <==> vlan3 ==> block 
      subnet vlan 2 <==> vlan4 ==> block 
      etc …

      Is there a way to define less rules ?

      Best regards

      1 Reply Last reply Reply Quote 0
      • ? This user is from outside of this forum
        Guest
        last edited by

        without having tested it myself but it should work just fine with alias

        /F

        1 Reply Last reply Reply Quote 0
        • GruensFroeschliG Offline
          GruensFroeschli
          last edited by

          1: Create an alias containing all your vlans.
          2: Create a single "allow" rule with
           source: any
           destionation: !youralias (NOT your alias)
          3: Repeat 2. on each VLAN interface.

          Like this traffic to the internet will be allowed, but traffic to your vlans will be denied by the default block all rule.

          We do what we must, because we can.

          Asking questions the smart way: http://www.catb.org/esr/faqs/smart-questions.html

          1 Reply Last reply Reply Quote 0
          • First post
            Last post
          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.