LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File freenet.susefw of Package freenet (Project home:p_conrad)

# (C) 2013 Peter Conrad <conrad@quisquis.de>
#
# This file is licensed under the terms of the
# GNU General Public License Version 2 or later. A copy of these terms should
# be enclosed as "LICENSE" in the package containing this file.

# WARNING!
# Enabling this allows the freenet user to open arbitrary udp ports > 1024!

# space separated list of allowed UDP ports
UDP=
for i in /var/lib/freenet/{node,opennet}-[0-9]*; do
    if [ -f "$i" ]; then
	port="${i##*-}"
	if [ "$port" -gt 1024 ]; then
	    UDP="$UDP $port"
	fi
    fi
done