]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - etc/rc.d/ipnat
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / etc / rc.d / ipnat
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: ipnat
7 # REQUIRE: ipfilter
8 # KEYWORD: nojail
9
10 . /etc/rc.subr
11
12 name="ipnat"
13 rcvar="ipnat_enable"
14 load_rc_config $name
15 start_cmd="ipnat_start"
16 stop_cmd="${ipnat_program} -F -C"
17 reload_cmd="${ipnat_program} -F -C -f ${ipnat_rules}"
18 extra_commands="reload"
19 required_files="${ipnat_rules}"
20 required_modules="ipl:ipfilter"
21
22 ipnat_start()
23 {
24         echo "Installing NAT rules."
25         ${ipnat_program} -CF -f ${ipnat_rules} ${ipnat_flags}
26 }
27
28 run_rc_command "$1"