On Mon, 22 Sep 2003, Harish wrote:Hi,
Hi,
I am a newbie in Linux,I have done a NAT on my Linux server so that my internet connection could be shared with my Windows machies on my lan.My problem is that each time i reboot the server the firewall settings go back to the default settings.In order to get the NAT working again I have to use install the ipt_Masquerade module again and reinvoke iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE.
Can i get a script so that I dont have to do this everytime?
My second problem is that on my server I get a error Neighbour Table overflow?Whats the cause of this error?I have two NICs on my server one for pvt network and the other for the public network (intrenet connection).
Sure you can...once you've got your firewall configured the way you like, run "/sbin/service iptables save"...this will save your current iptales configuration, and on the next reboot, will load it as you've configured it.
I saved the iptables and in my next reboot i did see the NAT rules in /etc/iptables but still my NAT would not function, I figuerd out that it is not able to build a chain bcos ipt_MASQUERADE.o module does not get automotically loaded during the boot process,which means that I have to Insmod ipt_MASQUERADE each time.How can i load this module during boot process any suggestion?
Thanks and Regards Harish
-- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED] https://www.redhat.com/mailman/listinfo/redhat-list