/* * This is an exmaple configuration file for the DOCSIS configuration file * encoder. It is not exhaustive. Currently it supports only Integer, * IP address and String for SNMP settings. Adding more types is quite * trivial. */ Main { /* this is a comment */ DownstreamFrequency 123000000; UpstreamChannelId 1; /* this is a comment */ NetworkAccess 1; ClassOfService { ClassID 1; MaxRateDown 512000; MaxRateUp 64000; PriorityUp 3 ; GuaranteedUp 32000; MaxBurstUp 54314; PrivacyEnable 1; } BaselinePrivacy { /* ONLY if PrivacyEnable == 1 ! */ AuthTimeout 10; ReAuthTimeout 10; AuthGraceTime 600; OperTimeout 10; ReKeyTimeout 10; TEKGraceTime 600; AuthRejectTimeout 9; } SnmpMibObject sysName.0 String "gamadelta"; /* Set sysName */ SnmpMibObject sysContact.0 String "evvolve@users.sourceforge.net" ;/* sysContact */ SnmpMibObject .1.3.6.1.2.1.69.1.6.3.0 Integer 1; /* Default discard */ SnmpMibObject docsDevFilterIpStatus.1 Integer 6;/* IpStatus/1 destroy */ SnmpMibObject docsDevFilterIpControl.1 Integer 2;/* IpControl/1 accept */ SnmpMibObject docsDevFilterIpIfIndex.1 Integer 0;/* IpIfIndex/1 both */ SnmpMibObject docsDevFilterIpDirection.1 Integer 3;/* IpDirection/1 both */ SnmpMibObject docsDevFilterIpBroadcast.1 Integer 2;/* IpBroadcast/1 false */ SnmpMibObject docsDevFilterIpSaddr.1 IPAddress 0.0.0.0; /* SAddr */ SnmpMibObject docsDevFilterIpSmask.1 IPAddress 0.0.0.0;/*Smask*/ SnmpMibObject docsDevFilterIpDaddr.1 IPAddress 0.0.0.0; /*DAddr*/ SnmpMibObject docsDevFilterIpDmask.1 IPAddress 0.0.0.0; /*DMask*/ SnmpMibObject docsDevFilterIpProtocol.1 Integer 1; /* Proto ICMP */ SnmpMibObject docsDevFilterIpStatus.1 Integer 4;/* IpStatus/1 cAndGo */ /* Row 2 */ SnmpMibObject docsDevFilterIpStatus.2 Integer 6;/* IpStatus/2 destroy */ SnmpMibObject docsDevFilterIpControl.2 Integer 2;/* IpControl/2 accept */ SnmpMibObject docsDevFilterIpIfIndex.2 Integer 0;/* IpIfIndex/2 both */ SnmpMibObject docsDevFilterIpDirection.2 Integer 3;/* IpDirection/2 both */ SnmpMibObject docsDevFilterIpBroadcast.2 Integer 2;/* IpBroadcast/2 false */ SnmpMibObject docsDevFilterIpSaddr.2 IPAddress 0.0.0.0; /* SAddr */ SnmpMibObject docsDevFilterIpSmask.2 IPAddress 0.0.0.0;/*Smask*/ SnmpMibObject docsDevFilterIpDaddr.2 IPAddress 10.1.1.1; /*DAddr*/ SnmpMibObject docsDevFilterIpDmask.2 IPAddress 255.255.255.255; /*DMask*/ SnmpMibObject docsDevFilterIpProtocol.2 Integer 6; /* Proto TCP */ SnmpMibObject docsDevFilterIpStatus.2 Integer 4;/* IpStatus/2 cAndGo */ /* Row 3 */ SnmpMibObject docsDevFilterIpStatus.3 Integer 6;/* IpStatus/3 destroy */ SnmpMibObject docsDevFilterIpControl.3 Integer 2;/* IpControl/3 accept */ SnmpMibObject docsDevFilterIpIfIndex.3 Integer 0;/* IpIfIndex/3 both */ SnmpMibObject docsDevFilterIpDirection.3 Integer 3;/* IpDirection/3 both */ SnmpMibObject docsDevFilterIpBroadcast.3 Integer 2;/* IpBroadcast/3 false */ SnmpMibObject docsDevFilterIpSaddr.3 IPAddress 10.1.1.1; /* SAddr */ SnmpMibObject docsDevFilterIpSmask.3 IPAddress 255.255.255.255;/*Smask*/ SnmpMibObject docsDevFilterIpDaddr.3 IPAddress 0.0.0.0; /*DAddr*/ SnmpMibObject docsDevFilterIpDmask.3 IPAddress 0.0.0.0; /*DMask*/ SnmpMibObject docsDevFilterIpProtocol.3 Integer 6; /* Proto TCP */ SnmpMibObject docsDevFilterIpStatus.3 Integer 4;/* IpStatus/3 cAndGo */ /* Row 4 */ SnmpMibObject docsDevFilterIpStatus.4 Integer 6;/* IpStatus/4 destroy */ SnmpMibObject docsDevFilterIpControl.4 Integer 2;/* IpControl/4 accept */ SnmpMibObject docsDevFilterIpIfIndex.4 Integer 0;/* IpIfIndex/4 both */ SnmpMibObject docsDevFilterIpDirection.4 Integer 3;/* IpDirection/4 both */ SnmpMibObject docsDevFilterIpBroadcast.4 Integer 1;/* IpBroadcast/4 true */ SnmpMibObject docsDevFilterIpSaddr.4 IPAddress 0.0.0.0; /* SAddr */ SnmpMibObject docsDevFilterIpSmask.4 IPAddress 0.0.0.0; /* Smask*/ SnmpMibObject docsDevFilterIpDaddr.4 IPAddress 0.0.0.0; /* DAddr*/ SnmpMibObject docsDevFilterIpDmask.4 IPAddress 0.0.0.0; /* DMask*/ SnmpMibObject docsDevFilterIpProtocol.4 Integer 17; /* Proto UDP */ SnmpMibObject docsDevFilterIpStatus.4 Integer 4;/* IpStatus/4 cAndGo */ /* Row 5 */ SnmpMibObject docsDevFilterIpStatus.5 Integer 6;/* IpStatus/5 destroy */ SnmpMibObject docsDevFilterIpControl.5 Integer 2;/* IpControl/5 accept */ SnmpMibObject docsDevFilterIpIfIndex.5 Integer 0;/* IpIfIndex/5 both */ SnmpMibObject docsDevFilterIpDirection.5 Integer 3;/* IpDirection/5 both */ SnmpMibObject docsDevFilterIpBroadcast.5 Integer 2;/* IpBroadcast/5 true */ SnmpMibObject docsDevFilterIpSaddr.5 IPAddress 0.0.0.0; /* SAddr */ SnmpMibObject docsDevFilterIpSmask.5 IPAddress 0.0.0.0; /* Smask*/ SnmpMibObject docsDevFilterIpDaddr.5 IPAddress 0.0.0.0; /* DAddr*/ SnmpMibObject docsDevFilterIpDmask.5 IPAddress 0.0.0.0; /* DMask*/ SnmpMibObject docsDevFilterIpProtocol.5 Integer 17; /* Proto UDP */ SnmpMibObject docsDevFilterIpStatus.5 Integer 4;/* IpStatus/5 cAndGo */ /* Row 6 */ SnmpMibObject docsDevFilterIpStatus.6 Integer 6;/* IpStatus/6 destroy */ SnmpMibObject docsDevFilterIpControl.6 Integer 2;/* IpControl/6 accept */ SnmpMibObject docsDevFilterIpIfIndex.6 Integer 0;/* IpIfIndex/6 both */ SnmpMibObject docsDevFilterIpDirection.6 Integer 3;/* IpDirection/6 both */ SnmpMibObject docsDevFilterIpBroadcast.6 Integer 2;/* IpBroadcast/6 true */ SnmpMibObject docsDevFilterIpSaddr.6 IPAddress 0.0.0.0; /* SAddr */ SnmpMibObject docsDevFilterIpSmask.6 IPAddress 0.0.0.0; /* Smask*/ SnmpMibObject docsDevFilterIpDaddr.6 IPAddress 0.0.0.0; /* DAddr*/ SnmpMibObject docsDevFilterIpDmask.6 IPAddress 0.0.0.0; /* DMask*/ SnmpMibObject docsDevFilterIpProtocol.6 Integer 6; /* Proto TCP */ SnmpMibObject docsDevFilterIpSourcePortLow.6 Integer 53; /* SrcPortLow */ SnmpMibObject docsDevFilterIpSourcePortHigh.6 Integer 53; /* SrcPortHigh */ SnmpMibObject docsDevFilterIpDestPortLow.6 Integer 53; /* DstPortLow */ SnmpMibObject docsDevFilterIpDestPortHigh.6 Integer 53; /* DstPortHigh */ SnmpMibObject docsDevFilterIpStatus.6 Integer 4;/* IpStatus/6 cAndGo */ MaxCPE 3; }