grep -i mysqld /var/log/syslog
touch /var/lib/mysql/ib_logfile0
touch /var/lib/mysql/ib_logfile1
chown mysql. /var/lib/mysql/ib_logfile*
grep -i mysqld /var/log/message
Options error: route parameter gateway 'route_net_gateway' must be a valid address
Сколько у вас независимых роутеров?
push "route 192.168.18.0 255.255.255.0 $default_gateway"
route 192.168.10.0 255.255.255.0 client_ip1
route 192.168.20.0 255.255.255.0 client_ip2
route 192.168.30.0 255.255.255.0 client_ip3
route 192.168.10.0 255.255.255.0
route 192.168.20.0 255.255.255.0
route 192.168.30.0 255.255.255.0
push "redirect-gateway def1"
и она работает - весь трафик на клиентском роутере заворачивается в vpn и проходит через сервер.push "route 192.168.18.0 255.255.255.0 10.10.1.1"
, но чтобы адрес шлюза брался с DHCP провайдера (на данный момент это IP 10.10.1.1 и через пару недель он может поменяться, прецеденты уже были)[root@root ~]# tcpdump -i tun0
tcpdump: verbose output suppressed, use -v or -vv for full protocol decode
listening on tun0, link-type RAW (Raw IP), capture size 65535 bytes
14:11:54.055121 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49488, length 40
14:11:54.055141 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49488, length 40
14:11:55.069704 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49489, length 40
14:11:55.069719 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49489, length 40
14:11:56.087175 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49490, length 40
14:11:56.087190 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49490, length 40
14:11:57.101519 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49491, length 40
14:11:57.101536 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49491, length 40
14:11:58.117840 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49492, length 40
14:11:58.117858 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49492, length 40
14:11:59.132315 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49493, length 40
14:11:59.132335 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49493, length 40
14:12:00.148740 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49494, length 40
14:12:00.148763 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49494, length 40
14:12:01.162865 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49495, length 40
14:12:01.162881 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49495, length 40
14:12:15.379384 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49496, length 40
14:12:15.379400 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49496, length 40
14:12:15.379410 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49497, length 40
14:12:15.379412 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49497, length 40
14:12:15.379418 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49498, length 40
14:12:15.379421 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49498, length 40
14:12:15.449490 IP 10.10.0.2 > root: ICMP 10.10.0.2 protocol 1 unreachable, length 68
14:12:15.510363 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49499, length 40
14:12:15.510373 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49499, length 40
14:12:16.522746 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49500, length 40
14:12:16.522759 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49500, length 40
14:12:17.539418 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49501, length 40
14:12:17.539443 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49501, length 40
14:12:18.566757 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49502, length 40
14:12:18.566776 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49502, length 40
14:12:19.571940 IP 10.10.0.2 > root: ICMP echo request, id 1, seq 49503, length 40
14:12:19.571954 IP root > 10.10.0.2: ICMP echo reply, id 1, seq 49503, length 40