ufw block ports that are allowed
Hello I write to you because I have a problem, and I don't know how to solve this...
What I want... open ports http(80), ssh(22), and a range ports 12300:12400 /tcp and udp
I think It is like this:
ufw allow http
ufw allow ssh
ufw allow 12300:12400/tcp
ufw allow 12300:12400/udp
but the problem is that firewall block ips
syslog | grep "UFW"
SRC=200.39.15.xx DST=74.208.66.xxx LEN=40 TOS=0x00 PREC=0x20 TTL=243 ID=29651 DF PROTO=TCP SPT=43624 DPT=12363 WINDOW=0 RES=0x00 ACK RST URGP=0
SRC=187.210.139.xx DST=74.208.66.xxx LEN=40 TOS=0x00 PREC=0x00 TTL=115 ID=61138 DF PROTO=TCP SPT=17307 DPT=12363 WINDOW=10880 RES=0x00 ACK URGP=0
SRC=187.237.167.xx DST=74.208.66.xxx LEN=40 TOS=0x00 PREC=0x00 TTL=115 ID=8290 PROTO=TCP SPT=43316 DPT=12363 WINDOW=10880 RES=0x00 ACK URGP=0
PROTO: the protocol in this case TCP
SPT: source port ?
DPT: destini port no? this the port of my server
I think firewall is bloking ports out of my range 12300:12400, and I don't know how to add
I try a lot of things, like add only in iptables
like this:
-A INPUT -p tcp -m tcp --dport 12300:12400 -j ACCEPT
-A INPUT -p udp -m udp --dport 12300:12400 -j ACCEPT
-A OUTPUT -p tcp -m tcp --sport 12300:12400 -j ACCEPT
-A OUTPUT -p udp -m udp --sport 12300:12400 -j ACCEPT
reset iptables, and add in ufw
like this:
ufw allow in on eth0 from any to any port 12300:12400 proto tcp
ufw allow in on eth0 from any to any port 12300:12400 proto udp
I add only incoming rules, and delete and try with only outgoing rules, but it still the same T.T
if you want more information about my problem, i put a question, in askubuntu
http://
Question information
- Language:
- English Edit question
- Status:
- Expired
- For:
- Ubuntu Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply: