Most of the Linux distribution uses iptables to create rules for packet filtering. In order to allow your machine to receive connections from the peer on a specific port, you must add a rule in your iptables config file:
- locate the iptables config file (usually, it is stored in /etc/sysconfig/iptables)
- add a new rule to accept connection on port XXX (this port that you have specified during the mygrid configuration phase (see the ~/.mygrid/mg.properties file).)
- if your machine accept ssh connections, copy the line with “–dport 22″ and paste a new line changing “–dport 22″ with “–dport XXX”.
- else try to add this line: “-A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport XXX -j ACCEPT” (rememper to replace XXX, with your mygrid port)
- restart iptables
- /etc/init.d/iptables restart