Linux firewall off tv work, firewall on tv not work

Maly
Maly Posts: 1

Hello 

 i have problem with linux and teamviewer in version host. Problem is this, if firewall is off teamviewer good work but if firewall is on teamviwer not work and not appear window teamviewer. I have in configuration firewall - open port 5938 and 443. My configuration firewall below:

-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p TCP --sport 5938 -j ACCEPT
-A INPUT -p UDP --sport 5938 -j ACCEPT
-A INPUT -j DROP

-A OUTPUT -p TCP --dport 443 -j ACCEPT
-A OUTPUT -p UDP --dport 443 -j ACCEPT
-A OUTPUT -p TCP --dport 53 -j ACCEPT
-A OUTPUT -p UDP --dport 53 -j ACCEPT
-A OUTPUT -p TCP --dport 5938 -j ACCEPT
-A OUTPUT -p UDP --dport 5938 -j ACCEPT
-A OUTPUT -j DROP

I haven't idea why this not work, it for sure is problem with firewall but i have open require ports.