I use WL700gE_kc_1078_02.nas firmware. How I can to open tcp and udp ports for inside mldonkey(ED2K)? I have a lowID now.Help me please!Thank's.
before run mldonkey open ports in iptables
like this
iptables -I INPUT 1 -p tcp --dport 3400-j ACCEPT
change 3400 to ur port for mldonkey
For an example how to do this in the 1.0.7.8 image, look in /opt/etc/init.kc/iptables_mldonkey.sh. Change the port as necessary. Make sure to execute the script every time rc.local executes otherwise any firewall changes via the web interface will wipe out your customizations.
- K.C.
ciao guys,
I had the same problem and tried to solve as sonic suggested.
I added a couple of lines to rc.local in order to open IPTABLES, reboot the router and mldonkey can get high id now.
The problem is outlook doesn't work anymore! It can't send or receive mails!
If I remove lines I added to rc.local
iptables -I INPUT 1 -p tcp --dport 3400-j ACCEPT
and so on with mldonkey ports
it come back to work.
Also everything works if i disable router firewall.
Do you have some idea how to fix the problem? I would like to keep my router firewall on!
Last edited by Michele Spinolo; 11-05-2008 at 01:15.
i am very new to this box. My problem is also lowid on mldonkey. My problem seems to be that there are no open ports for my donkey connection.
I have just installed WL700gE_kc_1078_02.nas and have done nothing else. My mldonkey starts and torrents work right away.
I login as root and go to directory /opt/etc/init.kc/ here i do cat iptables_mldonkey.sh and gets:
#!/opt/bin/bash
#
# This script punches holes in the firewall for mldonkey
#
RUNME=`nvram get kc_run_mldonkey`
BTPORT=`nvram get kc_bt_port`
if [ "$BTPORT" == "" ]; then
BTPORT=6882
fi
if [ ! "$RUNME" == "" ]; then
lines=`iptables -n --list INPUT | grep dpt:$BTPORT | wc -l`
if [ "$lines" == "0" ]; then
iptables -I INPUT 5 -p tcp --dport $BTPORT -j ACCEPT
fi
fi
I try to edit it with vi and save and the file is blank afterwards. i have tried to copy the file to th HD and edit with far commander in windows. But i cant delete iptables_mldonkey.sh and copy my newly edited file back to the directory. My question is how i can edit iptables_mldonkey.sh so that i can open these ports with
iptables -I INPUT 6 -p tcp --dport 6881 -j ACCEPT
iptables -I INPUT 7 -p tcp --dport 6891 -j ACCEPT
iptables -I INPUT 8 -p udp --dport 6895 -j ACCEPT
iptables -I INPUT 9 -p tcp --dport 14254 -j ACCEPT
hope you understand my problem. I Think there is some i have misunderstood about bash shell. please help me.
Last edited by rasmusk; 10-07-2008 at 23:01.
install nano!
put commands
ipkg update
ipkg install nano
after install
login as root
and edit file
nano /opt/etc/init.kc/iptables_mldonkey.sh
save file, reboot
reboot
Thanx for replying...
when i try to install nano i get this error:
[root@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/op...table/Packages
.gz
wget: missing URL
Usage: wget [OPTION]... [URL]...
Try `wget --help' for more options.
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P http:/
/ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/Packages.gz'
WARNING: Unable to remove temporary directory: : No such file or directory
-----
is there something that needs to be done after installing the .nas file.
Follow the directions here:
http://wl700g.homelinux.net/drupal/?q=node/187
You're missing the the step where you copy the /opt directory from flash to the HDD.
- K.C.
What is lowID ?? You mean ratio on torrents servers?
Hi there!
I did copy the /opt directory and got an error also:
[root@WL700gE /]$ ipkg update
Downloading http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz
An error ocurred, return value: 1.
Collected errors:
ipkg_download: ERROR: Command failed with return value 1: `wget -q -P /opt/ipkg-yCBRbF http://ipkg.nslu2-linux.org/feeds/op...le/Packages.gz'
[root@WL700gE /]$
I believe there's a "near miss" when installing the 1.7.8 custom when you had not installed previously the 1.4.6 custom. I was runing the original 1.4.6 and installed your 1.7.8 . (The instalation itself didn't run as expected. It would never restart, for example). This is something I'm sure the developers didn't try, because you've been runing the custom for quite a while. So, I'm guessing there's a detail the FAQ doesn't cover.....
By the way, the reason I'm writing is the inevitable mldonkey lowID.
Thanks for making my 2 year brick beginning to become a serious router (finally!), though mine is one of those that cover wirelessely a maximum of 5 meter radius(with LOS), but you can't help me on that one.....
twins