Browse code

- added new cfg. - small sun fixes

Andrei Pelinescu-Onciul authored on 21/09/2001 22:43:33
Showing 2 changed files
... ...
@@ -1,6 +1,13 @@
1 1
 # config file for centauri
2 2
 
3 3
 route{
4
+ src_ip~="testing" log("packet from fokus\n"); route(1);
5
+/* drop all others */
6
+
7
+}
8
+
9
+
10
+route[1]{
4 11
 	(src_ip==192.168.46.0/24 or src_ip~="^dorian") forward("fox.iptel.org");
5 12
 	src_ip=="centauri.fokus.gmd.de" log("Possible loop, dropping\n"); drop
6 13
 	src_ip==0.0.0.0/0 log("forwarding denied\n"); drop
7 14
new file mode 100644
... ...
@@ -0,0 +1,23 @@
1
+
2
+
3
+route{
4
+
5
+	(src_ip~='(dorian)|(ekina)|(terix)' & method~='^inv') \
6
+				forward(centauri.fokus.gmd.de);
7
+	src_ip~="^192\.168\.[0-9]{1,3}\.[0-9]{1,3}$"  \
8
+				log(1,"msg. from a private network\n"); route(1);
9
+	src_ip==0.0.0.0/0   log(1, " droping msg\n"); drop;
10
+}
11
+
12
+route[1]{
13
+	src_ip=192.168.46.61  log("possible loop, dropping\n"); drop;
14
+	src_ip==192.168.46.0/24 route(2);
15
+	src_ip=0.0.0.0/0 log(1, "we'll drop this one too\n"); drop
16
+}
17
+
18
+route[2]{
19
+	(method~='^ACK' and uri~='.*fokus') forward("fox.iptel.org");
20
+	method~='^INV' forward(193.175.135.179); /* dorian */
21
+	method~='.' log("spying...\n"); send(dorian,8000); \
22
+						forward("fox.iptel.org);
23
+}