File: README.Services

package info (click to toggle)
firehol 1.273-1
  • links: PTS
  • area: main
  • in suites: squeeze, wheezy
  • size: 948 kB
  • ctags: 314
  • sloc: sh: 5,132; makefile: 70
file content (33 lines) | stat: -rw-r--r-- 976 bytes parent folder | download | duplicates (4)
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
Adding additional services to firehol
=====================================

Since version 1.214 it is possible to define new
services with extra config files dropped into 
/etc/firehol/services. Every file with the ending
.conf gets parsed. 

Any config file should start with a specical header:

#FHVER: 1:213

1 is the API version and 213 the minimum version of FireHOL 
the service is expected to work with.
Inside the configfile you could use any service defintion
as described at: http://firehol.sourceforge.net/adding.html?
Here a small example for bittorrent:

-----------------------
#FHVER: 1:213
server_torrent_ports="tcp/6881:6999"
client_torrent_ports="default"
-----------------------

Thats all :). If dropped into /etc/firehol/services
you could use the torrent service as any builtin service in
you config.

You could find this file under the
examples dir in /usr/share/doc/firehol.

 -- Alexander Wirt <formorer@debian.org>  Thu, 23 Dec 2004 15:33:52 +0100