Hi,
I'm trying to use a second ppp connection and use it only to connect to
one ip , my setup goes like this ..
network 1 ----- ----- ppp0 ---- ----- proxy/internet
linux box ppp server
network 2 ----- ----- ppp1 ---- ----- proxy2/mailserver
my linux box masq for two networks , and I have squid running on it.
squid uses the first ppp and will also use the second ppp as needed , I
have a second ppp connection to the same ppp server and would like to use
this for all connections to my mail server. as several pop accounts that
get a lot of mail are there. I have a fixed ip for the first connection
that I use with /dev/cua0 but the second is not.
the aim is to have all mail on on dialup and squid use the other with
IMCP's to decide if it should use the second dial-up ( given quick pings,
low trafic )
I have been using a ip-up script to set the route's but everything uses
one ppp only , and I can never seem to get the route's correct .
chris
#!/bin/sh
PPP=$1
DEV=$2
IP=$4
#echo $PPP >/dev/tty11
#echo $DEV >/dev/tty11
if [ "$DEV" = "/dev/cua0" ]; then
/usr/bin/sendmail -q
echo $PPP >/etc/ppp/scripts/cua0
else
/sbin/route add 203.35.218.70 gw $IP
echo $PPP >/etc/ppp/scripts/cua1
fi
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
203.35.218.74 0.0.0.0 255.255.255.255 UH 0 0 1 ppp1
203.35.218.74 0.0.0.0 255.255.255.255 UH 0 0 0 ppp0
203.35.218.70 0.0.0.0 255.255.255.255 UH 0 0 1 ppp1
192.168.1.0 0.0.0.0 255.255.255.0 U 0 0 5 eth0
200.0.0.0 0.0.0.0 255.255.255.0 U 0 0 15 eth1
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 9 lo
0.0.0.0 203.35.218.74 0.0.0.0 UG 0 0 31 ppp0
.
Chris Joyce _--_|\
/ \
[EMAIL PROTECTED] \_.--._/ <--- about here
v
---------------------------------------------------------------------------
@date = localtime(time);$date[5] += 2000 if ($date[5] < 37);\
$date[5] += 1900 if ($date[5] < 99);
---------------------------------------------------------------------------
-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]