Dear sir, Thanks for you valuable information.
I have gone through the steps, but in this way all systems in my network will directly access the internet if they add my server address in their gateway. I need to set some rules e.g. >From my network the machine with IP 192.168.1.200 can access only www.mydomain.com directly using router and for other domains it should be routed through the proxy server. except this IP everybody in my network should be routed through squid proxy server what should I do for this type of situations ? how can I get rules documentation of routing ? Swapnil K. ----- Original Message ----- From: "Tom Cooper" <[EMAIL PROTECTED]> To: "The Linux-Delhi mailing list" <[email protected]> Sent: Friday, May 27, 2005 11:07 AM Subject: Re: [ilugd] router on 6.2 Hi, On RH6.2 you have to edit /etc/sysctl.conf and change the setting net.ipv4.ip_forward to yes. Then you have to use ipchains, as iptables was not availabe yet. Use the following: ipchains -A forward -s 192.168.0.0/24 -d 0/0 -j MASQ This is assuming your private IP address is in the network 192.168.0.0 You can add this to the /etc/rc.d/init.d/network script under the start section. If you then issue the command /etc/rc.d/init.d/network restart it should all be OK nat'ing is network address translation. HTH. Tom SWAPNIL wrote: >Dear all, > >How can I use linux 6.2 box as router only for connect to my webspace from >my network ? >what should I do, I heard about nating what is that ? > >Also I have visited to http://linuxrouter.org/ and http://www.freesco.org >but downloads from these site is not working > >Thanks and regards > >Swapnil K. >System Group > >Modular Infotech Pvt. Ltd. >26 Electronic Co-operative Estate, >Pune Satara Road, Pune. 411 009. >Maharshtra. INDIA. >Ph: +91-20-24226612 Ext. 206. >Fax: +91-20-24225896. > > > >_______________________________________________ >ilugd mailinglist -- [email protected] >http://frodo.hserus.net/mailman/listinfo/ilugd >Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/ > > > _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/ _______________________________________________ ilugd mailinglist -- [email protected] http://frodo.hserus.net/mailman/listinfo/ilugd Archives at: http://news.gmane.org/gmane.user-groups.linux.delhi http://www.mail-archive.com/[email protected]/
