On 31/12/01 18:34 +0530, Rohan Almeida wrote: > o I'm using linux as a MASQ gateway and transparent proxy (squid) > o The internal network uses class B private addresses > o The linux gateway has a static internet IP > > Now, some of the clients want static official IP's, since they are corporate > users, while other users (home, etc) can do with private IP. Alias another ip address on your NIC, or add a second NIC to the system. Give this card a publicly accessible address. Give your customers addresses in the same subnet as this IP. Add static routes if required. Now your system is configured as a router.
Next, (P|N)AT only the RFC1918 block. /sbin/ipchains -A forward -s 172.16.0.0/12 -d 0/0 -j MASQ /sbin/ipchains -A input -s 172.16.0.0/12 -d 0/0 80 -j REDIRECT 3128 /sbin/ipchains -A input -s 10.0.0.0/8 -d 0/0 80 -j REDIRECT 3128 (replace 10/8 by your public IP block). sysctl -w net.ipv4.ip_forward=1 > How to implement on linux. > I'm aware that i have to do something called 1:NAT, or something like that!! Not necessarily. This stuff should work > Could someone plz tell me in short Done. Routing is that easy, if you know how :). > I have to produce results by wednesday!! Start the new year correctly, implement this today ;). > And of course, tonite is party time, and tomm. is sleeping time! Whats sleep(1)? or are you referring to sleep(3)? ;) > Happy new year everyone! AOL! Devdas Bhagat -- Me Too! _______________________________________________ linux-india-help mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/linux-india-help
