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

    How to block connection from pc1 to pc2 (HELP)

    Scheduled Pinned Locked Moved Firewalling
    23 Posts 4 Posters 6.6k 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.
    • johnpozJ
      johnpoz LAYER 8 Global Moderator
      last edited by

      If you do not understand how to use/configure the built in firewall on a windows system.  Your questions would be better directed towards a windows support board vs pfsense board.

      As stated pfsense can not filter traffic between 2 pcs on the same subnet - traffic between them would never touch pfsense.  Unless as stated they were on different switches/interfaces and pfsense was bridging the traffic between them or the pcs were on different network segments and pfsense was routing the traffic between the segments.

      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
      • B
        billychongg
        last edited by

        @johnpoz:

        If you do not understand how to use/configure the built in firewall on a windows system.  Your questions would be better directed towards a windows support board vs pfsense board.

        As stated pfsense can not filter traffic between 2 pcs on the same subnet - traffic between them would never touch pfsense.  Unless as stated they were on different switches/interfaces and pfsense was bridging the traffic between them or the pcs were on different network segments and pfsense was routing the traffic between the segments.

        johnpoz ,
        Podilarius,

        Can you these 2 hero member, assist me to setup pfsense ? I prefer use pfsense to block the traffic / connection between pc1 and pc2
        ((Unless as stated they were on different switches/interfaces and pfsense was bridging the traffic between them or the pcs were on different network segments and pfsense was routing the traffic between the segments.))

        Appreciated….

        Cheer
        Billy

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

          Well, which way do you want to go. using different subnets on different interfaces is the way to go. It uses less resources.

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

            So you have 2 computers??  And you want to put them on different segments?  Or do you have other machines as well?  Do they need to talk to pc1 or pc2?

            Why do you need to block connectivity between these 2 pcs?  Curious?

            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
            • B
              billychongg
              last edited by

              @podilarius:

              Well, which way do you want to go. using different subnets on different interfaces is the way to go. It uses less resources.

              podilarius,

              using different subnet on different interfaces, as u suggest. Kindly please post some screen shot to me.

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

                And does your pfsense box have an extra interface?

                How are you PCs connected to pfsense now, I have to assume a switch is connected to lan interface of pfsense?

                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
                • B
                  billychongg
                  last edited by

                  @johnpoz:

                  So you have 2 computers??  And you want to put them on different segments?  Or do you have other machines as well?  Do they need to talk to pc1 or pc2?

                  Why do you need to block connectivity between these 2 pcs?  Curious?

                  johnpoz

                  Actually I had 17 client computer, 1 pfsense firewall and 1 game server. I am operate cyber business some games I need to block not allow children to play. Any solutions for me ?

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

                    @johnpoz:

                    And does your pfsense box have an extra interface?

                    How are you PCs connected to pfsense now, I have to assume a switch is connected to lan interface of pfsense?

                    Yes it is connected pfsense and I had wan , lan 1 lan2

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

                      So you have 17 computers, connected how to pfsense?  Are there switches connected to both lan1 and lan2?  Or just switch connected to lan1

                      So the games aer on this game server, and you want 1 of the 17 machines not to be able to talk to the game server?  It would be much easier to just block this IP or ports on your games from this 1 machines IP at the local firewall of the game server than a reconfig of your network to place this 1 game server on its own segment?

                      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
                        podilarius
                        last edited by

                        You can also use VLANs on the LAN side to create multiple "subnets" without them being able to get to other subnets via an IP change. Certainly a more complex setup.
                        johnpoz - This is why I suggested using the Windows FW or using IPTables, it is is a linux system. There are many ways to do this, but a local FW on the game server is the easiest. going multi-subnet or multi-vlan is more complex.

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

                          I agree local host firewall is the easiest method without having to teach him networking ;)

                          Trying to understand why he thinks he even needs to filter traffic, and what he wants to accomplish - clearly he has more than 1 PC.

                          I am very curious is how these people get/find go with a product like pfsense when they don't even seem to know basic concepts. It for sure is a testament to the ease of setup of pfsense to be sure.  Like that thread where person was ticked that dns was listening on interfaces and recursive.  Do you really think users that don't understand pcs on same segment don't talk to the gateway would know what services they need to turn on and what interfaces to listen on for internet to work ;)

                          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
                          • B
                            billychongg
                            last edited by

                            @johnpoz:

                            So you have 17 computers, connected how to pfsense?  Are there switches connected to both lan1 and lan2?  Or just switch connected to lan1

                            So the games aer on this game server, and you want 1 of the 17 machines not to be able to talk to the game server?  It would be much easier to just block this IP or ports on your games from this 1 machines IP at the local firewall of the game server than a reconfig of your network to place this 1 game server on its own segment?

                            johnpoz

                            I am using 24 port dlink switch connect to those 17 pc. The switch connect to Lan1

                            (you want 1 of the 17 machines not to be able to talk to the game server? )  YES

                            I tried to block the client IP n source port but fail.

                            The local games server not able to turn on firewall.

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

                              "The local games server not able to turn on firewall. "

                              Well I would suggest you fix that, and then you can block what you want.

                              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
                              • B
                                billychongg
                                last edited by

                                @podilarius:

                                You can also use VLANs on the LAN side to create multiple "subnets" without them being able to get to other subnets via an IP change. Certainly a more complex setup.
                                johnpoz - This is why I suggested using the Windows FW or using IPTables, it is is a linux system. There are many ways to do this, but a local FW on the game server is the easiest. going multi-subnet or multi-vlan is more complex.

                                podilarius

                                I will try to follow your vlan solution. I really need to block it in behind the games server it is more practical. By the way do you know how to setup IPtable ?

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

                                  so the game server is linux?  Then I would suggest you install webmin on it, this gives you an easy to use and understand graphically interface to your firewall (iptables)

                                  So does your switch support vlans?  Your going to have to connect the server you want to block to your other lan port as the easier option.  But what your doing it much easier with just a host firewall.  Now if you had bunch of servers that you wanted to control access from your clients then sure put all the servers on segment 1, and clients on segment 2 and then you could use pfsense to control access.

                                  But you got 1 server and 1 client you need to filter - this is easier done on the 1 server.

                                  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
                                    podilarius
                                    last edited by

                                    Vlans might be an over complication for this situation. You have to have a switch that supports it. Has Johnpoz said put iptables on the linux server and use that to manage iptables. This is not the place to into configuring it though. I do know how though.

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

                                      @podilarius:

                                      Vlans might be an over complication for this situation. You have to have a switch that supports it. Has Johnpoz said put iptables on the linux server and use that to manage iptables. This is not the place to into configuring it though. I do know how though.

                                      Thanks Polilarius and Johnpoz. I will try the suggestion. Appreciated yours precious ideal and time to reply the post.

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