On Friday 31 January 2003 23:43, fifner the dragon wrote:
> How do I set up my connection sharing to share the connection with one
> computer (192.168.0.3) but not with another (192.168.0.2)?
>
> Thanks in advance,
> Fifner

The way I would do it would be with iptables.  If you are able to share your 
connection with all computers now, you can tell iptables that only the input 
IP is 192.168.0.3 (versus your ethernet device).

In my network, I allow all machines.  I use:
        iptables -A INPUT -i eth0 -j ACCEPT
but if I wanted to allow only one machine I would use:
        iptables -A INPUT -i eth0 -s 192.168.0.3 -j ACCEPT

If you don't yet share your connection, then you'll want to read up on 
iptables and probably masquerading.  I used the IP-Masquerade-HOWTO file in 
my /usr/share/doc/HOWTO directory (it's a little deeper) and created scripts 
and config files according to the text.

Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to