Results 1 to 6 of 6

Thread: What does this ufw log mean?

  1. #1
    Join Date
    Jul 2011
    Beans
    264

    What does this ufw log mean?

    I have enabled ufw (sudo ufw enable) but not yet set any rules. However there are many (hundreds of such) UFW block messages in the ufw log, one example being:

    Code:
    [UFW BLOCK] IN=ppp0 OUT= MAC= SRC=210.4.15.236 DST=101.221.01.2 LEN=52 TOS=0x00 PREC=0x20 TTL=116 ID=4214 DF PROTO=TCP SPT=32581 DPT=1080 WINDOW=65535 RES=0x00 SYN URGP=0
    What is meant by this? I am unable to find what port number 32581 signifies. some of such ports are stated to be unassigned by IANA. In general, when I notice such ufw block message, should I be concerned? Do I need to do anything extra?

  2. #2
    Join Date
    Nov 2008
    Beans
    Hidden!

  3. #3
    Join Date
    Nov 2009
    Beans
    919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What does this ufw log mean?

    My guess: an external computer is attempting to use yours as a proxy, but since you aren't running a proxy server, the connection is being refused.

  4. #4
    Join Date
    Jul 2011
    Beans
    264

    Re: What does this ufw log mean?

    If that is true, I guess refusal for working as proxy has nothing to do with enabling ufw by me. In fact I have enabled ufw only recently and till that time there was no firewall. Is it possible that somebody might have accessed my computer while connected to internet? I have never got any positive response for "crontab -l" and no PID/Program name with "bin" from output of netstat -anlp. Are there other things to check in case of suspicion?

  5. #5
    Join Date
    Nov 2009
    Beans
    919
    Distro
    Ubuntu 12.04 Precise Pangolin

    Re: What does this ufw log mean?

    Even without it enabled you still won't accept incoming connections unless you happen to be running a service like an ssh server or a web server or anything meant to accept incoming connections from the internet. A default installation won't have any of those things running. That's not really the whole picture, but it's good enough in most cases. There are ways of getting services opened and running without you knowing about it and then those services getting connected to, but those things don't happen often for desktop Linux users. I hope that makes sense. It's not safe, but it's not recklessly dangerous either.

    Either way, it's certainly better that you're using it now. If you are using netstat to check for things, make sure you use sudo, and for clarity have browsers closed while checking.

  6. #6
    Join Date
    Sep 2011
    Beans
    1,531

    Re: What does this ufw log mean?

    Quote Originally Posted by OpSecShellshock View Post
    Even without it enabled you still won't accept incoming connections unless you happen to be running a service like an ssh server or a web server or anything meant to accept incoming connections from the internet. A default installation won't have any of those things running. That's not really the whole picture, but it's good enough in most cases. There are ways of getting services opened and running without you knowing about it and then those services getting connected to, but those things don't happen often for desktop Linux users. I hope that makes sense. It's not safe, but it's not recklessly dangerous either.

    Either way, it's certainly better that you're using it now. If you are using netstat to check for things, make sure you use sudo, and for clarity have browsers closed while checking.
    +1
    When you see an incoming connection blocked, then you know your firewall is doing what it's supposed to.

    If you see an outgoing connection that you did not initiate, that's when you should do some more research.

    To explain the port number you saw a little... you'll see a source port and a destination port. One of them will probably be higher than 1023 and one will probably be below that. Without going into technical details, that's just how connections work. The ports below 1024 are registered, so those are the ones that will tell you what service is likely being used. OpSecShellshock knew it was probably a proxy connection attempt because port 1080 is registered for socks proxy.
    http://en.wikipedia.org/wiki/List_of...P_port_numbers

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •