Re: FC-1 firewall script for bittorrent

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is what you do to add the rules, or at least this is what I did:

1. Go to the command prompt.
1a. If you aren't root then su - and hit enter and put in the root password when it asks you.
2. Type setup
3. Select Firewall Configuration
4. Make sure the firewall in enabled
5. select customize
6. In The "Other ports" put in 6881
7. hit ok
8. hit ok again
9. hit quit
10. type vi /etc/sysconfig/iptables (or use whatever text editor you like. I like vi.)
11. look for the line "-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 6881 -j ACCEPT"
12. put ":6889" (no quotes) after the 6881
12a. paste this line after the above line "-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport6881:6889 -j ACCEPT (this is the new line of the script that Erik gave me)
13. save file and exit vi
14. at prompt type /etc/init.d/iptables restart
15. hit enter your iptables should stop and then start. .


hope this helps

russell

D. D. Brierton wrote:

I'd love it if someone could explain this to me: bittorrent works fine
for me on FC2, and it did on FC1 and RHL9, and I've always used
redhat|system-config-securitylevel and have never added any extra
workarounds to open up ports 6881-6889. So how come bittorrent works at
all? Admittedly I don't always get the greatest download speeds with it,
but I thought that was more to do with slow seeders, or too many
leachers and not enough seeders or something. I certainly have on
occasion got download speeds that have maxed out my DSL connection.

Relatedly, as you both appear to be using system-config-securitylevel,
how did you add the extra rules for ports 6881-6889?

TIA.

Best, Darren







[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux