Firewall settings?

Gene Heskett gene.heskett at verizon.net
Sun Feb 5 15:20:04 UTC 2006


On Sunday 05 February 2006 01:28, under.actuate at gmail.com wrote:
>Hey all,
>
>What's the best way to go about opening the required firewall ports to
> allow Azureus?
>
For the newest bittorrent 4 something, I'm using this script, located 
in /etc/sysconfig directory:
---------------
#!/bin/bash
BTFORWARDADDR=192.168.71.3 PORTSTART=6881 PORTEND=6999
/sbin/iptables -t nat -A PREROUTING -i ppp0 -p tcp --dport $PORTSTART:
$PORTEND -j DNAT --to-destination $BTFORWARDADDR
/sbin/iptables -A FORWARD -s $BTFORWARDADDR -p tcp --dport $PORTSTART:
$PORTEND -j ACCEPT
---------------
called iptables-pass-torrent, and although I'm all eth0 and eth1, that 
ppp0 isn't hurting it.

Then, to shut it back off, I just do a service iptables restart, which 
reloads my default rules.

Don't forget to port forward those ports in your router too. :)

>-jared

-- 
Cheers, Gene
People having trouble with vz bouncing email to me should add the word
'online' between the 'verizon', and the dot which bypasses vz's
stupid bounce rules.  I do use spamassassin too. :-)
Yahoo.com and AOL/TW attorneys please note, additions to the above
message by Gene Heskett are:
Copyright 2006 by Maurice Eugene Heskett, all rights reserved.




More information about the fedora-list mailing list