Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I need to set iptables rules for aMule, but I am not sure which one are the right ones. Googling around, I have seen something like:

iptables -I INPUT -p tcp --dport 4662 -j ACCEPT
iptables -I INPUT -p udp --dport 4672 -j ACCEPT
service iptables save 

but I am not sure whether they are fine/complete. Instructions by somebody who knows better than me is very welcome. I am on Fedora14 thks

UPDATE: I am not able to save these configurations. It seems they are gone, when i shutdown. Please, teach me! thks

share|improve this question
    
add port "4665" and make sure the router forwards the ports as well. you should be fine. –  Lorenzo Von Matterhorn Dec 26 '12 at 19:38
    
YES! Thanks so much. Happy new year. –  mario Jan 2 '13 at 21:03
    
UPDATE: I am not able to save these configurations. It seems they are gone, when i shutdown. Please, teach me! thks –  mario Jan 3 '13 at 22:54
add comment

1 Answer

In order to make the changes permanent you need to save your current state doing:

iptables-save > /etc/sysconfig/iptables

also, its generally a good idea to back up your oldie /etc/sysconfig/iptables.

to apply the newly changes:

systemctl restart iptables.service
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.