mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-02 21:32:58 +00:00
* Add an eval so that ipnat_flags=">/dev/null" works, per the PR
* Do some line length and specify full path cleanups while I'm here PR: conf/22937 Submitted by: Andre Albsmeier <andre.albsmeier@mchp.siemens.de>
This commit is contained in:
parent
b048419e0d
commit
8f38f3b2e6
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=70129
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
@ -64,18 +64,20 @@ network_pass1() {
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipfilter_rules}" ]; then
|
||||
echo -n ' ipfilter';
|
||||
${ipfilter_program:-ipf -Fa -f} "${ipfilter_rules}" ${ipfilter_flags}
|
||||
${ipfilter_program:-/sbin/ipf -Fa -f} \
|
||||
"${ipfilter_rules}" ${ipfilter_flags}
|
||||
case "${ipmon_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
echo -n ' ipmon'
|
||||
${ipmon_program:-ipmon} ${ipmon_flags}
|
||||
${ipmon_program:-/sbin/ipmon} ${ipmon_flags}
|
||||
;;
|
||||
esac
|
||||
case "${ipnat_enable}" in
|
||||
[Yy][Ee][Ss])
|
||||
if [ -r "${ipnat_rules}" ]; then
|
||||
echo -n ' ipnat';
|
||||
${ipnat_program:-ipnat -CF -f} "${ipnat_rules}" ${ipnat_flags}
|
||||
eval ${ipnat_program:-/sbin/ipnat -CF -f} \
|
||||
"${ipnat_rules}" ${ipnat_flags}
|
||||
else
|
||||
echo -n ' NO IPNAT RULES'
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user