[Wylug-help] supplying services on non-standard ports
Andrew Beresford
beezly at beezly.org.uk
Wed Jun 2 14:05:53 BST 2004
--
Hi Marc,
iptables can do this kind of thing... you probably want something like;
iptables -t nat -A PREROUTING -p tcp --dport 12345 -j REDIRECT
--to-ports 3306
Having said that... if your mysql traffic is always only going to be
coming from a known IP address, why not firewall the port using iptables
so only a specific address can connect to port 3306 or use hosts.allow
to do the same.
Cheers,
Andrew
On Wed, 2004-06-02 at 13:33 +0100, Marc Jennings wrote:
> Hi there,
>
> I am running a mySQL server on a public-facing network that I need to
> connect to from another server. I would like to be able to specify a
> non-standard port so that it is less obvious what service I am
> exposing. I do not want to change the mySQL config if I can help it.
>
> Is there any easy way to use the OS to map requests coming in on (for
> example) port 12345 to port 3306, or will I have to fudge my database
> config to enable this kind of functionailty?
>
> Thanks in advance
> Marc
>
> ______________________________________________________________________
> This email has been scanned by the MessageLabs Email Security System.
> For more information please visit http://www.messagelabs.com/email
> ______________________________________________________________________
>
> _______________________________________________
> Wylug-help mailing list
> Wylug-help at wylug.org.uk
> http://list.wylug.org.uk/mailman/listinfo/wylug-help
--
Content-Description: This is a digitally signed message part
[ signature.asc of type application/pgp-signature deleted ]
--
More information about the Wylug-help
mailing list