Probleempje met proftpd en virtualhosts.
Ik heb een machine waar proftdp 1.2.10 op draait. Deze machine heeft 1 Ip adress xxx.xxx.150.12.
Vervolgens heeft deze 2 namen
ftps.xxx.xxx.nl
ftps2.xxx.xxx.nl
Nu heb ik standaard in gesteld dat alle gebruiker op het pad /data uitkomen en dat geberud ook! alle gebruiker worden via radius geautentiseerd.
Daarna heb ik een virtual host aangemaakt voor anonymous en die zouden in /data/test moeten uitkomen maar dat gebeurd niet.
Alle gebruikers komen in /data uit.
Ik heb zelf gene idee wat er foiut gaat! heeft dit te make met 1 IP ?
Ik heb een machine waar proftdp 1.2.10 op draait. Deze machine heeft 1 Ip adress xxx.xxx.150.12.
Vervolgens heeft deze 2 namen
ftps.xxx.xxx.nl
ftps2.xxx.xxx.nl
Nu heb ik standaard in gesteld dat alle gebruiker op het pad /data uitkomen en dat geberud ook! alle gebruiker worden via radius geautentiseerd.
Daarna heb ik een virtual host aangemaakt voor anonymous en die zouden in /data/test moeten uitkomen maar dat gebeurd niet.
Alle gebruikers komen in /data uit.
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
| Mijn config:
# This is a basic ProFTPD configuration file (rename it to
# 'proftpd.conf' for actual use. It establishes a single server
# and a single anonymous login. It assumes that you have a user/group
# "nobody" and "ftp" for normal operation and anon.
ServerName "ProFTPD xxx"
ServerType standalone
DefaultServer on
RequireValidShell off
IdentLookups off
UseReverseDNS off
TimeoutIdle 300
TimeoutNoTransfer 300
AllowRetrieveRestart on
AllowStoreRestart on
AccessGrantMsg "Hier komt onze tekst te staan"
Bind ftps.xxx.xxx.nl
#RADIUS configuratie
RadiusEngine on
radiusacctserver radiusxxx.nl:1812 secrectkey 30
radiusauthserver radius.xxx.nl:1812 secretkey 30
RadiusLog /var/log/radius.log
#Aanzetten om acces van hosts.allow/deny te gebruiken
#WrapEngine on
#WrapTables file:/etc/hosts.allow file:/etc/hosts.deny
#logs
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
LogFormat write "%h %l %u %t \"%r\" %s %b"
ExtendedLog /var/log/proftpd.access.log WRITE,READ write
ExtendedLog /var/log/proftpd.auth.log AUTH auth
# Port 21 is the standard FTP port.
Port 21
# Umask 022 is a good standard umask to prevent new dirs and files
# from being group and world writable.
Umask 022
# To prevent DoS attacks, set the maximum number of child processes
# to 30. If you need to allow more than 30 concurrent connections
MaxInstances 30
# Set the user and group under which the server will run.
User nobody
Group nobody
# To cause every FTP user to be "jailed" (chrooted) into their home
# directory, uncomment this line.
DefaultRoot /data
# Normally, we want files to be overwriteable.
AllowOverwrite on
# Bar use of SITE CHMOD by default
<Limit SITE_CHMOD>
DenyAll
</Limit>
# Restricties voor defaultroot en users
# Alle home dirs waar CHROOT is
<Directory /data>
<Limit ALL>
AllowAll
</Limit>
</Directory>
<VirtualHost ftps2.xxx.xxx.nl>
RequireValidShell off
IdentLookups off
bind ftps2.xxx.xxx.nl
<Anonymous /data/test>
user ftp
group ftp
UserAlias anonymous ftp
</anonymous> |
Ik heb zelf gene idee wat er foiut gaat! heeft dit te make met 1 IP ?