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

    Blocking traffic to some internal ip addresses

    Scheduled Pinned Locked Moved General pfSense Questions
    18 Posts 3 Posters 1.2k 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.
    • O
      OpenWifi
      last edited by johnpoz

      Hello guys. So i have this Wisp service i am running and i am having some challenge disconnecting some ip addresses whenever they are late for payment. All the ip addresses are static. So how can i stop traffic from some ip addresses when they fail to pay? Thank you

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

        Simple block firewall rule with their IP as source.

        You could create a simple alias that you add IPs to keep it easy to manage ;) You could get really fancy and prob even script that.. Better yet would be to redirect all their http traffic to a site that says hey you need to pay your bill...

        BTW: Edited your post added spaces after your punctuation so they didn't look like links

        guys.so
        

        will look like a link

        guys. so
        

        Will not ;)

        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
        • O
          OpenWifi
          last edited by

          Hahahaha.thank you..Now what site could i use for that? You seem know more

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

            Dude USE a space after your punctuation!! ;)

            Hahahaha.thank you..Now
            

            Are you on twitter or something? Not on some very limited character count here ;) Is your space bar sticking or something?

            Site for what - just point them to something local running httpd.. Or sure you could host a static html site out on the public net or even on pfsense for that matter if really needed too.

            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
            • O
              OpenWifi
              last edited by

              R u an english teacher?? Thank you

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

                No, but sure makes it easier to read! ;)

                And doesn't make stuff look like links that are not suppose to be... When you see stuff like guys.so - you look like a spammer trying to get hits on links in some seo nonsense spammer idea.

                I was this close to just banning you and deleting the thread because with the links looked like spammer post, until I saw you were not a one post wonder and took a look to where the links were going.

                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
                • C
                  conor
                  last edited by

                  If in the unlikely event you are natting your clients make sure you also remove any existing states for those IP addresses after you add their IP to the blocking alias etc.

                  200+ pfSense installs - best firewall ever.

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

                    ^ very true.. But even if you don't not like they would be going to any new sessions.. So while sure if they had session open to google when you blocked, they wouldn't be able to create new connection to cnn for example.

                    BTW @conor are you running that many boxes on 2.4.2 code? Or are you just not able to update your sig?

                    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
                    • C
                      conor
                      last edited by

                      @johnpoz said in Blocking traffic to some internal ip addresses:

                      BTW @conor are you running that many boxes on 2.4.2 code?

                      Haven't bothered to update the signature, running more than that now anyway.

                      200+ pfSense installs - best firewall ever.

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

                        I just gave you another rep point on this post, so your at 5 now and will be able to edit 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.8, 24.11

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

                          Here you go - for fun, took 2 minutes to setup..

                          I created basic html page on one of my local boxes 192.168.3.32 running nginx (httpd)

                          Then created a port forward, with source only my boxes IP 192.168.9.100 to send 80 traffic to 3.32..

                          Made sure the rule on the network client connected to (lan in my case) was top of the list.. And there you go try to go to some http site and get the website instead..

                          redirect.png

                          Not going to work with https, because they would get error on cert not matching... But you could just block https..

                          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 1
                          • O
                            OpenWifi
                            last edited by

                            Kindly explain where i should put this. Because it seems not to block the Ip addresses. Thank you

                            1 Reply Last reply Reply Quote 0
                            • O
                              OpenWifi
                              last edited by

                              IMG_20190503_225851_037.jpg

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

                                sure seems to be blocking show 1.17MB of hits on it already

                                Also your dns rule, should also allow tcp.. And should really be lan address, not the whole net.

                                And just to be curious - why do you block paying customers from using whatever dns they 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

                                O 1 Reply Last reply Reply Quote 0
                                • O
                                  OpenWifi @johnpoz
                                  last edited by

                                  @johnpoz Thank you. Because i was getting blacklisted by my ISP every now and again

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

                                    for dns queries? you got blacklisted?

                                    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

                                    O 1 Reply Last reply Reply Quote 0
                                    • O
                                      OpenWifi @johnpoz
                                      last edited by

                                      @johnpoz For spamming

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

                                        spamming - ie sending emails is not dns queries.

                                        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
                                        • First post
                                          Last post
                                        Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.