I have opened up a range of ports using UFW. The rules in question are shown below (output of sudo ufw status numbered). I have restarted UFW since I added the rule, yet in lnav I still see log entries showing up that the incoming connection is being blocked.

I have very little knowledge about iptables (hence using ufw) so I'm not sure how to debug this problem.

Log Entry

[2211067.364323] [UFW BLOCK] IN=p5p1 OUT= MAC=<mac> SRC=<ip> DST=192.168.1.130 LEN=40 TOS=0x18 PREC=0x20 TTL=54 ID=5307 DF PROTO=TCP SPT=20022 DPT=6889 WINDOW=0 RES=0x00 RST URGP=0

ufw output

[16] 6881:6891/tcp              ALLOW IN    Anywhere
[29] 6881:6891/tcp (v6)         ALLOW IN    Anywhere (v6)

iptables entry

ACCEPT     tcp  --  anywhere             anywhere             multiport dports 6881:6891

The output of iptables -L for good measure.

share|improve this question
    
I played with ufw a year or so ago as, like you, I struggled with iptables. Im no expert but I managed to figure it out. However I pretty quickly installed the gui, GUFW. Are you able to run the gui or are you desktopless ? You might find you have made a subtle misconfiguration that the GUI will fix for you. – hatterman Apr 4 '15 at 10:00
    
It's my server, so yes it is headless. – Christophe De Troyer Apr 4 '15 at 10:05
    
Allow incoming on port 20022, want to see what happens. – hatterman Apr 4 '15 at 10:15
    
Have you tried this already? – Fabby Apr 9 '15 at 9:28

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.