3 # $Id: rc.network,v 1.10.2.6 2005/07/11 18:38:02 franck78 Exp $
5 eval $
(/usr
/local
/bin
/readhash CONFIG_ROOT
/ethernet
/settings
)
7 echo "Setting up loopback"
8 ifconfig lo localhost up
10 echo "Loading MASQ helper modules"
13 modprobe ip_conntrack_ftp
15 modprobe ip_conntrack_h323
17 modprobe ip_conntrack_irc
19 modprobe ip_conntrack_mms
21 modprobe ip_conntrack_pptp
23 modprobe ip_conntrack_proto_gre
24 modprobe ip_nat_proto_gre
25 modprobe ip_conntrack_quake3
26 modprobe ip_nat_quake3
28 # Remove possible leftover files
29 rm -f CONFIG_ROOT
/red
/{active
,device
,dial-on-demand
,dns1
,dns2
,local-ipaddress
,remote-ipaddress
,resolv.conf
}
31 # This won't actually do anything unless a PCMCIA controller was
32 # detected at install time, because /etc/pcmcia.conf won't exist.
33 /etc
/rc.d
/rc.pcmcia start
34 # Now, just in case we found a PCMCIA USB controller, we'll need to reload
36 /usr
/local
/bin
/resetusb
38 # The 'for' loop force driver loading order
39 for NIC
in 0 1 2 3; do
41 if [ "$GREEN_DEV" == "$ETHX" ]; then
42 if [ "$GREEN_DRIVER" != "" ]; then
43 modprobe
$GREEN_DRIVER $GREEN_DRIVER_OPTIONS
46 if [ "$ORANGE_DEV" == "$ETHX" ]; then
47 if [ "$ORANGE_DRIVER" != "" ]; then
48 modprobe
$ORANGE_DRIVER $ORANGE_DRIVER_OPTIONS
51 if [ "$BLUE_DEV" == "$ETHX" ]; then
52 if [ "$BLUE_DRIVER" != "" ]; then
53 modprobe
$BLUE_DRIVER $BLUE_DRIVER_OPTIONS
56 if [ "$RED_DEV" == "$ETHX" ]; then
57 if [ "$RED_DRIVER" != "" ]; then
58 modprobe
$RED_DRIVER $RED_DRIVER_OPTIONS
63 if [ -d /proc
/bus
/pccard
]; then
64 echo "Initializing PCMCIA cardbus modems"
68 echo "Setting up IPFire firewall rules"
69 /etc
/rc.d
/rc.firewall start
70 echo "Setting up IP Accounting"
71 /etc
/rc.d
/helper
/writeipac.pl
72 /usr
/sbin
/fetchipac
-S
73 echo "Setting IPFire DMZ pinholes"
74 /usr
/local
/bin
/setdmzholes
76 if [ "$BLUE_DEV" != "" ]; then
77 echo "Setting up wireless firewall rules"
78 /usr
/local
/bin
/restartwireless
81 echo "Bringing network up"
82 .
/etc
/rc.d
/rc.netaddress.up