3.218 default gateway problem
Enviado: Qui Fev 04, 2010 11:51 pm
Hello all,
I try BFW 3.218 today. Its good ...
I find there are no default getway on the outgoing inferface ... while start the BFW
[brazilfw]/# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.254
192.168.152.0/24 dev eth0 proto kernel scope link src 192.168.152.114
I trace the /etc/rc.d/rc.inet
"ip route del default via 192.168.152.254 proto static table 1" . the command success but no default route .
I try
"ip route del default via 192.168.152.254 proto static table 0" . the command success and ip route as following; (that's right)
[brazilfw]/# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.254
192.168.152.0/24 dev eth0 proto kernel scope link src 192.168.152.114
default via 192.168.152.254 dev eth0 proto static
I change rc.inet as following:
#!/bin/sh
# rc.inet script by Washington Rodrigues 2010 #
. /etc/brazilfw/brazilfw.cfg
. /lib/system-functions
if [ -n "$SSH_TTY" -a -z "$APP_NAME" ]; then
echo "The network will be reset in a few seconds..."
echo "" > /tmp/network.reload
exit
fi
inetCount=0 <<-----------------------Here
IPCOUNT=1
hide_kernel_message
write_info_net() {
echo "LINK_TYPE='$LINK_TYPE'
LINK_CONNECTION='$LINK_CONNECTION'
PHYSICAL_ALIAS='$LINK_ALIAS'
IPADDR='$LINK_IP'
NETMASK='$PREFIX'
but , this will lose at the next boot .... It should change the boot file system ....
I try BFW 3.218 today. Its good ...
I find there are no default getway on the outgoing inferface ... while start the BFW
[brazilfw]/# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.254
192.168.152.0/24 dev eth0 proto kernel scope link src 192.168.152.114
I trace the /etc/rc.d/rc.inet
"ip route del default via 192.168.152.254 proto static table 1" . the command success but no default route .
I try
"ip route del default via 192.168.152.254 proto static table 0" . the command success and ip route as following; (that's right)
[brazilfw]/# ip route
192.168.1.0/24 dev br0 proto kernel scope link src 192.168.1.254
192.168.152.0/24 dev eth0 proto kernel scope link src 192.168.152.114
default via 192.168.152.254 dev eth0 proto static
I change rc.inet as following:
#!/bin/sh
# rc.inet script by Washington Rodrigues 2010 #
. /etc/brazilfw/brazilfw.cfg
. /lib/system-functions
if [ -n "$SSH_TTY" -a -z "$APP_NAME" ]; then
echo "The network will be reset in a few seconds..."
echo "" > /tmp/network.reload
exit
fi
inetCount=0 <<-----------------------Here
IPCOUNT=1
hide_kernel_message
write_info_net() {
echo "LINK_TYPE='$LINK_TYPE'
LINK_CONNECTION='$LINK_CONNECTION'
PHYSICAL_ALIAS='$LINK_ALIAS'
IPADDR='$LINK_IP'
NETMASK='$PREFIX'
but , this will lose at the next boot .... It should change the boot file system ....