How do I configure my firewall?

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:

  1. locate the iptables config file (usually, it is stored in /etc/sysconfig/iptables)
  2. 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).)
    1. if your machine accept ssh connections, copy the line with “–dport 22″ and paste a new line changing “–dport 22″ with “–dport XXX”.
    2. 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)
  3. restart iptables
    1. /etc/init.d/iptables restart
Download PDF
Bookmark the permalink.

Comments are closed.