Re: Traffic forwarding.....

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Feb 4, 2014 at 1:37 PM, Charles W Buege <cbuege@xxxxxxxxxxxxx> wrote:
Here's what I'd like to do now:  If there is an incoming connection to www.avengers.org that is going to port 3306 (MySQL) for example, how can I configure the system to pass this information along?

Services like MySQL don't have the idea of virtual hosting. All they know is that a connection was made.
I am pretty sure that virtual hosting was only added to HTTP in version 1.1 with the addition of the Host header.

I use SSH port forwarding to connect to MySQL, which may help with what you are trying to do.

ssh -L local_port:remote_host:remote_port ssh_server
So for example:

ssh -L 3306:site2.avengers.org:3306 10.1.12.11
ssh -L 3306:www.avengers.org:3306 10.1.12.11
and then connect your MySQL client to localhost:3306.

- Y

[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux