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

    Sharing across multiple vlans

    Scheduled Pinned Locked Moved Off-Topic & Non-Support Discussion
    9 Posts 3 Posters 3.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.
    • N
      northumbria2010
      last edited by

      hi there

      actually i am having difficulty with vlan resource sharing as i have configured 5 vlans by using cisco 3550 switch in other terms its router(pfsense) on the stake, everything is working fine even all vlans clients can ping other vlan clients but the problem is that i want to share resources like freenas and printer but i havent got any luck with it,
      i shall be thankful if anybody can help me to find the right way to resolve this issue

      regards

      1 Reply Last reply Reply Quote 0
      • johnpozJ
        johnpoz LAYER 8 Global Moderator
        last edited by

        Well your 5 vlans are all rfc1918 I would assume so why would you be doing nat?

        So you can ping the freenas IP, you can resolve the freenas fqdn that your using local?  What sort of share are you trying to use of freenas its supports multiple options.

        SMB/CIFS (Windows File shares), NFS (Unix File shares) and AFP (Apple File Shares), FTP, iSCSI (block sharing), and more.

        What firewall rules did you create on the interface that is starting the conversation to your freenas?

        Same thing goes for your printer.  What printing protocol are you using? lpr, IPP, windows?

        An intelligent man is sometimes forced to be drunk to spend time with his fools
        If you get confused: Listen to the Music Play
        Please don't Chat/PM me for help, unless mod related
        SG-4860 24.11 | Lab VMs 2.8, 24.11

        1 Reply Last reply Reply Quote 0
        • P
          phil.davis
          last edited by

          Each device that shares a resource will need to have a correct CIDR for the subnet it is in, and a gateway set (to the pfSense interface IP in its subnet). Those things will ensure it can route back requests coming in from clients on other subnets in other VLANs.

          Without those, it will talk happily to clients in its on subnet, but not outside.

          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

          1 Reply Last reply Reply Quote 0
          • N
            northumbria2010
            last edited by

            thanks Phil
            would you please explain it a bit more with example .

            regards

            1 Reply Last reply Reply Quote 0
            • P
              phil.davis
              last edited by

              Let's say the printer is in 192.168.1.0/24 subnet, the pfSense interface in that VLAN is set to 192.168.1.1/24 and the IP address of the printer (in the printer setup somewhere) has been set to 192.168.1.42

              Then in the printer setup somewhere you need to tell it:
              CIDR 24 - i.e. the full specification of the printer's IP address is 192.168.1.42/24
              Gateway 192.168.1.1 (the pfSense).

              Then the printer will know how to talk outside its own local subnet.

              If the printer does not have anywhere to specify a gateway, then report back - it is possible on pfSense to NAT the clients in other VLANs out to the printer, so it looks to the printer as if the print requests are coming from the local pfSense IP address. But there is no need to mess with that if the printer lets you specify a gateway.

              As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
              If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

              1 Reply Last reply Reply Quote 0
              • N
                northumbria2010
                last edited by

                hi there

                look into the network diagram and please share your expert opinion as i need to share my printer and freenass with other vlans.

                regards

                ![Proxy Server Diagram.png](/public/imported_attachments/1/Proxy Server Diagram.png)
                ![Proxy Server Diagram.png_thumb](/public/imported_attachments/1/Proxy Server Diagram.png_thumb)
                Capture.PNG
                Capture.PNG_thumb

                1 Reply Last reply Reply Quote 0
                • P
                  phil.davis
                  last edited by

                  You can't put all the various rules on a single interface (I guess the screen shot is of rules on the LAN interface?).

                  On each interface you need to have rule(s) that permit traffic originating (source) from that interface subnet, and going to (destination) the interface subnet to which the traffic is allowed.

                  So you need to put, for example, a rule on VLAN40WIFI that has source VLAN40WIFInet and destination LANnet (or your Printers alias).

                  The basic principle is that you need to pass (or block) traffic with rules on the interface on which it first arrives to pfSense.

                  As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                  If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                  1 Reply Last reply Reply Quote 0
                  • N
                    northumbria2010
                    last edited by

                    hi phil

                    actually theses rules belongs to vlan10admin
                    and almost same rules on each vlan(vlan20production, vlan30moulding, vlan40WIFI AND VLAN50PRINTERS)
                    for your understanding i am attaching each interface rules so please suggest me the best solution as everthing is working fine just cant figure out how to print from other vlans and access freenass drives

                    regards

                    LAN-RULES-CONTINUE.PNG
                    LAN-RULES-CONTINUE.PNG_thumb
                    LAN-RULES-FINISHED.PNG
                    LAN-RULES-FINISHED.PNG_thumb
                    VLANINTERFACE.PNG
                    VLANINTERFACE.PNG_thumb
                    VLAN10.PNG
                    VLAN10.PNG_thumb
                    VLAN20.PNG
                    VLAN20.PNG_thumb
                    VLAN30.PNG
                    VLAN30.PNG_thumb
                    VLAN40.PNG
                    VLAN40.PNG_thumb
                    VLAN50.PNG
                    VLAN50.PNG_thumb

                    1 Reply Last reply Reply Quote 0
                    • P
                      phil.davis
                      last edited by

                      1. (Not related to the printer/FreeNAS topic) - you do not need all those "extra" rules on each interface, with source=SOMEOTHERnet destination=THISnet - nothing will ever match those, because traffic arriving from THISnet will have source in THISnet (not in SOMEOTHERnet)

                      2. You have general pass-all rules at the top of each net, good for getting the printer/FreeNAS working. But you also have rules down the bottom that direct general traffic to a gateway (those rules will not have any effect just now, because the top pass-all rule will be matching all the traffic). But if you do remove the top pass-all rule at some point, then all the traffic is going to get dire cted to a gateway or gateway-group. That will mess up access to the printer/FreeNAS. So you will need a rule at the top with source THISnet, destination LANnet to pass "local" traffic between subnets without pushing it to a gateway.

                      Your rules should work OK (and they do, because you can do other stuff between subnets). So you really need to setup your printer to have the pfSense LANnet IP address as its gateway - you have to do that somewhere on the printer setup screen or whatever.

                      As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                      If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

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