It has been nearly 3 years since I last touched an iptables configuration, and I have totally forgotten it all. This was problematic because my configuration was so locked down for security, it was blocking some ports I wanted open. The first port I want to open was for gkrellm, port 19150. The second port was for Deception OCG, port 44000. For the most part, I followed
this set of instructions from the Debian wiki. I suspect this was the exact same page I used the first time. Anyway, as a precautionary measure, iptables configurations are edited in a separate file rather than directly touching the current configuration. This is because a botched iptables configuration causes serious problems. I copied my existing /etc/iptables.up.rules as a starting point, then added the following lines:
-A INPUT -p tcp -m tcp --dport 19150 -j ACCEPT
-A INPUT -p tcp -m tcp --dport 44000 -j ACCEPT
Next, I loaded the test configuration into iptables by using the iptables-restore command. I tested to make sure everything was working the way I wanted, then I saved the configuration by using the following command:
sudo sh -c "iptables-save > /etc/iptables.up.rules"