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

    Newb Q: allow traffic between two interfaces

    Scheduled Pinned Locked Moved Firewalling
    13 Posts 2 Posters 10.0k 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.
    • B
      BDT
      last edited by

      We have 2 interfaces, one of them has printers and a file server that the other one cannot access.

      How can I make a firewall rule to allow traffic from the other one to the printers & server?

      Or is it something else I need to do? Open ports, or?

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

        Create a firewall rule on the interface the traffic will first enter pfsense to go where you want it to go.  For example out of the box the lan firewall rules are any any.. so lan can go anywhere.

        But if you create a new interface opt1, it will have no rules.  so you could create a simple any any rule to get things working.  And then lock down these rules to only allow the traffic you want based upon either source IP to dest IP, or dest Port, or protocol or combo like tcp port 9100 is a common printing port.  So you could say source IP 1.2.3.4 can only talk to dest IP 4.5.6.7 via tcp port 9100, etc..

        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.7.2, 24.11

        1 Reply Last reply Reply Quote 0
        • B
          BDT
          last edited by

          Thank you!

          I created these rules, but I think I'm missing something?

          I want CastleBlack to be able to connect to the resources of CP. It can go both ways, too.

          cb.PNG
          cb.PNG_thumb
          cp.PNG
          cp.PNG_thumb
          firewall.PNG
          firewall.PNG_thumb

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

            dude for what possible reason would you put a any any in floating?  Do you just wan to route and not firewall?

            Your any any rule in castleblack would let it go anywhere, yes even cp - but maybe you have software firewall on devices in CP that block it?

            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.7.2, 24.11

            1 Reply Last reply Reply Quote 0
            • B
              BDT
              last edited by

              Just a desperate attempt, really.

              I can ping devices on CB but what I really want is to share the printers and a file server so that CB can access them.

              How can I do this? What am I missing?

              Do I have to get to the printers and server and manually set them up to somehow serve both interfaces?
              Is there a way around this through pfSense?

              Thanks a lot in advance!

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

                dude if your firewall rules are any any on the interface your trying to access your printers/servers on cb from then all traffic would be allowed.  your servers are prob running a firewall that would print the access your trying.  You would need to also adjust the firewall on the servers to allow the traffic from the network your coming from.

                As to your printers.  If you can ping them and you should be able to print to them.  How are you trying to add them to what your printing from?  You will not be able to broadcast for them.  You would have to add their IP to what your trying to print from or have dns setup to allow for them to be added via their name that resolves to their IP.  Are you trying to use something like airprint to add them?  If so that does not work across networks.  You would have to setup say avhai to be able to find them or again setup their IP or name that resolves to their IP in what your trying to print from.

                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.7.2, 24.11

                1 Reply Last reply Reply Quote 0
                • B
                  BDT
                  last edited by

                  Alright so then, I'm done with pfSense, I need to get to the devices individually.
                  Should I delete the rule in floating, then?

                  The server is SunOS, old version. Then, I need to configure its firewall.

                  The printers are just regular printers which the guys are accessing from their PCs, Windows device finder. There is no central program I'm using to configure them.
                  I was hoping to broadcast for them on both networks, so the guys would see them by searching for devices.

                  You Avahi suggestion seems promising, maybe I could use that.

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

                    If your machines are in windows AD then if your printers are in AD they will find them.  In a work setup why would you not be using a print server anyway?  Why would uses be directly wanting to add printers to their machines?

                    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.7.2, 24.11

                    1 Reply Last reply Reply Quote 0
                    • B
                      BDT
                      last edited by

                      Machines aren't in Windows AD, we have no Windows servers.
                      It's a small company - with no IT department except for now, me :)  inherited all this and I'm trying to make sense of the whole thing.

                      The only server we have is this SunOS file server.

                      I will look into the idea of a print server - this doesn't exist here.

                      But so far, users just find the printers connected to the network and print there.
                      It seemed to work fine until now, when I need to give access to the server and printers to CB.

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

                        " users just find the printer"

                        How do they "find" the printers?  Why would they not just add the name of the printer which should resolve to the IP of the printer.  Expecting to broadcast or use say airprint/mdns to find the printer only works when everyone is on the same layer 2 network.

                        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.7.2, 24.11

                        1 Reply Last reply Reply Quote 0
                        • B
                          BDT
                          last edited by

                          I mean, in CP, printers are discoverable.

                          Thanks for the tip, will try that tomorrow.
                          There's a LOT to learn ahead.

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

                            well yeah in same layer 2 network you can broadcast for name or use mdns to find the names if like airprint or something.  When you cross networks you can not do such things.  So you either resolve via dns, or you could setup your ns to do mdns and point to the correct IPs or you could use something like avhai to proxy that across subnets.

                            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.7.2, 24.11

                            1 Reply Last reply Reply Quote 0
                            • B
                              BDT
                              last edited by

                              Will try to resolve through DNS first and see how that goes. I reckon this might turn out easier than handling the SunOS firewall

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