ubuntu 8.04
eth0 - внешняя локальная сеть провайдера(статический ип 10.xxx.xxx.xx )
ppp0 - vpn pptp инет
eth1 - домашняя сеть(статический ип 169.254.xxx.xx , 3 компа)
....
MySQL 5 + java jdk 6u14. При iptables по умолчанию, Логин_Сервер загружается норм:
[INFO 2009-08-12 10-15-45] com.aionemu.commons.database.DatabaseFactory:150 - Successfully connected to database
[INFO 2009-08-12 10-15-45] com.aionemu.loginserver.network.ncrypt.KeyGen:60 - Initializing Key Generator...
[INFO 2009-08-12 10-15-50] com.aionemu.loginserver.GameServerTable:68 - GameServerTable loaded 1 registered GameServers.
[INFO 2009-08-12 10-15-50] com.aionemu.loginserver.controller.BannedIpController:63 - BannedIpController loaded 0 IP bans.
[INFO 2009-08-12 10-15-50] com.aionemu.commons.network.NioServer:121 - Server listening on IP: 127.0.0.1 Port 9014 for Gs Connections
[INFO 2009-08-12 10-15-50] com.aionemu.commons.network.NioServer:121 - Server listening on IP: 10.xxx.xxx.xx Port 2106 for Aion Connections
[INFO 2009-08-12 10-15-50] com.aionemu.loginserver.LoginServer:89 - Heap Memory Usage: 9/31 MB
[INFO 2009-08-12 10-15-50] com.aionemu.loginserver.LoginServer:90 - NonHeap Memory Usage: 14/96 MB
Надо мне ещё , что бы в домашней сети был выход в локальную сеть провы и инет. Прописую:
modprobe ip_conntrack
modprobe ip_gre
modprobe ip_nat_pptp
iptables -t nat -A POSTROUTING -o ! eth1 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
Всё норм, инет и локалка в домашней сети, но при запуске сервера выдаёт ошибку:
[FATAL 2009-08-12 12-06-07] com.aionemu.commons.database.DatabaseFactory:135 - Error with connection string: jdbc:mysql://localhost:3306/ae_server_ls
java.sql.SQLException: null, message from server: "Host '10.xxx.xxx.xx' is not allowed to connect to this MySQL server"
at com.mysql.jdbc.SQLError.createSQLException(SQLError.java:1055)
и т.д.
Подскажите , как решить эту проблему!
Пользователь решил продолжить мысль 12 Августа 2009, 13:25:56:
Иными словами, что сюда надо добавить:
# Generated by iptables-save v1.3.8 on Wed Aug 12 13:13:20 2009
*mangle
:PREROUTING ACCEPT [7530:1996588]
:INPUT ACCEPT [7302:1980378]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [6783:1977170]
:POSTROUTING ACCEPT [6831:1983868]
COMMIT
# Completed on Wed Aug 12 13:13:20 2009
# Generated by iptables-save v1.3.8 on Wed Aug 12 13:13:20 2009
*filter
:INPUT ACCEPT [7302:1980378]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [6783:1977170]
COMMIT
# Completed on Wed Aug 12 13:13:20 2009
# Generated by iptables-save v1.3.8 on Wed Aug 12 13:13:20 2009
*nat
:PREROUTING ACCEPT [403:27767]
:POSTROUTING ACCEPT [1288:77870]
:OUTPUT ACCEPT [1289:77914]
-A POSTROUTING -o ! eth1 -j MASQUERADE
COMMIT
# Completed on Wed Aug 12 13:13:20 2009
Что бы и шлюз работал и не появлялось это: message from server: "Host '10.xxx.xxx.xx' is not allowed to connect to this MySQL server"