elefas: (Default)
mpd.conf (Собственно впн))))
#/usr/local/etc/mpd/mpd.conf
efault:
load pptp0
load pptp1
load pptp2
load pptp3
load pptp4
load pptp5
load pptp6
load pptp7
load pptp8
load pptp9
load pptp10
load pptp11
load pptp12
load pptp13
load pptp14
load pptp15
load pptp15
load pptp16
load pptp17
load pptp18
load pptp19
load pptp20
load pptp21
load pptp22
load pptp23
load pptp24
load pptp25
load pptp26
load pptp27
load pptp28
load pptp29
load pptp30
pptp0:
new -i ng0 pptp0 pptp0
set ipcp ranges 192.168.200.80/24 192.168.200.85/24
load pptp_standart
pptp1:
new -i ng1 pptp1 pptp1
set ipcp ranges 192.168.200.3/24 192.168.200.4/24
load pptp_standart
pptp2:
new -i ng2 pptp2 pptp2
set ipcp ranges 192.168.200.5/24 192.168.200.6/24
load pptp_standart
pptp3:
new -i ng3 pptp3 pptp3
set ipcp ranges 192.168.200.7/24 192.168.200.8/24
load pptp_standart

#Так далее до pptp30

pptp_standart:
set iface disable on-demand
set iface enable proxy-arp
set link mtu 1400
set iface enable tcpmssfix
set bundle enable multilink
set link yes acfcomp protocomp
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e56
set ccp yes mpp-e128
set ccp yes mpp-stateless
set bundle yes crypt-reqd
set link accept chap-msv1
set link disable pap chap
set link enable chap-msv1
set link enable chap-msv2
set link enable chap
set link keep-alive 120 360
set pptp self 77.73.53.122
set ipcp yes vjcomp
set ipcp dns 77.73.48.2
elefas: (Default)
[global]
netbios name = FileServer #собственно то как машина будет видна у клиентов
workgroup = GLAGOL # виндовая рабочая группа в которой находится наш сервер
security = share # какой вариант идентификации пользователей будет юзать samba
display charset = koi8-r
unix charset = koi8-r
dos charset = cp866

#дальше идут папки которые собственно шары))#

[ATM_export]
path = /home/samba/ATM_export # наша папка
comment = ATM_export # комментарий к папке
writeable = yes # разрешение на запись
guest ok = yes # разрешаем гостевой доступ
guest user = nobody # гостевой пользователь.. для шары это nobody

[base]
path = /home/samba/base
comment = base
writeable = yes
guest ok = yes
guest user = nobody

[GP]
path = /home/samba/GP
comment = GP
writeable = yes
guest ok = yes
guest user = nobody

[Jingle]
path = /home/samba/Jingle
comment = Jingle
writeable = yes
guest ok = yes
guest user = nobody

[Music]
path = /home/samba/Music
comment = Music
writeable = yes
guest ok = yes
guest user = nobody[news]
path = /home/samba/news
comment = news
writeable = yes
guest ok = yes
guest user = nobody

[Obiyavlenia]
path = /home/samba/Obiyavlenia
comment = Obiyavlenia
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_aleksandrovsk]
path = /home/samba/Playlist_aleksandrovsk
comment = Playlist_aleksandrovsk
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_blagodarniy]
path = /home/samba/Playlist_blagodarniy
comment = Playlist_blagodarniy
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_budenovsk]
path = /home/samba/Playlist_budenovsk
comment = Playlist_budenovsk
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_ipatovo]
path = /home/samba/Playlist_ipatovo
comment = Playlist_ipatovo
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_izobil]
path = /home/samba/Playlist_izobil
comment = Playlist_izobil
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_neftekumsk]
path = /home/samba/Playlist_neftekumsk
comment = Playlist_neftekumsk
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_Nevino]
path = /home/samba/Playlist_Nevino
comment = Playlist_Nevino
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_novoaleksandrovsk]
path = /home/samba/Playlist_novoaleksandrovsk
comment = Playlist_novoaleksandrovsk
writeable = yes
guest ok = yes
guest user = nobody
[Playlist_piytigorsk]
path = /home/samba/Playlist_piytigorsk
comment = Playlist_piytigorsk
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_stavropol]
path = /home/samba/Playlist_stavropol
comment = Playlist_stavropol
writeable = yes
guest ok = yes
guest user = nobody

[Playlist_svetlo]
path = /home/samba/Playlist_svetlo
comment = Playlist_svetlo
writeable = yes
guest ok = yes
guest user = nobody


[Pogoda]
path = /home/samba/Pogoda
comment = Pogoda
writeable = yes
guest ok = yes
guest user = nobody

[Radio]
path = /home/samba/Radio
comment = Radio
writeable = yes
guest ok = yes
guest user = nobody

[Reklama]
path = /home/samba/Reklama
comment = Reklama
writeable = yes
guest ok = yes
guest user = nobody
[root]
path = /home/samba/root
comment = root
writeable = yes
guest ok = yes
guest user = nobody

[Template_dorojnoe]
path = /home/samba/Template_dorojnoe
comment = Template_dorojnoe
writeable = yes
guest ok = yes
guest user = nobody

[Template_shanson]
path = /home/samba/Template_shanson
comment = Template_shanson
writeable = yes
guest ok = yes
guest user = nobody

[Template_vanya]
path = /home/samba/Template_vanya
comment = Template_vanya
writeable = yes
guest ok = yes
guest user = nobody

[Promo]
path = /home/samba/Promo
comment = Promo
writeable = yes
guest ok = yes
guest user = nobody

[Kstati]
path = /home/samba/Kstati
comment = Kstati
writeable = yes
guest ok = yes
guest user = nobody

Кстати папку /home/samba/* нужно отдать юзеру nobody
делаем
chown -R nobody /home/samba

Profile

elefas: (Default)
elefas

June 2011

S M T W T F S
   1234
5 6 7 8 91011
1213 14 15 161718
1920 212223 2425
26 27282930  

Syndicate

RSS Atom

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Jul. 22nd, 2017 08:36 am
Powered by Dreamwidth Studios