~ubuntu-branches/ubuntu/karmic/conntrack/karmic

« back to all changes in this revision

Viewing changes to doc/sync/notrack/node2/conntrackd.conf

  • Committer: Bazaar Package Importer
  • Author(s): Andres Rodriguez
  • Date: 2009-06-18 18:27:31 UTC
  • mfrom: (3.1.2 squeeze)
  • Revision ID: james.westby@ubuntu.com-20090618182731-xlunt56xusrrif92
Tags: 1:0.9.12-1ubuntu1
* Merge from debian unstable (LP: #380358), remaining changes:
  - Error on fwrite failure in src/read_config_lex.c.
  - Patch from Kees Cook to not ignore return value of chdir call.
* debian/copyright: Updated download site.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
#
2
 
# Synchronizer settings
3
 
#
4
 
Sync {
5
 
        Mode NOTRACK {
6
 
                # Entries committed to the connection tracking table 
7
 
                # starts with a limited timeout of N seconds until the
8
 
                # takeover process is completed.
9
 
                #
10
 
                CommitTimeout 180
11
 
        }
12
 
 
13
 
        #
14
 
        # Multicast IP and interface where messages are
15
 
        # broadcasted (dedicated link). IMPORTANT: Make sure
16
 
        # that iptables accepts traffic for destination
17
 
        # 225.0.0.50, eg:
18
 
        #
19
 
        #       iptables -I INPUT -d 225.0.0.50 -j ACCEPT
20
 
        #       iptables -I OUTPUT -d 225.0.0.50 -j ACCEPT
21
 
        #
22
 
        Multicast {
23
 
                IPv4_address 225.0.0.50
24
 
                IPv4_interface 192.168.100.200 # IP of dedicated link
25
 
                Interface eth2
26
 
                Group 3780
27
 
 
28
 
                # The multicast sender uses a buffer to enqueue the packets
29
 
                # that are going to be transmitted. The default size of this
30
 
                # socket buffer is available at /proc/sys/net/core/wmem_default.
31
 
                # This value determines the chances to have an overrun in the
32
 
                # sender queue. The overrun results packet loss, thus, losing
33
 
                # state information that would have to be retransmitted. If you
34
 
                # notice some packet loss, you may want to increase the size
35
 
                # of the sender buffer. Note: This protocol is best effort,
36
 
                # really recommended to increase the buffer size.
37
 
 
38
 
                McastSndSocketBuffer 1249280
39
 
 
40
 
                # The multicast receiver uses a buffer to enqueue the packets
41
 
                # that the socket is pending to handle. The default size of this
42
 
                # socket buffer is available at /proc/sys/net/core/rmem_default.
43
 
                # This value determines the chances to have an overrun in the
44
 
                # receiver queue. The overrun results packet loss, thus, losing
45
 
                # state information that would have to be retransmitted. If you
46
 
                # notice some packet loss, you may want to increase the size of
47
 
                # the receiver buffer. Note: This protocol is best effort,
48
 
                # really recommended to increase the buffer size.
49
 
 
50
 
                McastRcvSocketBuffer 1249280
51
 
        }
52
 
 
53
 
        # Enable/Disable message checksumming
54
 
        Checksum on
55
 
 
56
 
        # Uncomment this if you want to replicate just certain TCP states.
57
 
        # This option introduces a tradeoff in the replication: it reduces
58
 
        # CPU consumption and lost messages rate at the cost of having 
59
 
        # backup replicas that don't contain the current state that the active 
60
 
        # replica holds. TCP states are: SYN_SENT, SYN_RECV, ESTABLISHED,
61
 
        # FIN_WAIT, CLOSE_WAIT, LAST_ACK, TIME_WAIT, CLOSE, LISTEN.
62
 
        # 
63
 
        # Replicate ESTABLISHED TIME_WAIT for TCP
64
 
 
65
 
        # If you have a multiprimary setup (active-active) without connection
66
 
        # persistency, ie. you can't know which firewall handles a packet
67
 
        # that is part of a connection, then you need direct commit of
68
 
        # conntrack entries to the kernel conntrack table. OSPF setups must
69
 
        # set on this option. Default is Off.
70
 
        #
71
 
        # CacheWriteThrough On
72
 
}
73
 
 
74
 
#
75
 
# General settings
76
 
#
77
 
General {
78
 
        #
79
 
        # Number of buckets in the caches: hash table
80
 
        #
81
 
        HashSize 8192
82
 
 
83
 
        #
84
 
        # Maximum number of conntracks: 
85
 
        # it must be >= $ cat /proc/sys/net/ipv4/netfilter/ip_conntrack_max
86
 
        #
87
 
        HashLimit 65535
88
 
 
89
 
        #
90
 
        # Logfile: on, off, or a filename
91
 
        # Default: on (/var/log/conntrackd.log)
92
 
        #
93
 
        #LogFile off
94
 
 
95
 
        #
96
 
        # Syslog: on, off or a facility name (daemon (default) or local0..7)
97
 
        # Default: off
98
 
        #
99
 
        #Syslog on
100
 
 
101
 
        #
102
 
        # Lockfile
103
 
        # 
104
 
        LockFile /var/lock/conntrack.lock
105
 
 
106
 
        #
107
 
        # Unix socket configuration
108
 
        #
109
 
        UNIX {
110
 
                Path /tmp/sync.sock
111
 
                Backlog 20
112
 
        }
113
 
 
114
 
        #
115
 
        # Netlink socket buffer size
116
 
        #
117
 
        SocketBufferSize 262142
118
 
 
119
 
        #
120
 
        # Increase the socket buffer up to maximum if required
121
 
        #
122
 
        SocketBufferSizeMaxGrown 655355
123
 
}
124
 
 
125
 
#
126
 
# Ignore traffic for a certain set of IP's: Usually
127
 
# all the IP assigned to the firewall since local
128
 
# traffic must be ignored, just forwarded connections
129
 
# are worth to replicate
130
 
#
131
 
IgnoreTrafficFor {
132
 
        IPv4_address 127.0.0.1 # loopback
133
 
        IPv4_address 192.168.0.2
134
 
        IPv4_address 192.168.1.2
135
 
        IPv4_address 192.168.100.200 # dedicated link ip
136
 
        IPv4_address 192.168.0.200 # virtual IP 1
137
 
        IPv4_address 192.168.1.200 # virtual IP 2
138
 
}
139
 
 
140
 
#
141
 
# Do not replicate certain protocol traffic 
142
 
#
143
 
IgnoreProtocol {
144
 
        UDP
145
 
        ICMP
146
 
        IGMP
147
 
        VRRP
148
 
        # numeric numbers also valid
149
 
}