-
Notifications
You must be signed in to change notification settings - Fork 0
/
opentftp.ini
120 lines (109 loc) · 4.04 KB
/
opentftp.ini
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
#This file stores configuration settings.
#Anything starting with punctuation would be comment
#comment ' should be removed in front of sample values if used/changed
#IMPORTANT WARNING Never Edit this file using Windows Editor
[LISTEN-ON]
#if you have more than one NIC card on your server, you
#can specify which cards/ports will listen TFTP requests
#Specify the Interfaces you would like server to listen
#Upto 8 interfaces can be specified.
#default listening port is 69, but can be overridden here.
#listening on ports less than 1024 needs root account to
#start the server but can switch to another user while
#running (please see username under [TFTP-OPTIONS] section.
#You can also listen on 0.0.0.0, which will amount to
#listening on all interfaces on single socket. If you do
#not specify any interface, it will automatically detect
#all interfaces.and would listen individually on these
#interfaces. Also if the system is running under root
#(please see username under [TFTP-OPTIONS] section), then
#server will also dynamically detect changes in interfaces.
'0.0.0.0
'128.254.185.131
'192.168.0.40:69
'127.0.0.1:3000
IPv6=::
[HOME]
#You should specify home directory(s) here
#You can specify one directory as home
#directory, from where files will be served or
#deposited like:-
'/home/me/firmware/
#If no home directory is specified default is the
#home directory of username (see [TFTP OPTIONS])
#Alternatively if you want to specify multiple
#home directories, you need to use aliases
#like:-
'routers=/hda1/RouterImages/Images
'boot=/mnt/pc1/PXEBoot/Images
'installs=/hda5/installs
[LOGGING]
#Logging will be done only if run as Service.
#LogLevels can be set as None, Errors or All
#Log file need to be specified at command line.
#Log file name should include %Y%m%d, %Y will be replaced
#by Current Year, %m by current month and %d by current year.
#For example #/opt/dualserver/dualserver -l/opt/dualserver/log/dualserver%Y%m%d.log
'None
'Errors
'All
[ALLOWED-CLIENTS]
#These are permitted clients for TFTP Access.
#Hosts having IP address within these ip ranges
#only will be responded to DNS requests.
#32 hosts or 32 ranges can be specified.
#If none is specified, then all are allowed
'192.168.0.1-192.168.0.254
'10.0.0.1-10.255.255.254
'33.67.8.123
[TFTP-OPTIONS]
#First option is username (login), this is the user, who
#will be owner of process, the process can be started as
#privileged user and after opening privileged ports,
#would run as this user. This user would be owner
#of new files put to server. When overwriting files,
#this user should have write access and for reading
#files, this user should have read access to the files.
'username=myname
#Next option is server port range on which tftpserver
#would respond from, if you have firewall
#issues, you may like to restrict this
#range. default is any free port
#do not use reserve ports less than 1024
#The Multithreaded TFTP Server listens the
#requests on port 69 but responds on any free
#port within these ranges, these are server
#ports not client ports, client can use any port
#if there is a fire wall issue, it should be
#opened for server ip for these ports.
'port-range=30000-30010
#Next is default timeout per interval
#if not overridden by client
#min is 1, max can be 255, default is 3
'timeout=3
#Next is Thread Pool Size
#value of 0 means there is no thread pool
#threads will be created just in time and
#killed after serving requests.
#if simultaneous request are more than
#thread pool size, extra threads will be
#created and killed after serving requests
#but ready threads will never be less than this value
#min is 0, max can be 100
ThreadPoolSize=1
#Next is max block size, allowed
#on client request. Max is 65464
#it can be reduced if there are memory issues.
#if not overridden by client
#it is always 512
'blksize=65464
#Next are the file operation permissions
#Clients can only read files if read is
#set to Y, default is Y
'Read=Y
#Clients can only create new files if write is
#set to Y, default is N
'Write=N
#Clients can only overwrite existing files if
#overwrite is #set to Y, default is N
'Overwrite=N