Answer the question
In order to leave comments, you need to log in
How to set up iptables for WebSocket?
Good afternoon!
Centos-6.5 system, node.js-12.
iptables has simple rules:
iptables -A INPUT -i eth0 -p tcp -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -p udp -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A INPUT -i eth0 -p tcp --dport 8080 -j ACCEPT
-- - 8080 socket port.
Are there any other rules needed?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question