This module is great work, really love it and we've successfully installed and configured it to be able to push messages from the Drupal server through the nodejs server down to selected clients in their browsers. Amazing, this is really great and I thank all the contributers who made this work.

Now the support request: we are using iptables on Ubuntu 12.04 which hosts the nodejs server and we don't know how to configure it properly to still be able to use the full functionality of the nodejs module. We haven't found any useful information on the web and as the configuration is application dependant anyway, I thought it is the best source to ask here. Hoping for help.

Comments

julien’s picture

I will try this by replacing xyz by your nodejs server port to open the port on your firewall

iptables -A INPUT -p tcp --destination-port xyz -j ACCEPT
iptables -A OUTPUT -p tcp --source-port xyz -j ACCEPT
jurgenhaas’s picture

Already wanted to reply that I had exactly done that and while copying a line of code from the config file I realized that the port was 444 instead of 443 which has some other unrelated reason. Now I included that in the firewall config and of course it works just fine.

However, one more question regarding ports for the sockets. I guess that's working via UDP and I wonder what's your advise on which ports to open in and out for UDP.

Thanks for your quick help, this is really appreciated.

julien’s picture

Can you explain more on why you're guessing it is UDP ?

jurgenhaas’s picture

Thought the socket.io was using UDP, isn't it?

Anonymous’s picture

lsof -i -n

will tell what is listening on what.

if you know the socket.io port, do:

lsof -i:$socket_io_port -n

should help you figure out which itpables rules you need.

jurgenhaas’s picture

Status: Active » Fixed

OK, got it. Thanks a lot for your help.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.