S
S
Sveratum2015-03-27 07:18:15
iptables
Sveratum, 2015-03-27 07:18:15

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

1 answer(s)
M
malike, 2015-03-27
@malike

On which port the websocket hangs, open it, and that's it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question