PDA

View Full Version : Allow UFW syn tcp from local IP



andrew102
October 30th, 2014, 12:11 AM
Basically, have a UFW rule to allow from 10.x.x.x on port 8080 (tomcat)

10.x.x.x is the load balancer server. I've noticed SYN attempts being blocked every 30sec or less. Presumably because UFW just sees the one IP and detects it as a DoS attempt.

How do I tell UFW (probably in before.rules) to just allow these connections.

Habitual
October 30th, 2014, 12:41 PM
I use these 2 rules on my hosted system:

ufw allow in on eth1 from 10.0.0.0/8
ufw allow in on eth0 from 10.0.0.0/8

Hope that helps.

nerdtron
October 31st, 2014, 08:46 PM
I believe you can add rules on the /etc/ufw/before.rules

See on the syntax here (more like iptables) https://help.ubuntu.com/community/UFW

andrew102
November 6th, 2014, 06:12 AM
Thanks, still think that the limit of 3, burst 10 must be having some sort of impact.