About this list Date view Thread view Subject view Author view Attachment view

From: Micah Anderson (micah_at_riseup.net)
Date: Wed 21 Apr 2004 - 03:03:22 BST

I've got a vserver whose IP is and another whose is I can ping between these two vservers fine, however, I
tried to setup mysql to connect from .1 to .2 and found that it was
using the host's actual IP to connect, instead of the private IP:

$ mysqladmin -h ping
connect to server at '' failed
error: 'Host '' is not allowed to connect to this MySQL

I used tcpdump to look at the different interfaces, and it was only
when I looked at the loopback did I see the traffic happening:

18:51:54.867738 > S
648997658:648997658(0) win 32767 <mss 16396,sackOK,timestamp 88679821
0,nop,wscale 0> (DF)
18:51:54.867825 > S
649947611:649947611(0) ack 648997659 win 32767 <mss
16396,sackOK,timestamp 88679821 88679821,nop,wscale 0> (DF)
18:51:54.867904 > . ack
1 win 32767 <nop,nop,timestamp 88679821 88679821> (DF)
18:51:54.868663 > P
1:77(76) ack 1 win 32767 <nop,nop,timestamp 88679822 88679821> (DF)
[tos 0x8]
18:51:54.868740 > . ack
77 win 32767 <nop,nop,timestamp 88679822 88679822> (DF)
18:51:54.868801 > F
77:77(0) ack 1 win 32767 <nop,nop,timestamp 88679822 88679822> (DF)
[tos 0x8]
18:51:54.869254 > F
1:1(0) ack 78 win 32767 <nop,nop,timestamp 88679822 88679822> (DF)
[tos 0x8]
18:51:54.869305 > . ack
2 win 32767 <nop,nop,timestamp 88679822 88679822> (DF) [tos 0x8]

How can I make it so that the vserver is communicating with the
private IP instead of the public one? I want to do this so I can allow
some vservers the ability to access the mysql, but not others. I can
simply add to the tables to be able to connect, but
then all the vservers would be able to connect, when I only want to be able to connect, but not for example.

Thanks for any pointers! Here is some more info:

# the vserver which runs the databases

S_FLAGS="lock nproc"
ULIMIT="-u 256 -n 1024"



"Naturally, the common people don't want war, but after all, it
is the leaders of a country who determine the policy...Voice or no
voice, the people can always be brought to the bidding of the leaders.
This is easy. All you have to do is to tell them they are being
attacked, and denounce the pacifists for lack of patriotism and
exposing the country to danger. It works the same in every country."
                                                  -- Goering, Nuremburg trial
Vserver mailing list

About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 21 Apr 2004 - 03:05:07 BST by hypermail 2.1.3