D
D
dm862013-12-13 18:25:36
iptables
dm86, 2013-12-13 18:25:36

How to open port range 1024-65535 in centos 6.4?

There is a need to work with the Onwebinar webinar both as a participant and as a presenter. For it to work on our school server, you need to open udp ports 1024-65535. I've only recently dealt with this issue, so I'm asking for help. In the iptables file I have three lines with such ports (found on the Internet). And the whole file now looks like this:
iptables [-M--] 26 L:[ 17+11 28/ 38] *(1229/1689b) 0010 0x00A
:INPUT ACCEPT [366548:161464707]
:FORWARD ACCEPT [4503:794498]
: OUTPUT ACCEPT [397486:196075533]
:POSTROUTING ACCEPT [403223:197038940]
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill.
-A POSTROUTING -o virbr0 -p udp -m udp --dport 68 -j CHECKSUM --checksum-fill.
COMMIT
# Completed on Sat Oct 19 01:13:14 2013
# Generated by iptables-save v1.4.7 on Sat Oct 19 01:13:14 2013
*filter
:FORWARD ACC[M N+EPT [0:0]
:INPUT ACCEPT [ 1024:65535]
:OUTPUT ACCEPT [0:0]
-A INPUT -p tcp -m state -m tcp --dport 80 --state NEW -j ACCEPT
-A INPUT -p tcp -m state --state NEW -m tcp --dport 1024:65535 -j ACCEPT
-A INPUT -p udp -m state --state NEW -m udp --dport 1024:65535 -j ACCEPT
-A INPUT -m state --state NEW -m tcp -p tcp --dport 1024:65535 -j ACCEPT
-A FORWARD -m state --state NEW -i eth1 -s 192.168.1.0/24 -j ACCEPT
-A FORWARD -s 192.168.1.0/24 -j ACCEPT
Please tell me how to do it right, because with this option, working with the webinar still does not work. Or maybe somewhere else in other files you need to register, for example, in the Squid proxy server. Also in the etc/sysconfig folder is just iptable. Maybe something needs to be written there?
Thanks in advance for any help!

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Y
Yuri Yarosh, 2013-12-13
@d00mko

You have completely turned off the firewall, and the rules do not make any sense...
Just try to clean the existing rules
iptables -F
iptables -X
iptables -t nat -F
iptables -t nat -X
iptables -t mangle -F
iptables -t mangle - X
iptables -P INPUT ACCEPT
iptables -P FORWARD ACCEPT
iptables -P OUTPUT ACCEPT

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question