]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/blob - libexec/rc/rc.d/ipnat
When booting a system with WITHOUT_IPFILTER the following errors
[FreeBSD/FreeBSD.git] / libexec / rc / rc.d / ipnat
1 #!/bin/sh
2 #
3 # $FreeBSD$
4 #
5
6 # PROVIDE: ipnat
7 # KEYWORD: nojailvnet
8
9 . /etc/rc.subr
10
11 name="ipnat"
12 desc="user interface to the NAT subsystem"
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"