Hi Archan,
Thanks for the replky to my mail to the mail group.
I did the job as per your advise. Unfortunately the server did not
recognise the network 192.168.1.0 and the NIS server did not work, ping
also did not work. But the network on 90.0.0.0 worked fine. I could not
login from other clients running as NIS clients. Kindly have a look at
my comments against your mail let me know if they are correct and what
has to be done.
Thanks in adavance.
Archan Paul wrote:
>
> Hi Dr. Patra,
>
> Ur problem is typical IP MASQ problem.
>
> Please check whether both of gateway for 192.168.0.0
> and 90.0.0.0 as MASQ ed for packet forwarding...
>
> for the gateway of the 90.0.0.0 network, please
> make following file at /etc/rc.d/rc.fw
>
Do I have to do the same thing for 192.168.1.0 network also. If yes what
has to be done? I suppose these haver to be statements similar to these
but replacing the IP network addresses
> #!/bin/sh
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /sbin/ipchains -F
> /sbin/ipchains -P forward DENY
> /sbin/ipchains -A forward -s 90.0.0.0/255.255.255.0 -j MASQ
> #comment te following lines if not needed and make the default iput
> # and output policy to accept
> /sbin/ipchains -P input DENY
> /sbin/ipchains -A input -d 90.0.0.0/255.255.255.0 -j ACCEPT
> /sbin/ipchains -A input -d 192.168.0.0/255.255.255.0 -j ACCEPT
> /sbin/ipchains -P output DENY
> /sbin/ipchains -A output -s 90.0.0.0/255.255.255.0 -j ACCEPT
> /sbin/ipchains -A output -s 192.168.0.0/255.255.255.0 -j ACCEPT
> /sbin/ipchains -L
>
> then add following line at /etc/rc.d/rc.local
>
> #added for MASQ
> /etc/rc.d/rc.local
Isuppose this line has to be /etc/rc.d/rc.fw
>
> Then restart all network services and execute /etc/rc.d/rc.local
> It is assumed that u are running typical RH6.2 provided Kernel.
>
> Do the same kind of things with the appropriate IP address in 192.168.0.0
> network's gateway
What is to be done for this. Let me know with repect to comments given
above.
Thanks
Sarat
--
################################################
Dr.Sarat Kumar Patra, (Asst Prof.)
Dept. of Applied Electronics & Inst. Eng.,
Regional Engineering College, Rourkela
Orissa-769 008, INDIA
email:[EMAIL PROTECTED]
Phone:+(91)-661-575922(H), Fax:+(91)-661-571 169
################################################
----------------------------------------------
Find out more about this and other Linux India
mailing lists at http://lists.linux-india.org/