I can't access MYSQL on port 3306 from the internet on a linux box behind a router, What's missing?

I have a linux box running on with my sql working on it on port 3306 in my LAN,
I setup the router to forwars incoming calls on port 3306 to

I setup linux box with no FIREWALL to see if that fixed the problem but no luck. iptables -F .

I even tried with sftp using port 22 , port 80 web server and I get connection refused. What could be missing?

If I use the internal Network everything works great but not through the rourter port forwarding, which by the way works well because I have other ports on other server working perfectly.


Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

On your box, try

telnet 3306

If you see something like this:

Escape character is '^]'.

This means mysql is running and bound to the correct IP address and you should troubleshoot your router. Depending on your router it may take a simple router reboot to flush router's ARP tables (hardware routers) or something like that from the command line (Linux routers). What kind of router do you use?
henry007Author Commented:
yes That's what I get, So I think there is a filter somewhere that only allows IPs starting with 192.1268.bla.bla.bla.  The Router is a belkin router. It's a piece of cake to configure, and as I said above it works on other OS's . What do you think ?
If you get "connection refused" for :21 and :80 connects I would take a look at /etc/hosts.deny & /etc/hosts.allow. Interesting though.

Does your belin router have any admin testing tools (at least ping)?
Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

  tcpdump -l -n port 3306
on your linux box, then try to connect from internet, if you don't see anything then it's a router problem

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
henry007Author Commented:
I don't see anything. Nothing at al.  Mmmm the router is doing it job on other servers, I'll swap it just for the heck of it.
henry007Author Commented:
It's the router, I installed a linksys router and allow me to get through. I wonder why Belikin router won't budge, it works on windoze servers but not linux servers, Well I think I have to call the tech support in india and ask them why in the world is not forwarding to linux servers.

Thanks to all
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.