Paul Wouters fe8bf3
Paul Wouters fe8bf3
# See also: http://conntrack-tools.netfilter.org/support.html
Paul Wouters fe8bf3
# 
Paul Wouters fe8bf3
# There are 3 different modes of running conntrackd: "alarm", "notrack" and "ftfw"
Paul Wouters fe8bf3
#
Paul Wouters fe8bf3
# The default package ships with a FTFW configuration, see /usr/share/doc/conntrackd*
Paul Wouters fe8bf3
# for example configurations for other modes.
Paul Wouters fe8bf3
Paul Wouters fe8bf3
Paul Wouters fe8bf3
#
Paul Wouters fe8bf3
# Synchronizer settings
Paul Wouters fe8bf3
#
Paul Wouters fe8bf3
Sync {
Paul Wouters fe8bf3
	Mode FTFW {
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Size of the resend queue (in objects). This is the maximum
Paul Wouters fe8bf3
		# number of objects that can be stored waiting to be confirmed
Paul Wouters fe8bf3
		# via acknoledgment. If you keep this value low, the daemon
Paul Wouters fe8bf3
		# will have less chances to recover state-changes under message
Paul Wouters fe8bf3
		# omission. On the other hand, if you keep this value high,
Paul Wouters fe8bf3
		# the daemon will consume more memory to store dead objects.
Paul Wouters fe8bf3
		# Default is 131072 objects.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# ResendQueueSize 131072
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# This parameter allows you to set an initial fixed timeout
Paul Wouters fe8bf3
		# for the committed entries when this node goes from backup
Paul Wouters fe8bf3
		# to primary. This mechanism provides a way to purge entries
Paul Wouters fe8bf3
		# that were not recovered appropriately after the specified
Paul Wouters fe8bf3
		# fixed timeout. If you set a low value, TCP entries in
Paul Wouters fe8bf3
		# Established states with no traffic may hang. For example,
Paul Wouters fe8bf3
		# an SSH connection without KeepAlive enabled. If not set,
Paul Wouters fe8bf3
		# the daemon uses an approximate timeout value calculation
Paul Wouters fe8bf3
		# mechanism. By default, this option is not set.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# CommitTimeout 180
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# If the firewall replica goes from primary to backup,
Paul Wouters fe8bf3
		# the conntrackd -t command is invoked in the script. 
Paul Wouters fe8bf3
		# This command schedules a flush of the table in N seconds.
Paul Wouters fe8bf3
		# This is useful to purge the connection tracking table of
Paul Wouters fe8bf3
		# zombie entries and avoid clashes with old entries if you
Paul Wouters fe8bf3
		# trigger several consecutive hand-overs. Default is 60 seconds.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# PurgeTimeout 60
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		# Set the acknowledgement window size. If you decrease this
Paul Wouters fe8bf3
		# value, the number of acknowlegdments increases. More
Paul Wouters fe8bf3
		# acknowledgments means more overhead as conntrackd has to
Paul Wouters fe8bf3
		# handle more control messages. On the other hand, if you
Paul Wouters fe8bf3
		# increase this value, the resend queue gets more populated.
Paul Wouters fe8bf3
		# This results in more overhead in the queue releasing.
Paul Wouters fe8bf3
		# The following value is based on some practical experiments
Paul Wouters fe8bf3
		# measuring the cycles spent by the acknowledgment handling
Paul Wouters fe8bf3
		# with oprofile. If not set, default window size is 300.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# ACKWindowSize 300
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# This clause allows you to disable the external cache. Thus,
Paul Wouters fe8bf3
		# the state entries are directly injected into the kernel
Paul Wouters fe8bf3
		# conntrack table. As a result, you save memory in user-space
Paul Wouters fe8bf3
		# but you consume slots in the kernel conntrack table for
Paul Wouters fe8bf3
		# backup state entries. Moreover, disabling the external cache
Paul Wouters fe8bf3
		# means more CPU consumption. You need a Linux kernel
Paul Wouters fe8bf3
		# >= 2.6.29 to use this feature. By default, this clause is
Paul Wouters fe8bf3
		# set off. If you are installing conntrackd for first time,
Paul Wouters fe8bf3
		# please read the user manual and I encourage you to consider
Paul Wouters fe8bf3
		# using the fail-over scripts instead of enabling this option!
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# DisableExternalCache Off
Paul Wouters fe8bf3
	}
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Multicast IP and interface where messages are
Paul Wouters fe8bf3
	# broadcasted (dedicated link). IMPORTANT: Make sure
Paul Wouters fe8bf3
	# that iptables accepts traffic for destination
Paul Wouters fe8bf3
	# 225.0.0.50, eg:
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	#	iptables -I INPUT -d 225.0.0.50 -j ACCEPT
Paul Wouters fe8bf3
	#	iptables -I OUTPUT -d 225.0.0.50 -j ACCEPT
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	Multicast {
Paul Wouters fe8bf3
		# 
Paul Wouters fe8bf3
		# Multicast address: The address that you use as destination
Paul Wouters fe8bf3
		# in the synchronization messages. You do not have to add
Paul Wouters fe8bf3
		# this IP to any of your existing interfaces. If any doubt,
Paul Wouters fe8bf3
		# do not modify this value.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		IPv4_address 225.0.0.50
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# The multicast group that identifies the cluster. If any
Paul Wouters fe8bf3
		# doubt, do not modify this value.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		Group 3780
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# IP address of the interface that you are going to use to
Paul Wouters fe8bf3
		# send the synchronization messages. Remember that you must
Paul Wouters fe8bf3
		# use a dedicated link for the synchronization messages.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		IPv4_interface 192.168.100.100
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# The name of the interface that you are going to use to
Paul Wouters fe8bf3
		# send the synchronization messages.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		Interface eth2
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		# The multicast sender uses a buffer to enqueue the packets
Paul Wouters fe8bf3
		# that are going to be transmitted. The default size of this
Paul Wouters fe8bf3
		# socket buffer is available at /proc/sys/net/core/wmem_default.
Paul Wouters fe8bf3
		# This value determines the chances to have an overrun in the
Paul Wouters fe8bf3
		# sender queue. The overrun results packet loss, thus, losing
Paul Wouters fe8bf3
		# state information that would have to be retransmitted. If you
Paul Wouters fe8bf3
		# notice some packet loss, you may want to increase the size
Paul Wouters fe8bf3
		# of the sender buffer. The default size is usually around
Paul Wouters fe8bf3
		# ~100 KBytes which is fairly small for busy firewalls.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		SndSocketBuffer 1249280
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		# The multicast receiver uses a buffer to enqueue the packets
Paul Wouters fe8bf3
		# that the socket is pending to handle. The default size of this
Paul Wouters fe8bf3
		# socket buffer is available at /proc/sys/net/core/rmem_default.
Paul Wouters fe8bf3
		# This value determines the chances to have an overrun in the
Paul Wouters fe8bf3
		# receiver queue. The overrun results packet loss, thus, losing
Paul Wouters fe8bf3
		# state information that would have to be retransmitted. If you
Paul Wouters fe8bf3
		# notice some packet loss, you may want to increase the size of
Paul Wouters fe8bf3
		# the receiver buffer. The default size is usually around
Paul Wouters fe8bf3
		# ~100 KBytes which is fairly small for busy firewalls.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		RcvSocketBuffer 1249280
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		# 
Paul Wouters fe8bf3
		# Enable/Disable message checksumming. This is a good
Paul Wouters fe8bf3
		# property to achieve fault-tolerance. In case of doubt, do
Paul Wouters fe8bf3
		# not modify this value.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		Checksum on
Paul Wouters fe8bf3
	}
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# You can specify more than one dedicated link. Thus, if one dedicated
Paul Wouters fe8bf3
	# link fails, conntrackd can fail-over to another. Note that adding
Paul Wouters fe8bf3
	# more than one dedicated link does not mean that state-updates will
Paul Wouters fe8bf3
	# be sent to all of them. There is only one active dedicated link at
Paul Wouters fe8bf3
	# a given moment. The `Default' keyword indicates that this interface
Paul Wouters fe8bf3
	# will be selected as the initial dedicated link. You can have 
Paul Wouters fe8bf3
	# up to 4 redundant dedicated links. Note: Use different multicast 
Paul Wouters fe8bf3
	# groups for every redundant link.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Multicast Default {
Paul Wouters fe8bf3
	#	IPv4_address 225.0.0.51
Paul Wouters fe8bf3
	#	Group 3781
Paul Wouters fe8bf3
	#	IPv4_interface 192.168.100.101
Paul Wouters fe8bf3
	#	Interface eth3
Paul Wouters fe8bf3
	#	# SndSocketBuffer 1249280
Paul Wouters fe8bf3
	#	# RcvSocketBuffer 1249280
Paul Wouters fe8bf3
	#	Checksum on
Paul Wouters fe8bf3
	# }
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# You can use Unicast UDP instead of Multicast to propagate events.
Paul Wouters fe8bf3
	# Note that you cannot use unicast UDP and Multicast at the same
Paul Wouters fe8bf3
	# time, you can only select one.
Paul Wouters fe8bf3
	# 
Paul Wouters fe8bf3
	# UDP {
Paul Wouters fe8bf3
		# 
Paul Wouters fe8bf3
		# UDP address that this firewall uses to listen to events.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# IPv4_address 192.168.2.100
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# or you may want to use an IPv6 address:
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# IPv6_address fe80::215:58ff:fe28:5a27
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Destination UDP address that receives events, ie. the other
Paul Wouters fe8bf3
		# firewall's dedicated link address.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# IPv4_Destination_Address 192.168.2.101
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# or you may want to use an IPv6 address:
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# IPv6_Destination_Address fe80::2d0:59ff:fe2a:775c
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# UDP port used
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Port 3780
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# The name of the interface that you are going to use to
Paul Wouters fe8bf3
		# send the synchronization messages.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Interface eth2
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		# 
Paul Wouters fe8bf3
		# The sender socket buffer size
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# SndSocketBuffer 1249280
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# The receiver socket buffer size
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# RcvSocketBuffer 1249280
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		# 
Paul Wouters fe8bf3
		# Enable/Disable message checksumming. 
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Checksum on
Paul Wouters fe8bf3
	# }
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	# 
Paul Wouters fe8bf3
	# Other unsorted options that are related to the synchronization.
Paul Wouters fe8bf3
	# 
Paul Wouters fe8bf3
	# Options {
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# TCP state-entries have window tracking disabled by default,
Paul Wouters fe8bf3
		# you can enable it with this option. As said, default is off.
Paul Wouters fe8bf3
		# This feature requires a Linux kernel >= 2.6.36.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# TCPWindowTracking Off
Paul Wouters fe8bf3
	# }
Paul Wouters fe8bf3
}
Paul Wouters fe8bf3
Paul Wouters fe8bf3
#
Paul Wouters fe8bf3
# General settings
Paul Wouters fe8bf3
#
Paul Wouters fe8bf3
General {
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Set the nice value of the daemon, this value goes from -20
Paul Wouters fe8bf3
	# (most favorable scheduling) to 19 (least favorable). Using a
Paul Wouters fe8bf3
	# very low value reduces the chances to lose state-change events.
Paul Wouters fe8bf3
	# Default is 0 but this example file sets it to most favourable
Paul Wouters fe8bf3
	# scheduling as this is generally a good idea. See man nice(1) for
Paul Wouters fe8bf3
	# more information.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	Nice -20
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Select a different scheduler for the daemon, you can select between
Paul Wouters fe8bf3
	# RR and FIFO and the process priority (minimum is 0, maximum is 99).
Paul Wouters fe8bf3
	# See man sched_setscheduler(2) for more information. Using a RT
Paul Wouters fe8bf3
	# scheduler reduces the chances to overrun the Netlink buffer.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Scheduler {
Paul Wouters fe8bf3
	#	Type FIFO
Paul Wouters fe8bf3
	#	Priority 99
Paul Wouters fe8bf3
	# }
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Number of buckets in the cache hashtable. The bigger it is,
Paul Wouters fe8bf3
	# the closer it gets to O(1) at the cost of consuming more memory.
Paul Wouters fe8bf3
	# Read some documents about tuning hashtables for further reference.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	HashSize 32768
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Maximum number of conntracks, it should be double of: 
Paul Wouters fe8bf3
	# $ cat /proc/sys/net/netfilter/nf_conntrack_max
Paul Wouters fe8bf3
	# since the daemon may keep some dead entries cached for possible
Paul Wouters fe8bf3
	# retransmission during state synchronization.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	HashLimit 131072
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Logfile: on (/var/log/conntrackd.log), off, or a filename
Paul Wouters fe8bf3
	# Default: off
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	LogFile on
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Syslog: on, off or a facility name (daemon (default) or local0..7)
Paul Wouters fe8bf3
	# Default: off
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	#Syslog on
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Lockfile
Paul Wouters fe8bf3
	# 
Paul Wouters fe8bf3
	LockFile /var/lock/conntrack.lock
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Unix socket configuration
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	UNIX {
Paul Wouters fe8bf3
		Path /var/run/conntrackd.ctl
Paul Wouters fe8bf3
		Backlog 20
Paul Wouters fe8bf3
	}
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Netlink event socket buffer size. If you do not specify this clause,
Paul Wouters fe8bf3
	# the default buffer size value in /proc/net/core/rmem_default is
Paul Wouters fe8bf3
	# used. This default value is usually around 100 Kbytes which is
Paul Wouters fe8bf3
	# fairly small for busy firewalls. This leads to event message dropping
Paul Wouters fe8bf3
	# and high CPU consumption. This example configuration file sets the
Paul Wouters fe8bf3
	# size to 2 MBytes to avoid this sort of problems.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	NetlinkBufferSize 2097152
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# The daemon doubles the size of the netlink event socket buffer size
Paul Wouters fe8bf3
	# if it detects netlink event message dropping. This clause sets the
Paul Wouters fe8bf3
	# maximum buffer size growth that can be reached. This example file
Paul Wouters fe8bf3
	# sets the size to 8 MBytes.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	NetlinkBufferSizeMaxGrowth 8388608
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# If the daemon detects that Netlink is dropping state-change events,
Paul Wouters fe8bf3
	# it automatically schedules a resynchronization against the Kernel
Paul Wouters fe8bf3
	# after 30 seconds (default value). Resynchronizations are expensive
Paul Wouters fe8bf3
	# in terms of CPU consumption since the daemon has to get the full
Paul Wouters fe8bf3
	# kernel state-table and purge state-entries that do not exist anymore.
Paul Wouters fe8bf3
	# Be careful of setting a very small value here. You have the following
Paul Wouters fe8bf3
	# choices: On (enabled, use default 30 seconds value), Off (disabled)
Paul Wouters fe8bf3
	# or Value (in seconds, to set a specific amount of time). If not
Paul Wouters fe8bf3
	# specified, the daemon assumes that this option is enabled.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# NetlinkOverrunResync On
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# If you want reliable event reporting over Netlink, set on this
Paul Wouters fe8bf3
	# option. If you set on this clause, it is a good idea to set off
Paul Wouters fe8bf3
	# NetlinkOverrunResync. This option is off by default and you need
Paul Wouters fe8bf3
	# a Linux kernel >= 2.6.31.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# NetlinkEventsReliable Off
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	# 
Paul Wouters fe8bf3
	# By default, the daemon receives state updates following an
Paul Wouters fe8bf3
	# event-driven model. You can modify this behaviour by switching to
Paul Wouters fe8bf3
	# polling mode with the PollSecs clause. This clause tells conntrackd
Paul Wouters fe8bf3
	# to dump the states in the kernel every N seconds. With regards to
Paul Wouters fe8bf3
	# synchronization mode, the polling mode can only guarantee that
Paul Wouters fe8bf3
	# long-lifetime states are recovered. The main advantage of this method
Paul Wouters fe8bf3
	# is the reduction in the state replication at the cost of reducing the
Paul Wouters fe8bf3
	# chances of recovering connections.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# PollSecs 15
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# The daemon prioritizes the handling of state-change events coming
Paul Wouters fe8bf3
	# from the core. With this clause, you can set the maximum number of
Paul Wouters fe8bf3
	# state-change events (those coming from kernel-space) that the daemon
Paul Wouters fe8bf3
	# will handle after which it will handle other events coming from the
Paul Wouters fe8bf3
	# network or userspace. A low value improves interactivity (in terms of
Paul Wouters fe8bf3
	# real-time behaviour) at the cost of extra CPU consumption.
Paul Wouters fe8bf3
	# Default (if not set) is 100.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# EventIterationLimit 100
Paul Wouters fe8bf3
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	# Event filtering: This clause allows you to filter certain traffic,
Paul Wouters fe8bf3
	# There are currently three filter-sets: Protocol, Address and
Paul Wouters fe8bf3
	# State. The filter is attached to an action that can be: Accept or
Paul Wouters fe8bf3
	# Ignore. Thus, you can define the event filtering policy of the
Paul Wouters fe8bf3
	# filter-sets in positive or negative logic depending on your needs.
Paul Wouters fe8bf3
	# You can select if conntrackd filters the event messages from 
Paul Wouters fe8bf3
	# user-space or kernel-space. The kernel-space event filtering
Paul Wouters fe8bf3
	# saves some CPU cycles by avoiding the copy of the event message
Paul Wouters fe8bf3
	# from kernel-space to user-space. The kernel-space event filtering
Paul Wouters fe8bf3
	# is prefered, however, you require a Linux kernel >= 2.6.29 to
Paul Wouters fe8bf3
	# filter from kernel-space. If you want to select kernel-space 
Paul Wouters fe8bf3
	# event filtering, use the keyword 'Kernelspace' instead of 
Paul Wouters fe8bf3
	# 'Userspace'.
Paul Wouters fe8bf3
	#
Paul Wouters fe8bf3
	Filter From Userspace {
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Accept only certain protocols: You may want to replicate
Paul Wouters fe8bf3
		# the state of flows depending on their layer 4 protocol.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		Protocol Accept {
Paul Wouters fe8bf3
			TCP
Paul Wouters fe8bf3
			SCTP
Paul Wouters fe8bf3
			DCCP
Paul Wouters fe8bf3
			# UDP
Paul Wouters fe8bf3
			# ICMP # This requires a Linux kernel >= 2.6.31
Paul Wouters fe8bf3
			# IPv6-ICMP # This requires a Linux kernel >= 2.6.31
Paul Wouters fe8bf3
		}
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Ignore traffic for a certain set of IP's: Usually all the
Paul Wouters fe8bf3
		# IP assigned to the firewall since local traffic must be
Paul Wouters fe8bf3
		# ignored, only forwarded connections are worth to replicate.
Paul Wouters fe8bf3
		# Note that these values depends on the local IPs that are
Paul Wouters fe8bf3
		# assigned to the firewall.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		Address Ignore {
Paul Wouters fe8bf3
			IPv4_address 127.0.0.1 # loopback
Paul Wouters fe8bf3
			IPv4_address 192.168.0.100 # virtual IP 1
Paul Wouters fe8bf3
			IPv4_address 192.168.1.100 # virtual IP 2
Paul Wouters fe8bf3
			IPv4_address 192.168.0.1
Paul Wouters fe8bf3
			IPv4_address 192.168.1.1
Paul Wouters fe8bf3
			IPv4_address 192.168.100.100 # dedicated link ip
Paul Wouters fe8bf3
			#
Paul Wouters fe8bf3
			# You can also specify networks in format IP/cidr.
Paul Wouters fe8bf3
			# IPv4_address 192.168.0.0/24
Paul Wouters fe8bf3
			#
Paul Wouters fe8bf3
			# You can also specify an IPv6 address
Paul Wouters fe8bf3
			# IPv6_address ::1
Paul Wouters fe8bf3
		}
Paul Wouters fe8bf3
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# Uncomment this line below if you want to filter by flow state.
Paul Wouters fe8bf3
		# This option introduces a trade-off in the replication: it
Paul Wouters fe8bf3
		# reduces CPU consumption at the cost of having lazy backup 
Paul Wouters fe8bf3
		# firewall replicas. The existing TCP states are: SYN_SENT,
Paul Wouters fe8bf3
		# SYN_RECV, ESTABLISHED, FIN_WAIT, CLOSE_WAIT, LAST_ACK,
Paul Wouters fe8bf3
		# TIME_WAIT, CLOSED, LISTEN.
Paul Wouters fe8bf3
		#
Paul Wouters fe8bf3
		# State Accept {
Paul Wouters fe8bf3
		#	ESTABLISHED CLOSED TIME_WAIT CLOSE_WAIT for TCP
Paul Wouters fe8bf3
		# }
Paul Wouters fe8bf3
	}
Paul Wouters fe8bf3
}