summaryrefslogtreecommitdiff
path: root/run_server.sh
blob: e6beee9b38237caa50cbcf11243e1ace389bf2cd (plain)
1
2
3
4
5
6
7
8
9
#!/usr/bin/env bash
if [[ "$(id -u)" -ne 0 ]]; then
	echo >&2 "Run with sudo"
	exit 1
fi

echo 1 >/proc/sys/net/ipv4/icmp_echo_ignore_all
trap "echo 0 >/proc/sys/net/ipv4/icmp_echo_ignore_all" EXIT
./serverd