• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
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.1k 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 Offline
    BDT
    last edited by Sep 13, 2016, 2:06 PM

    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
    • J Offline
      johnpoz LAYER 8 Global Moderator
      last edited by Sep 13, 2016, 2:38 PM

      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 25.07.1 | Lab VMs 2.8, 25.07.1

      1 Reply Last reply Reply Quote 0
      • B Offline
        BDT
        last edited by Sep 18, 2016, 8:38 PM

        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
        • J Offline
          johnpoz LAYER 8 Global Moderator
          last edited by Sep 21, 2016, 6:41 PM

          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 25.07.1 | Lab VMs 2.8, 25.07.1

          1 Reply Last reply Reply Quote 0
          • B Offline
            BDT
            last edited by Sep 22, 2016, 12:09 PM

            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
            • J Offline
              johnpoz LAYER 8 Global Moderator
              last edited by Sep 22, 2016, 12:50 PM

              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 25.07.1 | Lab VMs 2.8, 25.07.1

              1 Reply Last reply Reply Quote 0
              • B Offline
                BDT
                last edited by Sep 22, 2016, 1:05 PM

                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
                • J Offline
                  johnpoz LAYER 8 Global Moderator
                  last edited by Sep 22, 2016, 1:33 PM

                  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 25.07.1 | Lab VMs 2.8, 25.07.1

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    BDT
                    last edited by Sep 22, 2016, 2:37 PM

                    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
                    • J Offline
                      johnpoz LAYER 8 Global Moderator
                      last edited by Sep 22, 2016, 2:58 PM

                      " 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 25.07.1 | Lab VMs 2.8, 25.07.1

                      1 Reply Last reply Reply Quote 0
                      • B Offline
                        BDT
                        last edited by Sep 22, 2016, 4:10 PM

                        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
                        • J Offline
                          johnpoz LAYER 8 Global Moderator
                          last edited by Sep 22, 2016, 4:23 PM

                          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 25.07.1 | Lab VMs 2.8, 25.07.1

                          1 Reply Last reply Reply Quote 0
                          • B Offline
                            BDT
                            last edited by Sep 22, 2016, 4:48 PM

                            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
                            13 out of 13
                            • First post
                              13/13
                              Last post
                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
                              This community forum collects and processes your personal information.
                              consent.not_received