Ein loopback Interface ist genauso sicher wie eine 10er IP Adresse.
@DavidR
# netstat -lnp
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN 9199/mysqld
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 6964/sshd
nmap scan von außen:
#nmap -p 3306 -v 88.198.218.173
Starting Nmap 4.76 ( http://nmap.org ) at 2009-03-02 07:23 CET
Initiating Ping Scan at 07:23
Scanning 88.198.218.173 [2 ports]
Completed Ping Scan at 07:23, 0.05s elapsed (1 total hosts)
Initiating Parallel DNS resolution of 1 host. at 07:23
Completed Parallel DNS resolution of 1 host. at 07:23, 0.01s elapsed
Initiating SYN Stealth Scan at 07:23
Scanning static.88-198-218-173.clients.your-server.de (88.198.218.173) [1 port]
Completed SYN Stealth Scan at 07:23, 0.06s elapsed (1 total ports)
Host static.88-198-218-173.clients.your-server.de (88.198.218.173) appears to be up ... good.
Interesting ports on static.88-198-218-173.clients.your-server.de (88.198.218.173):
PORT STATE SERVICE
3306/tcp closed mysql
Read data files from: /usr/share/nmap
Nmap done: 1 IP address (1 host up) scanned in 0.19 seconds
Raw packets sent: 3 (112B) | Rcvd: 2 (68B)
Alles anzeigen
Es ist also problemlos möglich.
Eventuell mal den hosts Eintrag wie folgt abändern:
X.X.X.X hostname.tld hostname
127.0.0.1 localhost