May 04, 2024, 07:17:03 AM

News : LinuxSolved.com Linux Help Community Forum..


Author Topic: Internet sharing between linux pc and win98se pc  (Read 4043 times)

Offline sekhar_vrc

  • Linux Noob !
  • *
  • Posts: 18
Internet sharing between linux pc and win98se pc
« 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

Offline firewall

  • Linux Noob !
  • *
  • Posts: 8
Internet sharing between linux pc and win98se pc
« Reply #1 on: August 03, 2004, 10:03:30 AM »
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.

Offline sekhar_vrc

  • Linux Noob !
  • *
  • Posts: 18
Thank you very much-ics made simple in linux
« Reply #2 on: August 04, 2004, 01:57:27 AM »
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