Linux Forums - Linux Help,Advice & support community:LinuxSolved.com
Network Troublshooting => General Networking Support in Linux => Topic started by: sekhar_vrc on August 03, 2004, 06:55:14 AM
-
hello
pc-1 is having R.H 9.0
pc-2 is having win98 S.E
pc-1 is having ppp internet connection and is working fine.
How can i implement internet sharing.
Please help me
sekhar
-
use Squid : it is a high-performance proxy caching server.
http://tldp.org/LDP/lame/LAME/linux-admin-made-easy/squid-upgrades.html
OR
You can do this with IPTABLES rules too if u like to learn new things:
You need to have "rOOt access.
1) edit the file:
/etc/sysctl.config
add a 1 to the ip_forward like so:
net/ipv4/ip_forward = 1
save and close file.
2) at the prompt type:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
Then at the prompt again type:
/etc/init.d/iptables save
or
service iptables save
Restart the network services, like so:
/etc/init.d/network restart
or
service network restart
All this is done on the firewall machine.
The eth0 is the network interface pointing to the Internet not your local network
This will let all pc on the local net to get online and the main pc will masquerade the internal IP address to look like the request is comming from the firewall pc.
Hope this helps.
-
Hello
I have choosen your second suggestion.
i.e used iptables and implemented internet sharing.
It is very simple to use it.
Fantastic
Thank you very much
sekhar