>>>>> "Amit" == amit sharma <[EMAIL PROTECTED]> writes:

    Amit> i use iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE

    Amit> to allow my linux box to act as gateway for my local windows
    Amit> system amd access internet.

    Amit> it works fine.

    Amit> how can i restrict the same thing for a specific
    Amit> ipaddress(es) only.

    Amit> expample my linux box should act as gateway only to say
    Amit> 192.168.1.10 and none other systems on my network.

Uh, iptables -t nat -A POSTROUTING -s 192.168.1.10/32 -o eth1 -j MASQUERADE

-- Raju
-- 
Raj Mathur                [EMAIL PROTECTED]      http://kandalaya.org/
       GPG: 78D4 FC67 367F 40E2 0DD5  0FEF C968 D0EF CC68 D17F
                      It is the mind that moves

_______________________________________________
ilugd mailing list
[EMAIL PROTECTED]
http://frodo.hserus.net/mailman/listinfo/ilugd

Reply via email to