Results 1 to 6 of 6

Thread: Ufw block

  1. #1
    Join Date
    Sep 2008
    Beans
    60

    Ufw block

    I have a couple of messages in my /var/log/syslog I am trying to decipher. My wife got a Mac (192.168.0.9) as a gift and I set up access to her nfs share on my Ubuntu server (192.168.0.100) and I have the following error a couple of times:
    Code:
    Jan  3 06:44:12 MyServer vmunix: [230819.117675] [UFW BLOCK] IN=eth0 OUT= MAC=00:12:3f:7b:d6:83:68:a8:6d:2c:ac:4a:08:00 SRC=192.168.0.9 DST=192.168.0.100 LEN=52 TOS=0x00 PREC=0x00 TTL=64 ID=55604 PROTO=TCP SPT=1021 DPT=2049 WINDOW=65535 RES=0x00 ACK FIN URGP=0
    Jan  3 06:44:19 MyServer vmunix: [230826.074910] [UFW BLOCK] IN=eth0 OUT= MAC=00:12:3f:7b:d6:83:68:a8:6d:2c:ac:4a:08:00 SRC=192.168.0.9 DST=192.168.0.100 LEN=40 TOS=0x00 PREC=0x00 TTL=64 ID=52011 PROTO=TCP SPT=1021 DPT=2049 WINDOW=65535 RES=0x00 ACK RST URGP=0
    I'm not sure exactly what port being blocked. Here is the output from ufw status:
    Code:
    To                         Action      From
    --                         ------      ----
    2049                       ALLOW       Anywhere
    192.168.0.0/24/tcp         ALLOW       192.168.0.0/24/tcp
    192.168.0.100 123/udp      ALLOW       192.168.0.0/24 123/udp
    192.168.0.0/24 139/tcp     ALLOW       192.168.0.0/24 135/tcp
    21/tcp                     ALLOW       Anywhere
    8080/tcp                   ALLOW       Anywhere

  2. #2
    Join Date
    Mar 2008
    Location
    Indore, India
    Beans
    233
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Ufw block

    TCP port 2049 is being blocked, its used for NFS. you need to open this on your ubuntu machine.


    Code:
    ufw allow from 192.168.0.9 to tcp port 2049
    Last edited by sj1410; January 3rd, 2012 at 06:45 PM.

  3. #3
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,481
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Ufw block

    To me port 2049 looks to be open already.

    I think the entries in syslog are a result of confusion between the MAC and the Ubtuntu server during the termination phase of a TCP session. The TCP flags are the key. This type of thing is very common in linux as it tends to use a "half-dulpex" close sequence instead of a full 4 way FIN-ACK handshake close sequence. The connection tracking table already thinks the connection has been closed and has already forgotten about it (I think). When the first packet noted in the syslog file comes along (which is likely another FIN-ACK packet after a previous one), it gets interpreted by iptables as a new connection without the proper SYN bit set and others reset, and get rejected. The MAC then tried to reset the connection via a RST packet, but the same conditions apply.
    Is your wife having any troubles accessing the share? If no, then don't worry about it. If yes, then my analysis and text above might be incorrect.

  4. #4
    Join Date
    Sep 2008
    Beans
    60

    Re: Ufw block

    Quote Originally Posted by Doug S View Post
    To me port 2049 looks to be open already.
    Is your wife having any troubles accessing the share? If no, then don't worry about it. If yes, then my analysis and text above might be incorrect.
    The port is open, at least according to UFW. I'm not sure if the Mac is connecting or not as it is a new OS for my wife and she isn't yet too proficient with it, I will check later tonight to see what is happening as I was viewing my server logs from work.

  5. #5
    Join Date
    Sep 2008
    Beans
    60

    Re: Ufw block

    I am able to get to the nfs shares from the Mac and view files and folders without a problem. So ignore the error messages at this point?

  6. #6
    Join Date
    Feb 2011
    Location
    Coquitlam, B.C. Canada
    Beans
    2,481
    Distro
    Ubuntu 16.04 Xenial Xerus

    Re: Ufw block

    Quote Originally Posted by rm06 View Post
    I am able to get to the nfs shares from the Mac and view files and folders without a problem. So ignore the error messages at this point?
    Yes.

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
  •