/sbin/ipvsadm-restore is in ipvsadm 1:1.26-2ubuntu1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | #!/bin/bash
# ipvsadm-restore - Restore IPVS rules
#
# A very simple wrapper to restore IPVS rules
# Inspired by ipchains-save.
#
# Version: $Id: ipvsadm-restore 54 2008-09-15 20:09:17Z vince $
#
# Script Author: Horms <horms@vergenet.net>
#
# This file:
#
# ChangeLog
# Horms : Clear IPVS rules before adding from STDIN
# Horms : Filter out "^#"
#
#
PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin
# All the work is actually done in ipvsadm, hooray
INPUT="$(grep -v '^#')"
ipvsadm -C
echo "$INPUT" | ipvsadm -R
|