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

    Share files and printers

    Scheduled Pinned Locked Moved Firewalling
    13 Posts 4 Posters 8.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.
    • M
      Metu69salemi
      last edited by

      What you use to share those printers in ubuntu? what is in those conf-files? does those confs allow which subnets?

      Maybe this question had to split into ubuntu and pfsense forums. ubuntu print sharing, pfsense port opening.
      So what is the software to share those printers in lan? so there we could get the port number to open up as an example cups uses tcp:631

      1 Reply Last reply Reply Quote 0
      • A
        Alan87i
        last edited by

        Since the printers are attached to PC's and not network IP based printers I would think you might have to either bridge the subnets in PFsense or modify the hosts file on the kids PC's so those PC's know where the server and print share PC's are.

        1 Reply Last reply Reply Quote 0
        • P
          pcbosrders
          last edited by

          @Metu69salemi:

          What you use to share those printers in ubuntu? what is in those conf-files? does those confs allow which subnets?

          Maybe this question had to split into ubuntu and pfsense forums. ubuntu print sharing, pfsense port opening.
          So what is the software to share those printers in lan? so there we could get the port number to open up as an example cups uses tcp:631

          cups server on both machines running standard 631 port

          don't fix it, if ain't broken !!!

          1 Reply Last reply Reply Quote 0
          • M
            Metu69salemi
            last edited by

            What else you run? smb?

            1 Reply Last reply Reply Quote 0
            • P
              pcbosrders
              last edited by

              @Metu69salemi:

              What else you run? smb?

              NFS file shares
              on the same 2 machines that share printers
              And twonky media server on 192.168.0.100

              don't fix it, if ain't broken !!!

              1 Reply Last reply Reply Quote 0
              • M
                Metu69salemi
                last edited by

                Do you have any firewalls in those ubuntu machines?
                Here is quote from this site

                Allow only traffic from authorised NFS clients to the NFS server (on server)

                Supposing that an NFS server only provides the NFS service but nothing else so there are three ports available to use on the server, i.e., RPC Portmapper (on port 111), NFS (on port 2049), and Mountd (on port 2219). Here we can do some filtering on traffic that goes to the NFS server. Through the iptables firewall running locally on the NFS server (you must install iptables to use the following commands), allow only traffic from any authorised NFS client to the server. Allow traffic from an authorised subnet 10.226.43.0/24 to the ports Portmapper, NFS, and Mountd.
                #iptables -A INPUT -i eth0 -s 10.226.43.0/24 -dport 111 -j ACCEPT
                #iptables -A INPUT -i eth0 -s 10.226.43.0/24 -dport 2049 -j ACCEPT
                #iptables -A INPUT -i eth0 -s 10.226.43.0/24 -dport 2219 -j ACCEPT

                So for nfs you should allow tcp ports: 111, 2049 and 2219. If you also use dns port 53 should be open and even udp easys a little (TCP dns query works, but it's slower)

                1 Reply Last reply Reply Quote 0
                • P
                  pcbosrders
                  last edited by

                  so my rule would be in the lan interface

                  TCP KIDSSUBNET net * 192.168.0.100 111 * none   allow access to file server 
                  TCP KIDSSUBNET net * 192.168.0.100 2049 * none   allow access to file server 
                  TCP KIDSSUBNET net * 192.168.0.100 2219 * none   allow access to file server

                  TCP wifi net * 192.168.0.100 111 * none   allow access to file server 
                  TCP wifi net * 192.168.0.100 2049 * none   allow access to file server
                  TCP wifi net * 192.168.0.100 2219 * none   allow access to file server 
                  probley create a alias with both server ips
                  would this be right !

                  don't fix it, if ain't broken !!!

                  1 Reply Last reply Reply Quote 0
                  • M
                    Metu69salemi
                    last edited by

                    Almost right.. pfsense works in ingress. So if you want to allow traffic from kidssubnet to lan, you'll need to create that rule in kidssubnet interface.

                    and to ease up, you can create two aliases:
                    port alias with following: 111, 631, 2049 & 2219
                    host alias with both server ip's

                    and then create rule
                    tcp/udp    !!THAT INTERFACE WHERE YOU WANT TO ALLOW TRAFFIC!! * ServerAlias PortAlias * none NFS/CUPS traffic

                    And if that wont work i'll give up, cause i've nothing else on my sleeves to get this work, except checking linux configs

                    1 Reply Last reply Reply Quote 0
                    • P
                      pcbosrders
                      last edited by

                      i got to get pfsense works in ingress in my head and i think i should be able to figure the rest of filtering out
                      thanks Again
                      created to alias nfsports with the 4 ports
                      and created fileservers with the serverips
                      hope this works got it setup and will try it, see what  happens

                      don't fix it, if ain't broken !!!

                      1 Reply Last reply Reply Quote 0
                      • C
                        cygnes
                        last edited by

                        I'm also having problems allowing access to standard file and printer sharing on a 2 LAN 2 Gateway setup..

                        any help would be appreciated.

                        1 Reply Last reply Reply Quote 0
                        • M
                          Metu69salemi
                          last edited by

                          You're not telling important info, what kind of printer sharing etc

                          1 Reply Last reply Reply Quote 0
                          • P
                            pcbosrders
                            last edited by

                            @pcboarders:

                            i got to get pfsense works in ingress in my head and i think i should be able to figure the rest of filtering out
                            thanks Again
                            created to alias nfsports with the 4 ports
                            and created fileservers with the serverips
                            hope this works got it setup and will try it, see what  happens

                            seems to work for all printers and files that are ubuntu based (nfs)
                            samba is having a canary re-configuring samba to see if that works

                            don't fix it, if ain't broken !!!

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