Jo�o Borsoi Soares wrote:
> Well Richard, I'm trying to do something similar here. I'm implementing it.
> Let's see if I can help.
>
> > I would like to enable/disable IP masqerading for a
> > computer from the Windows'95 clients to get a situation
> > similar to making/breaking the connection with dialup
> > networking.
>
> What enables someone to use forwarding (IP masq), is the ip fowarding rules.
> It's set with ipfwadm. For example, if you put a rule like that:
>
> ipfwadm -F -a m S 192.168.1.0/24
>
> Than you are allowing everyone from network 192.168.1.0, with netmask
> 255.255.255.0, to forward ips with mask. You can also add rules to specific
> ips, like:
>
> ipfwadm -F -a m S 192.168.3.5
>
> If you want, you may also remove a rule. The option -a appends a rule, but
> -d option deletes a rule. Take a look in ipfwadm man pages. With that, I
> think you can block anyone of using IP masquerade, I guess.
>
> > If possible I would like to log the time that a computer
> > or user is using the internet.
>
> I think you can log the net activity. But when someone is using the net, he
> possibly is not using it full time. You could log each time a packet is
> sent, but its difficult to say how many time someone is online.
>
> With that intention, I am implementing something like that here. In my home,
> I installed a IP-masquerade to distribute access to my ISP. So, if some one
> wants to use the Internet, he has to log in my server (with a server program
> which I am making), and than run a command which I am defining like
> "startinet". Than, he will be able to access the Internet (I mean, to
> forward ips). When he finish, or when the connection to the server is
> broken, the ip forwarding for this user is automatically stopped. And than I
> can log how much time he is using the Internet.
>
> If you like the idea, when I finish things here, I may send you my program
> to see if it can helps you. Just remember me one week from now!
I like the idea. I guessed someone would have solved or is solving all my
problems ;-)
>
> Bye.
> Joao.
>
> --
> --------------------------------
> Jo�o Borsoi Soares
> e-mail: [EMAIL PROTECTED]
> Fone: (016) 261-1070
> Celular: (016) 961-1348
> --------------------------------
Richard.
-
To unsubscribe from this list: send the line "unsubscribe linux-diald" in
the body of a message to [EMAIL PROTECTED]