/ Forside / Teknologi / Operativsystemer / Linux / Nyhedsindlæg
Login
Glemt dit kodeord?
Brugernavn

Kodeord


Reklame
Top 10 brugere
Linux
#NavnPoint
o.v.n. 11177
peque 7911
dk 4814
e.c 2359
Uranus 1334
emesen 1334
stone47 1307
linuxrules 1214
Octon 1100
10  BjarneD 875
proftpd - limits, classes etc ?
Fra : Brian Ipsen


Dato : 17-08-03 20:17

Hej!

Jeg har følgende config til min proftpd:

ServerType inetd
DefaultServer on
MaxInstances 30
# Classes definition
Classes on
Class local limit 10
Class local ip 192.168.10.0/24
Class default limit 5
<Global>
# Set the user and group under which the server will run.
User nobody
Group nobody
Umask 022
# Disbale PAM User Authentication
AuthPAM off
# Logins does not require a valid shell account
RequireValidShell off
# Set port range to use for passive ftp users
PassivePorts 51000 52999
# Set limits on logins
MaxClientsPerUser 2 "Sorry, you may not have more than 2 instances
running."
MaxClientsPerHost 2 "Sorry, you may not have more than 2 instances
running."
# Timeout parameters
TimeoutIdle 900
TimeoutLogin 120

# En masse SQL info, da den validerer brugere mod SQL)
</Global>

<VirtualHost ftp.domain.dk>
ServerName "FTP Server"
# Port 21 is the standard FTP port.
Port 21
MaxClients 30
# To cause every FTP user to be "jailed" (chrooted) into their
# home directory, uncomment this line.
DefaultRoot ~

# Message to display at login
DisplayLogin .welcome.msg

<Directory />
AllowOverwrite off
</Directory>
#
# "Public" FTP
#
<Directory /home/ftp>
AllowOverwrite off
HideFiles .welcome.msg
TransferRate RETR 18 class default
TransferRate RETR 10000 class local
</Directory>
<Directory /home/ftp/upload>
AllowOverwrite on
AllowStoreRestart on
TransferRate RETR 18 class default
TransferRate RETR 10000 class local
</Directory>
</VirtualHost>

Problemet er nu, at jeg ligger ind fra en adresse på 192.168.10.0
nettet - og jeg får:

You are user number 1 of 30 allowed
( of 30 in your class: ) - connecting from 192.168.225.1.
Local time is now Sun Aug 17 21:11:04 2003. Server port: 21.
You will be disconnected after 15 minutes of inactivity.

Desuden virker TransferRate tilsyneladende heller ikke efter hensigten
på forbindelser udefra..... Any hints ?

/Brian


 
 
Søg
Reklame
Statistik
Spørgsmål : 177560
Tips : 31968
Nyheder : 719565
Indlæg : 6408952
Brugere : 218888

Månedens bedste
Årets bedste
Sidste års bedste