On Thu, Apr 12, 2007 at 12:29:03PM -0400, Sascha Hlusiak wrote
> Wow, got it solved with iproute2. Have these two statements in
> the /etc/conf.d/net now:
I've have to do something similar when I use my backup dialup account
instead of eth0 to the router to ADSL. Here are my ~/bin/dialup and
~/bin/dialdown scripts. Before dialup, I have to take down eth0 and set
up ssmtp to use my dialup ISP's MTA...
#!/bin/bash
/usr/bin/sudo /sbin/ifconfig eth0 down
/usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/295.ssmtp.conf /etc/ssmtp/ssmtp.conf
/usr/bin/sudo /usr/sbin/pon 295caext
After hanging up after a dialup session, I have to reset ssmtp to use
my ADSL provider's MTA server, and restart eth0...
#!/bin/bash
/usr/bin/sudo /usr/sbin/poff
/usr/bin/sudo /usr/bin/cp -f /etc/ssmtp/istop.ssmtp.conf /etc/ssmtp/ssmtp.conf
/usr/bin/sudo /etc/init.d/net.eth0 restart
Is it possible to set things up so that...
- when only eth0 is active, everything routes via 192.168.123.254
- when both eth0 and ppp0 are active, my little LAN on 192.168.123.248/29
(aka netmask 255.255.255.248) routes via 192.168.123.254 and everything
else routes through ppp0?
My current /etc/conf.d/net looks like so...
config_eth0="192.168.123.252 broadcast 192.168.123.255 netmask 255.255.255.248
mtu 1452"
routes_eth0=("default via 192.168.123.254")
--
Walter Dnes <[EMAIL PROTECTED]> In linux /sbin/init is Job #1
Q. Mr. Ghandi, what do you think of Microsoft security?
A. I think it would be a good idea.
--
[EMAIL PROTECTED] mailing list