File: ramond.conf.example

package info (click to toggle)
ramond 0.5-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch, wheezy
  • size: 248 kB
  • ctags: 174
  • sloc: ansic: 1,418; sh: 82; makefile: 26; perl: 10
file content (65 lines) | stat: -rw-r--r-- 2,133 bytes parent folder | download | duplicates (2)
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
<?xml version="1.0" encoding="ISO-8859-15"?>
<!DOCTYPE ramond SYSTEM "ramond.conf.dtd">
<ramond>

	<!-- 
		Rules are processed in order, when a router-advertisment
		matches a rule, the actions are applied, and the
		router-advertisment is discarded.

		Rules should be sorted in priority order.

		By default rules match all interfaces.
		To match on more than one interface, you must specify the 
		rule more than once. Any interface specified in a match
		rule must be up when the program is started.

		If you want to detect routers being `cleared' use `lifetime="0"'
		It only makes sense to set `0'. Behaviour is undefined
		for any value that isn't zero! 

		'<execute/>' actions are executed directly, you must use
		absolute paths. The programs environment is inherited.
		The following values are also available:
			o $PREFIX	- the _advertised_ prefix or null
			o $PREFIX_LEN	- length of the _advertised_ prefix or null
			o $SOURCE_ADDR	- source v6 address from the packet
			o $SOURCE_MAC	- source mac address from the nd option
			o $INTERFACE	- interface the packet was received on
		
		You are expected to implement some form of exponential back-off in
		the scripts you '<execute/>'
	-->

  <!-- All Routers Mac List -->
  <mac-list name="ecs-routers">
   <entry>00:11:22:33:44:e2</entry>
   <entry>00:11:22:33:44:e3</entry>
  </mac-list>

  <!-- ECS PREFIX -->
  <rule mac="ecs-routers" lifetime="0">
   <execute>/home/james/ramond/demo.pl native-router-killed</execute>
  </rule>
  <rule mac="ecs-routers" prefix="2001:630:d0:f000::/52">
   <!-- do nothing -->
  </rule>

  <!-- 6to4 PREFIX -->
  <!-- netsh in 6to4 set state disable -->
  <rule prefix="2002::/16" interface="eth5">
   <execute>/home/james/ramond/demo.pl 6to4-advertised</execute>
   <clear/>
  </rule>

  <!-- UNKNOWN PREFIX -->
  <!-- this matches every advertised _prefix_-->
  <rule prefix="::/0">
   <execute>/home/james/ramond/demo.pl unknown-prefix</execute>
  </rule>
  <!-- this matches everything, including ras without advertised prefixes-->
  <rule>
   <execute>/home/james/ramond/demo.pl unknown-prefix</execute>
  </rule>

</ramond>