linux user auto login and NAT
Hi all:
I have a PC in my home with winxp, rhel-3 installed on it. Now I used IP forwarding in my rhel so that my father can use my broadband connection. Now the problem is: I put the iptables script at the /etc/rc.d/rc.local and it also executes at boot but dont work until I login and executes the script again. though I gave permission of that script 777. As my father is not that aware of linux stuff :) obviously so for him I want to make the login prompt automatic for this reason and then he has to run that script which is very tedious for him. Waiting for your reply. |
you should have no need to add scripts anywhere. you should use the iptables service to control iptables rules, and enable ip forwarding via /etc/sysctl.conf
|
My linux box has 2 NIC one for internal 192.168.100.10 and one for external.
My other PC has IP 192.168.100.20 and can use internet though my pc. I have this setup in my router linux box. I have enable auto login by editing /etc/inittab but still after I have run the script to make 2nd pc use internet although its written in rc.local. /etc/rc.d/rc.local file:- ------------------------- Code:
---------------------- Code:
#!/bin/sh # chmod /etc/rc.d/rc.ipmasq and then #/etc/rc.d/rc.ipmasq to enable network sharing. Thanks in advance. |
ok, well my advice still stands...
|
OK, thanks.
One more thing, is there any way to know what IP is accessing my NAT, using how much bw, and anything about caching overflow on my NAT server if using a Large amount of user? thanks. |
well netstat / lsof will list open connections, if that's all you're after. what do you mean by caching overflow? squid poxying or something? that'd be at a different app specific level.
|
All times are GMT -5. The time now is 03:35 AM. |