TurnKey Linux Virtual Appliance Library

Help! Port fowarding!

kierdavis's picture

I've created a TurnKey Hub server with the LAMP stack image (and it's been working perfectly). However, I would like to open port 3306 on the server (the MySQL port) so that I can access the database from my home machine. I have cloned one of the existing firewall rules in Webmin and changed the TCP port number, but this does not appear to work; the following command produces the same output whether this rule is enabled or not (after a long delay, where I assume the connection is timing out):

$ mysql --host XXXXX.tklapp.com --port 3306 --user root --password


ERROR 2003 (HY000): Can't connect to MySQL server on 'XXXXX.tklapp.com' (110)
A screenshot of the Webmin firewall setup is attached.
kierdavis's picture


Sorry, fixed it! Hadn't seen the external firewall configuration, in the servers dashboard on the Hub

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <p> <span> <div> <h1> <h2> <h3> <h4> <h5> <h6> <img> <map> <area> <hr> <br> <br /> <ul> <ol> <li> <dl> <dt> <dd> <table> <tr> <td> <em> <b> <u> <i> <strong> <font> <del> <ins> <sub> <sup> <quote> <blockquote> <pre> <address> <code> <cite> <strike> <caption>

More information about formatting options

Leave this field empty. It's part of a security mechanism.
(Dear spammers: moderators are notified of all new posts. Spam is deleted immediately)