mirror of
https://git.hardenedbsd.org/hardenedbsd/HardenedBSD.git
synced 2024-11-28 03:42:04 +01:00
Start ppp before natd, not afterwards.
Submitted by: Josef L. Karthauser <joe@uk.FreeBSD.org>
This commit is contained in:
parent
c4e04ec167
commit
6eff605357
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
@ -1,6 +1,6 @@
|
||||
#!/bin/sh -
|
||||
#
|
||||
# $Id: rc.network,v 1.50 1999/07/16 09:26:52 jkh Exp $
|
||||
# $Id: rc.network,v 1.51 1999/07/26 10:49:31 brian Exp $
|
||||
# From: @(#)netstart 5.9 (Berkeley) 3/30/91
|
||||
|
||||
# Note that almost all the user-configurable behavior is no longer in
|
||||
@ -96,6 +96,23 @@ network_pass1() {
|
||||
fi
|
||||
done
|
||||
|
||||
# Warm up user ppp if required, must happen before natd.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Initialize IP filtering using ipfw
|
||||
echo ""
|
||||
/sbin/ipfw -q flush > /dev/null 2>&1
|
||||
@ -144,23 +161,6 @@ network_pass1() {
|
||||
fi
|
||||
fi
|
||||
|
||||
# Warm up user ppp if required.
|
||||
if [ "X$ppp_enable" = X"YES" ]; then
|
||||
# Establish ppp mode.
|
||||
if [ "X$ppp_mode" != X"ddial" -a "X$ppp_mode" != X"direct" \
|
||||
-a "X$ppp_mode" != X"dedicated" ]; then \
|
||||
ppp_mode="auto";
|
||||
fi
|
||||
ppp_command="-${ppp_mode} ";
|
||||
|
||||
# Switch on alias mode?
|
||||
if [ "X$ppp_alias" = X"YES" ]; then
|
||||
ppp_command="${ppp_command} -alias";
|
||||
fi
|
||||
|
||||
echo -n 'Starting ppp: '; ppp ${ppp_command} ${ppp_profile}
|
||||
fi
|
||||
|
||||
# Additional ATM interface configuration
|
||||
if [ -n "${atm_pass1_done}" ]; then
|
||||
atm_pass2
|
||||
|
Loading…
Reference in New Issue
Block a user