[Sysadmins] OpenVPN SMB и FTP ресурсы
Maxim Ivanov
maxiva на yandex.ru
Вт Дек 24 18:56:58 MSK 2013
24.12.2013, 16:35, "Viacheslav Dubrovskyi" <dubrsl на gmail.com>:
>
> Ну а где данные с клиента?
Вот они:
ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 16436 qdisc noqueue state UNKNOWN
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
2: eth3: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN qlen 1000
link/ether 00:04:76:a2:69:62 brd ff:ff:ff:ff:ff:ff
3: eth2: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 1000
link/ether 00:0c:6e:52:fd:ae brd ff:ff:ff:ff:ff:ff
inet 192.168.0.100/24 brd 255.255.255.255 scope global eth2
4: wlan0: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN qlen 1000
link/ether 00:21:27:d1:ca:ae brd ff:ff:ff:ff:ff:ff
6: tun0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UNKNOWN qlen 100
link/none
inet 10.10.100.14 peer 10.10.100.13/32 scope global tun0
# ip r
0.0.0.0/1 via 10.10.100.13 dev tun0
default via 192.168.0.1 dev eth2 proto static
5.19.246.35 via 192.168.0.1 dev eth2
10.10.100.0/24 via 10.10.100.13 dev tun0
10.10.100.13 dev tun0 proto kernel scope link src 10.10.100.14
128.0.0.0/1 via 10.10.100.13 dev tun0
192.168.0.0/24 dev eth2 proto kernel scope link src 192.168.0.100 metric 1
192.168.1.0/24 via 10.10.100.13 dev tun0
# ip ru
0: from all lookup local
32766: from all lookup main
32767: from all lookup default
#ip netns
(пусто)
Прописал на обоих роутерах, что стоят на окончании обоих сетей маршруты в сеть 10.10.100.0.
При этом (я про прописанные маршруты на роутерах) мне стал доступен и сам роутер на стороне сервера.
Поправил маршруты, как вы сказали (проблема с масками /24 и /30).
Что характерно: к ftp подключился!
Dec 24 18:41:16 server proftpd[25346] 192.168.1.5 (10.10.100.14[10.10.100.14]): FTP session opened.
Dec 24 14:41:17 server proftpd[25346] 192.168.1.5 (10.10.100.14[10.10.100.14]): Preparing to chroot to directory '/home/ivanov'
Dec 24 14:41:17 server proftpd[25346] 192.168.1.5 (10.10.100.14[10.10.100.14]): USER ivanov: Login successful.
А вот самба продолжает не пускать (уровень логов выставлен в десятку):
[2013/12/24 18:41:42.329547, 6, pid=25364, effective(0, 0), real(0, 0)] ../source3/param/loadparm.c:2656(lp_file_list_changed)
lp_file_list_changed()
file /etc/samba/smb.conf -> /etc/samba/smb.conf last mod_time: Tue Dec 24 17:08:29 2013
[2013/12/24 18:41:42.329772, 3, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/access.c:338(allow_access)
Allowed connection from 10.10.100.14 (10.10.100.14)
[2013/12/24 18:41:42.329835, 10, pid=25364, effective(0, 0), real(0, 0)] ../source3/smbd/process.c:3474(smbd_process)
Connection allowed from ipv4:10.10.100.14:33224 to ipv4:192.168.1.5:139
[2013/12/24 18:41:42.330057, 3, pid=25364, effective(0, 0), real(0, 0), class=locking] ../source3/smbd/oplock.c:985(init_oplocks)
init_oplocks: initializing messages.
[2013/12/24 18:41:42.330121, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 774 - private_data=0xb77760d0
[2013/12/24 18:41:42.330179, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 776 - private_data=0xb77760d0
[2013/12/24 18:41:42.330235, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 775 - private_data=0xb77760d0
[2013/12/24 18:41:42.330290, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 778 - private_data=0xb77760d0
[2013/12/24 18:41:42.330345, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 777 - private_data=0xb77760d0
[2013/12/24 18:41:42.330400, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 770 - private_data=0xb77760d0
[2013/12/24 18:41:42.330456, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 787 - private_data=0xb77760d0
[2013/12/24 18:41:42.330511, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 779 - private_data=0xb77760d0
[2013/12/24 18:41:42.330571, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 15 - private_data=(nil)
[2013/12/24 18:41:42.330626, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:308(messaging_register)
Overriding messaging pointer for type 15 - private_data=(nil)
[2013/12/24 18:41:42.330685, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:340(messaging_deregister)
Deregistering messaging pointer for type 16 - private_data=(nil)
[2013/12/24 18:41:42.330741, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 16 - private_data=0xb77760d0
[2013/12/24 18:41:42.330796, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:340(messaging_deregister)
Deregistering messaging pointer for type 33 - private_data=0xb7771b08
[2013/12/24 18:41:42.330851, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 33 - private_data=0xb77760d0
[2013/12/24 18:41:42.330906, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:340(messaging_deregister)
Deregistering messaging pointer for type 1 - private_data=(nil)
[2013/12/24 18:41:42.330961, 5, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/messages.c:293(messaging_register)
Registering messaging pointer for type 1 - private_data=(nil)
[2013/12/24 18:41:42.331034, 10, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/events.c:518(event_add_idle)
event_add_idle: idle_evt(keepalive) 0xb7774710
[2013/12/24 18:41:42.331094, 10, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/events.c:518(event_add_idle)
event_add_idle: idle_evt(deadtime) 0xb7774770
[2013/12/24 18:41:42.331169, 10, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/events.c:518(event_add_idle)
event_add_idle: idle_evt(housekeeping) 0xb77747d0
[2013/12/24 18:41:42.331323, 10, pid=25364, effective(0, 0), real(0, 0)] ../source3/lib/util_sock.c:337(read_smb_length_return_keepalive)
got smb length of 68
[2013/12/24 18:41:42.331400, 6, pid=25364, effective(0, 0), real(0, 0)] ../source3/smbd/process.c:1792(process_smb)
got message type 0x81 of len 0x44
[2013/12/24 18:41:42.331480, 3, pid=25364, effective(0, 0), real(0, 0)] ../source3/smbd/process.c:1794(process_smb)
Transaction 0 of length 72 (0 toread)
[2013/12/24 18:41:42.331603, 2, pid=25364, effective(0, 0), real(0, 0)] ../source3/smbd/reply.c:591(reply_special)
netbios connect: name1=192.168.1.5 0x20 name2=HOME 0x0
[2013/12/24 18:41:42.331706, 2, pid=25364, effective(0, 0), real(0, 0)] ../source3/smbd/reply.c:632(reply_special)
netbios connect: local=192.168.1.5 remote=home, name type = 0
___________________________________________
С уважением,
Иванов Максим
mailto:maxiva на yandex.ru
Подробная информация о списке рассылки Sysadmins