[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Router with different routes



Am 2004-10-22 10:15:47, schrieb Mike Mestnik:

> Is there a problem with routing the WHOLE subnet?  If you where me I'd
> probly find the subnets assigned by aron and route them all to the correct
> sevice.

curently I have in the Linux-Router 

route add <pop-server-ip> gw <isdn-router-ip>

> Also you could use a script to run 'host' on the name and forward the
> result to iptables, but make sure if the host call fails you provide a
> descent default.  The host cmd could add several minuets to your boot up,
> if your name server is not reachable.

OK, I will use the script option...

  __( '/etc/cron.d/pop3smtp_route' )____________________________________
 /
| SHELL=/bin/bash
| PATH=/root/bin:/bin:/sbin:/usr/bin:/usr/sbin
| 
| 37 * * * * root /root/bin/pop3smtp_route <the_mail_server>
 \______________________________________________________________________


  __( '/root/bin/pop3smtp_route' )______________________________________
 /
| #!/bin/bash
| 
| HOSTSTR=`host $1`
| if [ 'echo $HOSTSTR |grep "has address" ] ; then
|     IP=`echo $HOSTSTR |sed s/^.*has\ address\ //`
| else

      But what to use as default ?
      Any suggestions ?

| fi
| route add $IP gw 192.168.1.125
 \______________________________________________________________________

Thanks
Michelle

-- 
Linux-User #280138 with the Linux Counter, http://counter.li.org/ 
Michelle Konzack   Apt. 917                  ICQ #328449886
                   50, rue de Soultz         MSM LinuxMichi
0033/3/88452356    67100 Strasbourg/France   IRC #Debian (irc.icq.com)

Attachment: signature.pgp
Description: Digital signature


Reply to: