iptables port forwarding rules for BattleNET games

22 05 2007

This script will create port forwarding rules on port 36xxx to 192.168.1.xxx:36xxx.



Active/Passive FTP Explanation

23 01 2006

I keep forgetting the key differences between passive and active FTP.
Here’s a good link.. http://slacksite.com/other/ftp.html



Passive FTP workaround for Plesk’s proftpd

23 01 2006

Add the following line:
PassivePorts 49152 65534
to /etc/proftpd.conf
NOT /etc/proftpd.include as that file will be overwritten by Plesk regularly.

No need to restart xinetd (/etc/init.d/xinetd restart) as proftpd is executed only when a connection has been attempted on the port.

Add the following line:
/sbin/iptables -A INPUT -p tcp –dport 49152:65534 -j ACCEPT
to /usr/local/psa/var/modules/firewall/firewall-active.sh

That’s all!
Just need to make sure that the last incoming traffic rule is set to deny all.

Valid for Plesk 7.5.