root/floppyfw-3.0/scripts/config

Revision 273, 10.7 KB (checked in by root, 10 months ago)

Various fixes I should have synced earlier and one new feature (!).

Now it will attept to save and then use the last address it got from the DHCP server through reboots.

Line 
1#
2# Configuration for floppyfw
3
4# $Id: config,v 1.12 2005/09/24 17:50:01 thomasez Exp $
5
6#
7# Fill in the blanks.
8#
9
10# For configuring of modules to use,
11# this includes the network interfaces: /modules.lst
12
13# For configuring firewall rules and incoming traffic: /firewall.ini
14# For configuring extra network interfaces you may use netwirk.ini
15
16# Serial console is set in syslinux.cfg (or isolinux.cfg for CD's)
17
18# The default internal network is 10.42.42.* with 10.42.42.1
19# As the floppyfw internal address (and default gateway for all
20# internal machines). To change this go down to the INSIDE section.
21
22#=============================================================================
23#
24# Basic configuration:
25#
26
27# Select the type of your OUTSIDE connection:
28
29# CONNECT_TYPE=PPP      # if you use a modem
30
31# CONNECT_TYPE=PPPoE    # if you use some type of DSL that uses PPPoE
32                        # (Most of them do)
33CONNECT_TYPE=DHCP       # For getting the IP address by DHCP, often used
34                        # on cable modems.
35
36DHCP_USE_LAST_ADDR=y    # I'll make this new feature a default yes.
37                        # Reason is simple; I Want it and I presume
38                        # most others want it aswell.
39                        # Since it tries to store the address on the
40                        # root / source media, this only works with a
41                        # writeable source.
42
43# CONNECT_TYPE=STATIC   # For the good old LAN/WAN connections with
44                        # static IP addresses on the outside.
45                        # (setup of the interface is done further down
46                        # in this file)
47
48# CONNECT_TYPE=EXTERNAL # is a hook for booting a external startup
49                        # script from a package.
50                        # the external script has to be in /etc/ext-up.init
51
52#
53# Some connection methods wants a userid and password, PPP and PPPoE
54# is the typical but also the EXTERNAL option may want it.
55# This is also where you can put the hostname/user id that some DHCP servers
56# and ISPs require.
57#
58USER_IDENT=
59USER_PASSWORD=
60
61#
62# Use a DHCP server on the inside network. (This will turn on DNSMASQ aswell)
63# (Dnsmasq is a dns cache.)
64#
65DHCP_SERVER=n
66
67#
68# Floppyfw now has a login prompt.
69# Default, for now, is a login prompt and no password..
70# You have to "login" as root.
71#
72# Password can be created in many ways. You have two (three) options,
73# DES_PASSWORD will accept a crypted string
74# PASSWORD will accept a string (the specific root password,
75#          minimum 5 characters, maximum 8.).
76
77# This will give you "ffw" as login password.
78# DES_PASSWORD=nCLm5JgCK0G5U
79PASSWORD=
80
81
82#
83# Done! Your floppyfw should already work by now.
84# Save this file and give it a first shot !
85# Beneath are options for setting up more advanced stuff
86# (including static network settings and ppp)
87
88#=============================================================================
89#
90# Wonder shaper. http://lartc.org/wondershaper/
91#
92# Set this to "y" if you want wonder shaper to run at startup.
93WONDER_SHAPER=n
94
95# This requires you to set the download and upload speed.
96
97# The speed you are receiving data (downlink), in Kbit:
98DOWNLOAD_SPEED=2048
99
100# The speed you are sending data (uplink), in Kbit:
101UPLOAD_SPEED=256
102
103#====================================
104#
105# VoIP Subsection of Wonder shaper (Disabled if WONDER_SHAPER=n)
106#
107# If you have a IP-Phone, set this to the IP address of the phone
108# or the machine running the phone software and Wondershaper will be
109# even better. If left blank will remove the VoIP RT10 Class completely.
110PHONE_IP=
111
112# PHONE_IP VoIP Class 10 RTP data - set to desired rate (90000 recommended)
113# If left blank will remove the VoIP RT10 Class completely.
114RT10=90000
115
116# To forward RTP or SIP ports, set the appropriate FORWARD_XXX=y
117# Note that forwarding udp ports will have security implications.
118# VOIP rtp data ports - LOwest and HIghest port number in range
119# get from your VoIP provider
120LO_RTPPORT=
121HI_RTPPORT=
122FORWARD_RTP=n
123
124# INT - SIP priority ports - space separated if > 1
125# get from your VoIP provider - normally "5060" or "5060 5061"
126INTPORTS=""
127FORWARD_SIP=n
128
129#
130#=============================================================================
131#
132
133#
134# Physical device layout:
135#
136# In the files /etc/outside.info and /etc/inside.info you will see
137# OUTSIDE_DEVICE and INSIDE_DEVICE, those are the logical devices used by
138# firewall.init and friends..
139#
140# If you have only one network card you can set INSIDE_DEV to eth0:0
141# and it will use ip aliasing to make it all work.
142#
143# You can also use device.VLAN-ID to automatically set it as a VLAN.
144#
145OUTSIDE_DEV=eth0
146INSIDE_DEV=eth1
147
148#-----------------------------------------------------------------------------
149#
150# INSIDE settings:
151#
152#
153# Your inside network, this has 10.42.42.* set as default, this is
154# addresses assigned for internal networks according to RFC 1918.
155#
156# Network and broadcast address will be automatically configured.
157#
158INSIDE_IP=10.42.42.1
159INSIDE_NETMASK=255.255.255.0
160
161#
162# If you use the internal DHCP server and change the IP address and range
163# above you should also set the dhcp address range.
164#
165DHCP_RANGE_START=10.42.42.100 
166DHCP_RANGE_END=10.42.42.200
167
168#-----------------------------------------------------------------------------
169
170#
171# OUTSIDE settings if you are using the STATIC connection option:
172#
173# Network and broadcast address will be automatically configured.
174#
175OUTSIDE_IP=
176OUTSIDE_NETMASK=
177
178#
179# Misc
180# These are not nescessary to set if you are using DHCP.
181# (The DOMAIN field might be useful to change)
182#
183DEFAULT_GATEWAY=
184
185# Name servers can be a list, separated by a space. like "1.1.1.1 1.1.1.2"
186OUTSIDE_NAMESERVERS=""
187
188# MAC address for outside nic
189# Some ISPs uses bootp style dhcp tables and some just remembers the last
190# used MAC address. this allows you to swap nics
191# OUTSIDE_MAC=00:00:e8:48:6c:cb
192
193#-----------------------------------------------------------------------------
194
195#
196# DMZ settings.
197#
198# You can also fine tune the firewall settings in dmz-fw.ini
199#
200# This can also be set up as the device/LAN for an open WLAN.
201# As with the other interfaces, you can use device.VLAN-ID to automatically
202# set it as a VLAN.
203#
204# Please note that enabling this automatically opens up for DNS requests to
205# the floppyfw from DMZ.
206#
207
208USE_DMZ=n
209DMZ_DOMAIN=
210DMZ_DEV=eth2
211DMZ_IP=10.42.69.1
212DMZ_NETMASK=255.255.255.0
213DMZ_DHCP_SERVER=n
214DMZ_DHCP_RANGE_START=10.42.69.100
215DMZ_DHCP_RANGE_END=10.42.69.200
216
217#
218# This switch will turn on or off NAT to the outside network.
219#
220
221DMZ_USE_NAT=y
222
223# What traffic do you want to allow from DMZ to OUTSIDE?
224# Specifying "all" will allow all traffic, "none" will block all. TCP based
225# protocols can be specified in a comma separated list like this:
226# DMZ_ALLOW_TO_OUTSIDE="ssh,www,https,ftp,domain,pop3,pop3s,imap3,imaps"
227DMZ_ALLOW_TO_OUTSIDE="all"
228
229# What traffic do you want to allow from DMZ to INSIDE?
230# Specifying "all" will allow all traffic, "none" will block all. TCP based
231# protocols can be specified in a comma separated list like this:
232# DMZ_ALLOW_TO_INSIDE="ssh,ftp"
233DMZ_ALLOW_TO_INSIDE="none"
234
235# What traffic do you want to allow from INSIDE to DMZ?
236# Specifying "all" will allow all traffic, "none" will block all. TCP based
237# protocols can be specified in a comma separated list like this:
238# DMZ_ALLOW_FROM_INSIDE="ssh,ftp,http,https,smtp"
239DMZ_ALLOW_FROM_INSIDE="all"
240
241# This is to set a traffic shaping rule to restrict the bandwidth.
242# DMZ_RESTRICT_KBITS=64
243
244#-----------------------------------------------------------------------------
245
246# PPP settings:
247#
248# Change the following only if you are using PPP or PPPoE.
249#
250
251#
252# Phone number:
253TELEPHONE=
254
255# Serial Port COM1 is /dev/tts/0, COM2 is /dev/tts/1 etc.
256SERIAL_PORT=/dev/tts/1
257PORT_SPEED=57600
258PPP_CONNECT_TIMEOUT=60
259PPP_CONNECT_POLL=3
260
261# For exotic modems: The default values should work for most modems.
262MODEM_INIT="AT&F"
263
264# USEPEERDNS used to be here. it's now deprecated, or basically, it's
265# being turned on permanently.
266# *but*, you can override it using the OUTSIDE_NAMESERVERS option you will
267# find further up in this config file. The ip-up script will create an
268# /etc/resolv.conf file with the OUTSIDE_NAMESERVERS as the first available
269# name servers (if any are set) and then the LCP given addresses.
270
271# Change the DEMAND variable to either:
272# 'no' for "always on" connection
273# N where N is the number of idle seconds before we disconnect
274#DEMAND=600
275DEMAND=no
276
277# A debug option for debugging PPPoE, it will log to the specified file.
278# This must NOT be used during normal use, it'll fill up the ramdisk..
279# PPPOE_DEBUG=/tmp/pppoe.log
280
281#-----------------------------------------------------------------------------
282
283#
284# Defaults and switches:
285#
286
287HOSTNAME=floppyfw
288# Set this if you don't want your outside DHCP server decide.
289# DOMAIN=floppyfwsecured.local
290
291#
292# dnsmasq accepts DNS queries of inside machines and
293# either answers them from a small, local, cache
294# or forwards them to a real, recursive, DNS server.
295#
296# It loads the contents of /etc/hosts into the cache at startup so that
297# local hostnames which do not appear in the global DNS can be resolved.
298#
299DNSMASQ=n
300
301#
302# And for the logging the scripts use:
303# Default works for most purposes.
304#
305DEBUG_LOG="/dev/vc/3"
306
307#
308# Turning on syslogd and klogd.
309# This is a nice thing but will eat CPU which is why it is turned
310# off by default.
311# The firewall.ini file is where you can turn on logging of rejected packages.
312#
313USE_SYSLOG=n
314
315# Uncomment to log to /dev/vc/4 instead of /var/log/messages
316# which aren't exactly a good idea on a ramdisk.
317SYSLOG_TTY="-O $DEBUG_LOG"
318# Or the another virtual console than the other messages:
319# SYSLOG_TTY="-O /dev/vc/4"
320
321# Uncomment to log to network. host:port
322# SYSLOG_NET="-R 10.42.42.42:514"
323
324# Uncomment to not print a mark
325# SYSLOG_MARK="-m 0"
326
327[ "$SYSLOG_TTY" -a "$SYSLOG_NET" ] && SYSLOG_BOTH="-L"
328SYSLOG_FLAGS="$SYSLOG_MARK $SYSLOG_TTY $SYSLOG_NET $SYSLOG_BOTH"
329
330#
331# Time zone.
332# This is a string which will be put in /etc/TZ
333#
334TIMEZONE=
335
336#
337# At the bottom (almost) because this is a feature that should not be
338# widely used but it will be useful for some people, escpecially
339# people using some irc servers demanding a result.
340#
341# This is a fake ident daemon, you can set the userid it shall answer
342# and floppyfw will automagically start the fake identd with this user
343# as the response.
344#
345# This will have security implications since you are running a listening
346# daemon (server) on the outside network interface. do this ONLY
347# if you really need it.
348#
349#FAKEIDENT=
350
351#
352# Reserve this amount of RAM after all packages are unpacked.
353# This is the amount used to calculate the value of
354# /proc/sys/net/ipv4/ip_conntrack_max in firewall.ini(t)
355RESERVE_MB=1
356
357# If you want to use a second device (floppy disk, or whatever),
358# enter a device name like "/dev/fd1"
359# Otherwise enter "n"
360#SECOND_DEVICE="/dev/floppy/1"
361SECOND_DEVICE=n
362# And, you should be able to use a CD as the second device, so, we need to
363# set the file system. vfat for a floppy and iso9660 for a CD.
364SECOND_DEVICE_FS=vfat
Note: See TracBrowser for help on using the browser.