Skip to content

Commit

Permalink
nat-gw1: use link-local address for conntrackd communication
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentbernat committed Mar 19, 2019
1 parent f347c0c commit 60b4396
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lab-nat-gw1/setup
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,9 @@ case $uts in
sysctl -qw net.netfilter.nf_conntrack_tcp_loose=1

# Use conntrackd on top of that for almost seamless redundancy
ip addr add 172.22.35.25${uts#NAT}/24 dev eth2
ip addr add 169.254.100.${uts#NAT}/24 dev eth2
template conntrackd.NATx.conf conntrackd.$uts.conf \
ipv4="'172.22.35.25${uts#NAT}'" \
ipv4="'169.254.100.${uts#NAT}'" \
hashlimit=$(( $(cat /proc/sys/net/netfilter/nf_conntrack_max) * 2 ))
service conntrackd -C $PWD/conntrackd.$uts.conf -d
;;
Expand Down

0 comments on commit 60b4396

Please sign in to comment.