Link to home
Start Free TrialLog in
Avatar of mrmyth
mrmythFlag for United States of America

asked on

linksys WRT54G2 web port forwarding

I have a server on my LAN and I want to use my linksys WRT54G2 to forward internet traffic to my CentOS web server where I have my website. I had it working before using NAT one-to-one on my SOHO3 Sonicwall, but the Sonicwall died. I'm trying to just use this Linksys now to route the web traffic for now. I realize it's not optimal, but I think it should be working.

I set Port Range Forwarding to forward port 80 to 192.168.1.43 (my web server).

RDP is working fine to my file server, but the web server just won't work. I can see it locally on my LAN, but when I go to the WAN address in a browser. No can do. User generated image
Avatar of akahan
akahan
Flag of United States of America image

Have you tried accessing it from outside your local network?  You're generally not going to be able to access an address on your LAN through this router from within your LAN using the WAN address.

Also, make sure remote administration is turned off in the router.


Avatar of mrmyth

ASKER

Thanks, good point. I have tried from outside and I have the same problem.

Here is a screenshot of the settings I have for remote administration. I'm not sure the difference between "Web Access" and "Remote router Access." User generated image
The settings look right.
I suppose you could try putting the web server in the DMZ temporarily to make sure there's not some firewall blocking access.
Avatar of mrmyth

ASKER

okay i figured something out. my web server is CentOS and i can't  get the port to forward to it, however, my file server also has an old website on it and i forwarded the 80 web port to it and it works fine, i can see the site from a browser. the external IP address is new, maybe the CentOS sever website requires some change of some sort
Avatar of mrmyth

ASKER

By the way, my fle server is windows smb 2003. Ive just requested attention from a Linux queue too in case it's it's a setting on my web server to accept the WAN IP address change
Hi,

the problem is that the router use this ports to mgmt, you need to create another NAT rule for example:

4443 --> 443
8080 --> 80
Avatar of shukalo83
shukalo83

as root on centos send us output of those

iptables -n -vL
iptables -n -vL -t nat
netstat -tapn
cat /etc/hosts.deny
cat /etc/hosts.allow
ip addr show
ip route show
As for linksys, disable any firewall, disable management from outside.
Avatar of mrmyth

ASKER

Can I create a nat rule on this router? How come it works with my windows server?
OK, now I got that you did not made port forward at all.
http://portforward.com/english/routers/port_forwarding/Linksys/WRT54G2/

Do it and then try from outside with your webbrowser. (You enter the wan address of linksys router, no webserver itself)
Avatar of mrmyth

ASKER

Shukalo83, look up above at the 1st screenshot. Port forwarding was done. Is that what you were referring to?

Sorry on that again. If your centos is 192.168.1.43 then yes.

Please, can you post me output of aforementioned commands from webserver?
ASKER CERTIFIED SOLUTION
Avatar of akahan
akahan
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrmyth

ASKER

Thanks for all your help. It turns out that the default gateway on the web server had to be changed from the address of the old sonicwall 192.168.1.43 to the ip of the Linksys router 192.168.1.1