]>
git.ipfire.org Git - people/teissler/ipfire-2.x.git/blob - src/initscripts/init.d/imspector
2 # Begin $rc_base/init.d/imspector
9 boot_mesg
"Inserting imspector redirects..."
10 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 1863 -j REDIRECT
--to-ports 16667
11 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 5222 -j REDIRECT
--to-ports 16667
12 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 5223 -j REDIRECT
--to-ports 16667
13 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 5190 -j REDIRECT
--to-ports 16667
14 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 5050 -j REDIRECT
--to-ports 16667
15 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 6667 -j REDIRECT
--to-ports 16667
16 iptables
-t nat
-A CUSTOMPREROUTING
-p tcp
--destination-port 8074 -j REDIRECT
--to-ports 16667
18 boot_mesg
"Starting imspector Deamon..."
19 loadproc imspector
-c /etc
/imspector
/imspector.conf
24 boot_mesg
"Stopping imspector Deamon..."
25 killproc
/usr
/sbin
/imspector
28 boot_mesg
"Remove imspector redirects..."
29 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 1863 -j REDIRECT
--to-ports 16667
30 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 5222 -j REDIRECT
--to-ports 16667
31 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 5223 -j REDIRECT
--to-ports 16667
32 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 5190 -j REDIRECT
--to-ports 16667
33 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 5050 -j REDIRECT
--to-ports 16667
34 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 6667 -j REDIRECT
--to-ports 16667
35 iptables
-t nat
-D CUSTOMPREROUTING
-p tcp
--destination-port 8074 -j REDIRECT
--to-ports 16667
45 statusproc
/usr
/sbin
/imspector
49 echo "Usage: $0 {start|stop|restart|status}"
54 # End $rc_base/init.d/imspector