OpenWrt Forum Archive

Topic: Port Forwarding problem

The content of this topic has been archived on 5 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

So... i log in with my user and password I go to "Network -> Firewall" and i enter port 54123 to be forwarded to 192.168.0.100 ( this is the static ip i use)
http://img231.imageshack.us/img231/9886/portsvg9.th.jpg

when i click on apply changes it gives me that :
Processing config file: firewall
eval: 7: /etc/init.d/S45firewall: Permission denied


a friend of mine suggested for me to use putty.exe to connect via SSH but putty.exe just stops working (not responding)
how can I forward this port ? I need it for my uTorrent
Any ideas ?


"Firmware Version WHITE RUSSIAN (RC5)
Kernel Version Linux version 2.4.30 (nbd@ux-2y02) (gcc version 3.4.4 (OpenWrt-1.0)) #1 Sun Mar 26 19:02:04 CEST 2006 "

(Last edited by buktopster on 5 Aug 2007, 12:12)

When forwarding a port from WAN to LAN you need to set the "destination port" from the drop down box in the same way that you set the protocol to TCP.

The port input field that you have used is only intended for when the external port is different from the one you wish to forward to on your computer. It is a bit misleading the way that page is set out and should probably be changed.

Hope that helps.

I set it to destination ports but it still doesn't work hmm
http://img482.imageshack.us/img482/3596/portdestinationpg0.th.jpg
I tried with port 21 (for FTP) and it doesn't work either

Once selecting "destination port" from the drop-down click the "add" button to it's right. That page definitely needs a fix.

i did that and it still doesn't work hmm i think that the problem is from when I "Apply Changes"

"Processing config file: firewall
eval: 7: /etc/init.d/S45firewall: Permission denied"

p.s. do I have to restart the router after i make the rules in the frwll?

It looks like for some reason the file /etc/init.d/S45firewall is not executable.  It should be easy to diagnose and fix if you can manage telnet or ssh access.

If you have never logged in to the router console, try entering "telnet <router_ip>" in the Start/Run... box, replacing <router_ip> with your router IP.  If that doesn't work, try entering "telnet <router_ip> 22" in the Start/Run... box, replacing <router_ip> with your router IP.  If it replies with something like "SSH-2.0-dropbear_0.48" then you should continue trying to get putty to work because the router is listening.

If all else fails, you can try reloading the firmware with the option box to "Erase JFFS2 partition" checked.  This should give you a completely fresh start (requiring redoing any changes you made from the default), which should have a working /etc/init.d/S45firewall.

Roy

thank you, I'll try this tommorow
I hope it works

it does reply me that but the stupid putty still stops working hmm
i tried it on XP and on Vista and it stops working when I hit connect
Do i have to enter any specific configs in the putty ?

buktopster , Can you please tell me how / where to install that nice GUI you have for the port forwarding there, I've looked all over the web interface and cant find one.

The discussion might have continued from here.