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

Had my pfSense been compromised?

Firewalling
11
79
13.8k
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.
  • A
    akuma1x
    last edited by akuma1x Oct 11, 2019, 2:42 PM Oct 11, 2019, 2:42 PM

    Nothing is coming in on WAN2, you have no pass rules there.

    What have you defined for that "Desktop" alias you've got in your Source column on the Floating Rules tab?

    Jeff

    B 1 Reply Last reply Oct 11, 2019, 2:45 PM Reply Quote 0
    • B
      bchan @akuma1x
      last edited by Oct 11, 2019, 2:45 PM

      @akuma1x
      Desktop contains list of desktop computers:
      🔒 Log in to view

      For sure it does not have the offending 103.240.140.10 in my first post.

      J 1 Reply Last reply Oct 11, 2019, 2:58 PM Reply Quote 0
      • J
        johnpoz LAYER 8 Global Moderator
        last edited by Oct 11, 2019, 2:51 PM

        And what is that rule - just look it up via
        https://docs.netgate.com/pfsense/en/latest/firewall/viewing-the-full-pf-ruleset.html

        pfctl -vvsr

        Will show you rule ID numbers so you can match up rules with what your seeing.. Unless the rule has been deleted.. You can look in your config change history.

        🔒 Log in to view

        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

        B 2 Replies Last reply Oct 11, 2019, 2:59 PM Reply Quote 0
        • B
          bchan
          last edited by Oct 11, 2019, 2:56 PM

          I have gathered additional info on the port numbers:
          🔒 Log in to view

          These ports seem to be related to hostname, nameserver, smtp.

          1 Reply Last reply Reply Quote 0
          • J
            JeGr LAYER 8 Moderator @bchan
            last edited by Oct 11, 2019, 2:58 PM

            @bchan said in Had my pfSense been compromised?:

            For sure it does not have the offending 103.240.140.10 in my first post.

            Yes but it has your local FQDN. You sure that resolves correctly and not to some strange web IP? I'd never use local hostnames in Aliases.

            Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

            If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

            B 1 Reply Last reply Oct 11, 2019, 3:03 PM Reply Quote 0
            • B
              bchan @johnpoz
              last edited by Oct 11, 2019, 2:59 PM

              @johnpoz
              Nothing logged around that time (05:29):
              🔒 Log in to view

              1 Reply Last reply Reply Quote 0
              • J
                johnpoz LAYER 8 Global Moderator
                last edited by Oct 11, 2019, 3:00 PM

                look in your full rule set for what that ID number matches up with.

                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
                  bchan @JeGr
                  last edited by Oct 11, 2019, 3:03 PM

                  @JeGr

                  whois 103.240.140.10
                  inetnum: 103.240.140.1 - 103.240.142.255
                  netname: CTCL-HK
                  descr: ClearDDoS Technologies
                  country: HK

                  It sounds like a web security company.

                  1 Reply Last reply Reply Quote 0
                  • J
                    JeGr LAYER 8 Moderator
                    last edited by Oct 11, 2019, 3:04 PM

                    I'm talking about your alias. Not the IP.

                    Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                    If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                    B 1 Reply Last reply Oct 11, 2019, 3:05 PM Reply Quote 0
                    • B
                      bchan @JeGr
                      last edited by Oct 11, 2019, 3:05 PM

                      @JeGr

                      I have checked the table values for this alias and they all resolve correctly to 192.168.x.x

                      1 Reply Last reply Reply Quote 0
                      • J
                        JeGr LAYER 8 Moderator
                        last edited by Oct 11, 2019, 3:12 PM

                        @bchan said in Had my pfSense been compromised?:

                        all resolve correctly to 192.168.x.x

                        LAPTOP-1CGD66U4 resolves to 192.168.x.x? Even on pfsense itself? Its resolvers?

                        Don't forget to upvote 👍 those who kindly offered their time and brainpower to help you!

                        If you're interested, I'm available to discuss details of German-speaking paid support (for companies) if needed.

                        B 1 Reply Last reply Oct 11, 2019, 3:14 PM Reply Quote 0
                        • B
                          bchan @JeGr
                          last edited by Oct 11, 2019, 3:14 PM

                          @JeGr
                          🔒 Log in to view

                          1 Reply Last reply Reply Quote 0
                          • B
                            bchan @johnpoz
                            last edited by Oct 11, 2019, 3:18 PM

                            @johnpoz said in Had my pfSense been compromised?:

                            pfctl -vvsr

                            pfctl -vvsr | grep 4294967295
                            return nothing.

                            1 Reply Last reply Reply Quote 0
                            • J
                              johnpoz LAYER 8 Global Moderator
                              last edited by Oct 11, 2019, 3:22 PM

                              Then the rule was deleted, make sure your grep is working by using a ID in your command that you see when just looking at the output.

                              Are you currently seeing logs for this?

                              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

                              B 1 Reply Last reply Oct 11, 2019, 3:29 PM Reply Quote 0
                              • B
                                bchan @johnpoz
                                last edited by Oct 11, 2019, 3:29 PM

                                @johnpoz said in Had my pfSense been compromised?:

                                Then the rule was deleted, make sure your grep is working by using a ID in your command that you see when just looking at the output.

                                Are you currently seeing logs for this?

                                grep works for other id e.g. the teamviewer logger.
                                I have 2 WANs for months. This incident was the first time I saw incoming traffic to WAN2 and were logged.
                                As you can see from my rules, I don't have anything that will log incoming traffic for WAN2.

                                1 Reply Last reply Reply Quote 0
                                • J
                                  jimp Rebel Alliance Developer Netgate
                                  last edited by Oct 11, 2019, 3:57 PM

                                  Do you have UPnP enabled? Do you have it set to use WAN2, and to log connections?

                                  That's the most likely explanation.

                                  Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                  Need help fast? Netgate Global Support!

                                  Do not Chat/PM for help!

                                  B 1 Reply Last reply Oct 12, 2019, 2:49 AM Reply Quote 0
                                  • J
                                    johnpoz LAYER 8 Global Moderator
                                    last edited by Oct 11, 2019, 3:59 PM

                                    That would be my guess as well... You might be able to glean a bit more info by looking at the raw log in output.

                                    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
                                    • J
                                      jimp Rebel Alliance Developer Netgate
                                      last edited by Oct 11, 2019, 4:02 PM

                                      When I manually trigger something like that (for example, open Deluge, go into settings, and trigger a port test), I get a similar log message with a random-ish ID.

                                      Since the UPnP rules don't have a description, and have random IDs, and are probably short-lived, they wouldn't have a visible description in the logs even if you caught them when they were active.

                                      Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

                                      Need help fast? Netgate Global Support!

                                      Do not Chat/PM for help!

                                      1 Reply Last reply Reply Quote 0
                                      • B
                                        bchan @jimp
                                        last edited by bchan Oct 12, 2019, 2:53 AM Oct 12, 2019, 2:49 AM

                                        @jimp said in Had my pfSense been compromised?:

                                        Do you have UPnP enabled?

                                        No I have not enabled UPnP.
                                        🔒 Log in to view

                                        1 Reply Last reply Reply Quote 0
                                        • J
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by johnpoz Oct 12, 2019, 9:05 AM Oct 12, 2019, 9:05 AM

                                          That doesn't actually mean its not running - that is a wiget that can be edited to not show specific services.

                                          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

                                          B 1 Reply Last reply Oct 12, 2019, 10:47 AM Reply Quote 0
                                          15 out of 79
                                          • First post
                                            15/79
                                            Last post
                                          Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.