blob: 5054f23375c4496270916a7bf7a603beea30f512 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
priority: 215
help: Firewall
delete: # set conntrack table size to standard 16384 entries if fw disabled
sudo sh -c "echo 16384 > /proc/sys/net/nf_conntrack_max"
# set conntrack expect table size to standard 2048 entries if fw disabled
sudo sh -c "echo 2048 > /proc/sys/net/netfilter/nf_conntrack_expect_max"
# set conntrack hash size to standard 4096
if ! grep -q "nf_conntrack hashsize=4096$" /etc/modprobe.d/vyatta_nf_conntrack
then
sudo sh -c "sed -i -e '/options nf_conntrack hashsize/d' \
/etc/modprobe.d/vyatta_nf_conntrack"
sudo sh -c "echo options nf_conntrack hashsize=4096 >> \
/etc/modprobe.d/vyatta_nf_conntrack"
echo "Conntrack hash size set to default 4096. This change will take affect when the system is rebooted."
fi
# need to restart conntrackd with updated conntrack table size
if [ -d $VYATTA_ACTIVE_CONFIGURATION_DIR/service/conntrack-sync ] ; then
sudo /opt/vyatta/sbin/vyatta-conntrack-sync.pl --action=enable
fi
|