Re: Modifying Routing Tables on the fly

1998-03-03 Thread Carey Evans
"Ian Perry" <[EMAIL PROTECTED]> writes: > USER=$( who|grep ttyS1 | awk '{printf $1}') In the interests of eliminating unneeded commands, did you realise you can write this more easily as the following? USER=$(who | awk '$2=="ttyS1" { print $1 }') -- Carey Evans http://home.clear.n

Re: Modifying Routing Tables on the fly

1998-03-03 Thread Craig Sanders
On Tue, 3 Mar 1998, Ian Perry wrote: > ---cut here--- > #!/bin/sh > > USER=$( who|grep ttyS1 | awk '{printf $1}') > > case $USER in > fulltest) /sbin/route add 192.168.1.1 eth0;; > esac > --cut here-- glad to hear you're figuring it out :-) > Again, Many thanks what you've got t

Re: Modifying Routing Tables on the fly

1998-03-03 Thread Ian Perry
Craig, I used the following in ip-up ---cut here--- #!/bin/sh USER=$( who|grep ttyS1 | awk '{printf $1}') case $USER in fulltest) /sbin/route add 192.168.1.1 eth0;; esac --cut here-- Again, Many thanks Ian -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe

Re: Modifying Routing Tables on the fly

1998-03-02 Thread Alex Yukhimets
> Is there a way to safely change the routing table dependant on who logs in > ? Well, this is hard to imagine for a multi-user system. If you have several users logged in -on on the console and another one from local network via telnet? Anyway, if you still insist on this kind of setup, you may w

Re: Modifying Routing Tables on the fly

1998-03-02 Thread Ian Perry
The light comes on and the penny drops. I will try it first thing in the morning. Many thanks... Ian -- TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to [EMAIL PROTECTED] . Trouble? e-mail to [EMAIL PROTECTED] .

Re: Modifying Routing Tables on the fly

1998-03-02 Thread Craig Sanders
On Mon, 2 Mar 1998, Ian Perry wrote: > Sorry, Maybe I did not explain it well enough. > > The remote IP stays the same for all users loggin in (there is only > one dial-in port) > > The route table has to change according to the user, not by the remote > IP. > > The only means I have of Identifyin

Re: Modifying Routing Tables on the fly

1998-03-02 Thread Ian Perry
192.168.1.1 Can ip-up identify a user ?... or can you specify a different ip-up for each user ? Ian -- -- > From: Craig Sanders <[EMAIL PROTECTED]> > To: Ian Perry <[EMAIL PROTECTED]> > Cc: debian-user@lists.debian.org > Subject: Re: Modifying Routing Tables on t

Re: Modifying Routing Tables on the fly

1998-03-02 Thread Jens Ritter
Ian Perry <[EMAIL PROTECTED]> writes: > I am trying to modify a route table dependant on which user logs in through > a dial-up connection. > viz: route add 192.168.1.1 eth0 > > I have already got > > route add -net 192.168.0.0 netmask 255.255.0.0 lo > to stop other users getting to the local n

Re: Modifying Routing Tables on the fly

1998-03-02 Thread Craig Sanders
On Mon, 2 Mar 1998, Ian Perry wrote: > I am trying to modify a route table dependant on which user logs in through > a dial-up connection. > viz: route add 192.168.1.1 eth0 > > I have already got > > route add -net 192.168.0.0 netmask 255.255.0.0 lo > to stop other users getting to the local ne

Modifying Routing Tables on the fly

1998-03-02 Thread Ian Perry
Hi, I am trying to modify a route table dependant on which user logs in through a dial-up connection. viz:route add 192.168.1.1 eth0 I have already got route add -net 192.168.0.0 netmask 255.255.0.0 lo to stop other users getting to the local network (other than what they are supposed to) I