iptables -A FORWARD -i $INT_IF -s $ALLOWED_IP1 -j ACCEPT
iptables -t nat -A POSTROUTING -o $EXT_IF -s $ALLOWED_IP1 -j MASQUERADE

hth..
Uttam

--
Uttam K Jaiswal
Kavach Networks Pvt. Ltd.       http://www.kavach.net


Tathagata Banerjee wrote:
i have installed opensuse 10 on the gateway of a medium-sized network. i
want the gateway to be able to do packet forwarding and ip masquerading
for only some hosts of the internal network (172.16.0.0/16). in other
words, i want to share the internet connection with only those clients
that i select. using acl-s in squid in not the answer, because i want to
control *all* traffic, not only http or ftp. can this be done using
free/opensource software?
i am not an advanced net admin, so if the answer involves advanced
topics, please try to provide some tutorial links too.
thanks.


- t.
--
cogito, ergo es.


--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

--
To unsubscribe, send mail to [EMAIL PROTECTED] with the body
"unsubscribe ilug-cal" and an empty subject line.
FAQ: http://www.ilug-cal.org/node.php?id=3

Reply via email to