Samba через VPN
Здравствуйте. Надо поднять самбу на сервере и подключаться к ней через впн соеденение. Есть две подсети на сервере. Одна домашняя(192.168.0.1), другая- ВПН(10.8.0.1). Машины(winXP), которые подключаются через ВПН не видят самбу ни в сетевом окружении, ни через поиск по айпи. Машины(Win7) из внутреней сети ее тоже не видят, но могут зайти по айпи и увидеть список файлов, но почему-то без пароля, хотя в самбе стоит security=user Версия самбы- 4.1.0 ОС- Slackware 14.1
/etc/pptpd.conf:
option /etc/ppp/options.pptpd
debug
logwtmp
localip 10.8.0.1
remoteip 10.8.0.2-50
/etc/ppp/options.pptpd:
name pptpd
lock
nodefaultroute
nobsdcomp
ms-dns 10.8.0.1
proxyarp
auth
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
require-mschap-v2
require-mppe-128
ipcp-accept-local
ipcp-accept-remote
lcp-echo-failure 30
lcp-echo-interval 5
debug
/etc/samba/smb.conf:
<global>
dos charset = CP860
workgroup = JW
netbios name = JWFS
server string = Samba%v
server role = standalone server
dns forwarder = 10.8.0.1
encrypt passwords = yes
passdb backend = smbpasswd
smb passwd file = /etc/samba/private/smbpasswd
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
os level = 34
local master = yes
; domain logons = yes
; preferred master = yes
domain master = no
bind interfaces only = yes
interfaces = ppp* eth0 127.0.0.1
wins support = yes
; name resolve order = lmhosts host wins bcast
hosts allow = 10.8.0 192.168.0. 127.0.0.1
guest account = guest
security = user
map to guest = bad user
invalid users = root
syslog only = no
syslog = 0
log file = /var/log/samba/log.%m
; unix password sync = yes
; passwd program = /usr/bin/passwd %u
;;;; Disable Printer ;;;;;
load printers = no
show add printer wizard = no
printcap name = /dev/null
disable spoolss = yes
<Public>
comment = Public
browseable = yes
; writable = yes
read only = no
guest ok = no
public = yes
path = /home/public
create mask = 0750
С клиентами на XP все в порядке. Их несколько и они друг друга видят. Но они в одной подсети, не через ВПН.
Вот еще выхлоп iptables -L:
Chain INPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere
ACCEPT udp -- anywhere anywhere udp dpt:netbios-ns
ACCEPT udp -- anywhere anywhere udp dpt:netbios-dgm
ACCEPT tcp -- anywhere anywhere tcp dpt:netbios-ssn
ACCEPT tcp -- anywhere anywhere tcp dpt:microsoft-ds
ACCEPT gre -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:pptp
ACCEPT all -- 10.8.0.0/24 anywhere
DROP tcp -- anywhere anywhere tcp dpt:http #conn src/32 > 50
ACCEPT tcp -- anywhere anywhere multiport dports http,https
DROP tcp -- anywhere anywhere tcp dpt:domain #conn src/32 > 8
ACCEPT tcp -- anywhere anywhere tcp dpt:domain
DROP udp -- anywhere anywhere udp dpt:domain #conn src/32 > 8
ACCEPT udp -- anywhere anywhere udp dpt:domain
ACCEPT udp -- anywhere anywhere udp dpts:bootps:bootpc
ssh_brute_check tcp -- anywhere anywhere ctstate NEW tcp dpt:22622
ssh_brute_check tcp -- anywhere anywhere tcp dpt:22622
ACCEPT tcp -- anywhere anywhere tcp dpt:ftp
ACCEPT tcp -- anywhere anywhere tcp dpts:41361:65534
Chain FORWARD (policy ACCEPT)
target prot opt source destination
TCPMSS tcp -- anywhere anywhere tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT gre -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp dpt:pptp
ACCEPT tcp -- 10.8.0.0/24 anywhere multiport dports netbios-ssn,microsoft-ds
ACCEPT tcp -- 10.8.0.0/24 anywhere multiport dports netbios-ssn,microsoft-ds
ACCEPT all -- 192.168.0.0/24 anywhere
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
ACCEPT all -- anywhere anywhere
ACCEPT all -- anywhere anywhere state NEW,RELATED,ESTABLISHED
ACCEPT udp -- anywhere anywhere udp spt:netbios-ns
ACCEPT udp -- anywhere anywhere udp spt:netbios-dgm
ACCEPT tcp -- anywhere anywhere tcp spt:netbios-ssn
ACCEPT tcp -- anywhere anywhere tcp spt:microsoft-ds
ACCEPT gre -- anywhere anywhere
ACCEPT tcp -- anywhere anywhere tcp spt:pptp
ACCEPT all -- 10.8.0.0/24 anywhere
ACCEPT tcp -- anywhere anywhere multiport sports http,https
ACCEPT tcp -- anywhere anywhere tcp spt:domain
ACCEPT udp -- anywhere anywhere udp spt:domain
ACCEPT udp -- anywhere anywhere udp spts:bootps:bootpc
ACCEPT tcp -- anywhere anywhere tcp spt:22622
ACCEPT tcp -- anywhere anywhere tcp spt:ftp
Chain ssh_brute_check (2 references)
target prot opt source destination
DROP all -- anywhere anywhere ctstate NEW recent: UPDATE seconds: 300 hit_count: 3 name: DEFAULT side: source mask: 255.255.255.255
ACCEPT all -- anywhere anywhere recent: SET name: DEFAULT side: source mask: 255.255.255.255
В нем я тупо все разрешил пока чтобы не грешить.