Fullback
26-03-2008, 04:50
I wanted to add a few function to my RC.Local file so it will auto port forward
my port 49355 (for enhanced-bittorrent) But i have to login and add
iptables -I INPUT 7 -p tcp --dport 49355 -j ACCEPT manually every time.
I just waned a correct way to add it into rc.local so i can have that port open every time the router is rebooted ? by the way i am running 1.0.7.8 custom kfrug firmware. Thank you
I wanted to add a few function to my RC.Local file so it will auto port forward
my port 49355 (for enhanced-bittorrent) But i have to login and add
iptables -I INPUT 7 -p tcp --dport 49355 -j ACCEPT manually every time.
I just waned a correct way to add it into rc.local so i can have that port open every time the router is rebooted ? by the way i am running 1.0.7.8 custom kfrug firmware. Thank you
Hi Fullback,
If you read /opt/etc/rc.local (with cat) you should see that KFurge has added a section:
# Poke holes in the firewall for certain applications
with
/opt/etc/init.kc/iptables_mldonkey.sh
So, I think it would be wise to edit that one in stead of rc.local. But, if you want to stay on the safe side, you'd better edit rc.local, because you can easily recover from a problem with it.
Now, for the edit part, if you have searched this forum you will have come across nano or joe. Use one of these. (ipkg install nano, etc)
Regards,
Marc
Fullback
28-03-2008, 17:51
Hey, thanks i like using vi its cool. I also installed nano very neat as well. But i got it to always open the ports as i requested. Just added
#Opening ports for Enhanced-Ctorrent
iptables -I INPUT 7 -p tcp --dport 49355:49355 -j ACCEPT
to rc.local file. :)