summaryrefslogtreecommitdiff
blob: f10cd7edcab4ae4f4a792849248cf702ade92c43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

depend() {
	need net iptables
}

start() {
	ebegin "Starting reaim"
	iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 5190 -j REDIRECT --to-ports 5190
	start-stop-daemon --start --quiet --exec /usr/sbin/reaim
	eend $?
}

stop() {
	ebegin "Stopping reaim"
	iptables -t nat -D PREROUTING -i eth0 -p tcp --dport 5190 -j REDIRECT --to-ports 5190
	start-stop-daemon --stop --quiet --exec /usr/sbin/reaim
	eend $?
}