Current Path : /etc/rc.d/ |
FreeBSD hs32.drive.ne.jp 9.1-RELEASE FreeBSD 9.1-RELEASE #1: Wed Jan 14 12:18:08 JST 2015 root@hs32.drive.ne.jp:/sys/amd64/compile/hs32 amd64 |
Current File : //etc/rc.d/ipnat |
#!/bin/sh # # $FreeBSD: release/9.1.0/etc/rc.d/ipnat 231653 2012-02-14 10:16:56Z dougb $ # # PROVIDE: ipnat # REQUIRE: ipfilter # KEYWORD: nojail . /etc/rc.subr name="ipnat" rcvar="ipnat_enable" load_rc_config $name start_cmd="ipnat_start" stop_cmd="${ipnat_program} -F -C" reload_cmd="${ipnat_program} -F -C -f ${ipnat_rules}" extra_commands="reload" required_files="${ipnat_rules}" required_modules="ipl:ipfilter" ipnat_start() { echo "Installing NAT rules." ${ipnat_program} -CF -f ${ipnat_rules} ${ipnat_flags} } run_rc_command "$1"