Author Topic: Internet Connection Sharing  (Read 3050 times)

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1588
Internet Connection Sharing
« on: February 11, 2010, 06:52:44 AM »
Hello All,
I connect to the internet thru an Alltel USB Modem (Huawei EC168 ) using KPPP on PPP-0 ( PCLinuxOS )

I have another computer, that my wife uses and she is connecting using satellite internet thru a netgear router
connected to a modem provided by the satellite ISP . ( Windows XP - She refuses to try PCLinux )

Just yesterday she was complaining that during bad weather she was unable to connect to do her work, because the internet connection was down ( snow and heavy cloud cover )

Is it possible to connect her computer to the internet thru my ppp-0 connection using the equipment that I have ?
If so can someone elaborate ?

Do I need to set up a server ?
Do I need/should have the router incorporated in the setup ?
Will her computer connect to mine thru the Eth0 via a cat5 cable and still access the ppp0 connection ?

I have been searching and reading, on the net, but nothing quite covers just what I have.

 Thanks for taking the time to look into this !

smcs_steve

  • Guest
Re: Internet Connection Sharing
« Reply #1 on: February 11, 2010, 03:02:16 PM »
Hello Ramchu ,
Did you take a look at PCC> Network & Internet> Share the internet with other local machines...?
>Steve

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1588
Re: Internet Connection Sharing
« Reply #2 on: February 11, 2010, 03:59:03 PM »
Hello Ramchu ,
Did you take a look at PCC> Network & Internet> Share the internet with other local machines...?
>Steve
smcs_steve
 Thanks for the reply,
  Yes I have looked into that and also I installed dhcp server and firestarter
 I have been reading and trying to configure this for the last 10 or so hours and I have discovered that
 any time I plug into the Ethernet card it disables my PPP0 internet connection.

 I have read that I need to bridge the eth0 and ppp0 to stop this - unfortunately I have been unable to
 find anything on how to bridge them .

 When I do have the Ethernet card plugged in to my host computer I can ping the other computer through the router and vice-versa.
 But as I said I cannot get to the internet.
 This is not a priority at this time but it has become a challenge that I am determined to overcome - if at all possible .

 Again Thanks !

Offline Was_Just19

  • Hero Member
  • *****
  • Posts: 6852
  • MLU
Re: Internet Connection Sharing
« Reply #3 on: February 11, 2010, 04:19:35 PM »
Have you read the few threads on the subject?
There have been difficulties, but maybe something in one them would get you going.

Select the forum HOME and from there search for
"internet connection sharing"       and include the " "

You might find something of use ....

smcs_steve

  • Guest

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1588
Re: Internet Connection Sharing
« Reply #5 on: February 11, 2010, 06:21:08 PM »
Have you read the few threads on the subject?
There have been difficulties, but maybe something in one them would get you going.

Select the forum HOME and from there search for
"internet connection sharing"       and include the " "

You might find something of use ....
JohnBoy Thank You !

  I will give those a look later - Tired of sitting at the computer now - Have read so much stuff today that I think my eyes may start bleeding  ;D

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Internet Connection Sharing
« Reply #6 on: February 11, 2010, 07:10:02 PM »
I played with this awhile ago, and the trick seemed to be with configuration of the firewall in PCC.  I don't recall the details, but when I get home to my PCLOS box I will take a look.

Basic how to is on the Wiki:
http://www.pclinuxos.com/wiki/index.php/Internet_Connection_Sharing

Offline Ramchu

  • Hero Member
  • *****
  • Posts: 1588
Re: Internet Connection Sharing
« Reply #7 on: February 13, 2010, 08:36:28 AM »

 After all of the time I have committed to this I have decided to wait and pick it up again after the 2010
 reinstall which should be coming shortly.
 No need to get it all setup and then have to do it all again with the new 2010 reinstall .

 Thank You - to all that have tried to help .
 

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Internet Connection Sharing
« Reply #8 on: February 13, 2010, 11:03:41 AM »
When the time comes, set up your ICS before you add non-standard firewalls, etc..  The closer to stock that your install is, the easier it is to trouble shoot problems.

..keep us updated on your progress; I will most likely be going through the setup agian myself with the 2010 release, so I will try and update the wiki as I do.

Offline newklear

  • Jr. Member
  • **
  • Posts: 30
    • Best Support Forum in the World
Re: Internet Connection Sharing
« Reply #9 on: April 04, 2010, 10:43:31 AM »
I have PCLinuxOS as my host and share to two other PC's running PCLinuxOS and 1 PC running Windows XP all through a router, thought I would add this as it helped me alot even if it is a little bit late, after all *better late than never*

ICS with PCLinuxOS as the host:

Flush and delete existing firewall rules:
iptables -F
iptables -t nat -F
iptables -t mangle -F

Delete the chains:
iptables -X
iptables -t nat -X
iptables -t mangle -X

Save IP Tables Rules:
service iptables save
service iptables restart

scite /etc/rc.d/rc.local
insert
Code: [Select]
echo "1" > /proc/sys/net/ipv4/ip_forward
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
service iptables save
service iptables restart
# ^^ppp0 is my default internet connection, change with yours if not the same.

Make sure IP tables are set:
chkconfig --list iptables

make sure either level 5 or level 2,3,4,5 are on

Set Linux Host IP:
192.168.0.1
netmask
255.255.255.0

Set Client IP's
192.168.0.x
netmask
255.255.255.0
gateway
192.168.0.1

You should be good to go on the other PC's.
*Note Depending on your ISP and setup, you might need to add your ISP's primary and secondary DNS entries for the other computers on the network or use opendns.
« Last Edit: April 04, 2010, 10:48:57 AM by newklear »
When your kernel developer or packager writes more code than what you can download, 'you know ...TIA!


magesha

  • Guest
Re: Internet Connection Sharing
« Reply #10 on: August 13, 2010, 01:35:35 PM »
Hi newklear,

I followed your guide, except a bit stuck at the last step:

Quote
Set Linux Host IP:
192.168.0.1
netmask
255.255.255.0

Set Client IP's
192.168.0.x
netmask
255.255.255.0
gateway
192.168.0.1

Where does one set this? In the hosting PC ? If so, what setting/tool/command should I use for this?

Thanks,
Magesha

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Internet Connection Sharing
« Reply #11 on: August 19, 2010, 06:49:05 PM »
The host IP is set using PCC's Network Center or net-applet in the panel (for the network interface that is connected to your home network)...  select manual instead of automatic and enter the values suggested for host.

..if the client is PCLinuxOS, the same applies; if it is XP it is set in your connections properties... If I recall correctly it is something like "Start" > Network Connections > right click the local network connection > select "properties" and somewhere in the config tabs / settings there is a spot to enter manual network settings.

magesha

  • Guest
Re: Internet Connection Sharing
« Reply #12 on: August 26, 2010, 03:23:21 PM »
The host IP is set using PCC's Network Center or net-applet in the panel (for the network interface that is connected to your home network)...  select manual instead of automatic and enter the values suggested for host.

..if the client is PCLinuxOS, the same applies; if it is XP it is set in your connections properties... If I recall correctly it is something like "Start" > Network Connections > right click the local network connection > select "properties" and somewhere in the config tabs / settings there is a spot to enter manual network settings.

Thanks travisn000 for the tip. Do you mean using the "Setup a new network interface" under PCC > Network & Interface? Because I don't have a current wireless router/network, I want to set my laptop as a router/hotspot. So, I tried adding it, and have tried all options under Operation modes and other "Advanced" stuff but it always fails at the last step (start the connection) with the following error message:

Code: [Select]
Problems occured during the network connectivity test.

This can be caused by invalid network configuration, or problems with your modem or router.

You might want to relaunch the configuration to verify the connection settings.

It seems it is trying to connect to the internet via the new connection whereas, I want to setup a hotspot/access point to share the internet connection. Not sure how to tell it to start the connection but not try connecting..

Cheers,
Magesha

Offline DeBaas

  • Hero Member
  • *****
  • Posts: 1517
    • PCLinuxOS.nl
Re: Internet Connection Sharing
« Reply #13 on: August 26, 2010, 03:47:40 PM »

Offline travisN000

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1758
Re: Internet Connection Sharing
« Reply #14 on: August 27, 2010, 02:06:22 PM »
Thanks travisn000 for the tip. Do you mean using the "Setup a new network interface" under PCC > Network & Interface? Because I don't have a current wireless router/network, I want to set my laptop as a router/hotspot. So, I tried adding it, and have tried all options under Operation modes and other "Advanced" stuff but it always fails at the last step (start the connection) with the following error message:

Code: [Select]
Problems occured during the network connectivity test.

This can be caused by invalid network configuration, or problems with your modem or router.

You might want to relaunch the configuration to verify the connection settings.

It seems it is trying to connect to the internet via the new connection whereas, I want to setup a hotspot/access point to share the internet connection. Not sure how to tell it to start the connection but not try connecting..

Cheers,
Magesha


I'm just guessing here, but if you are trying to use your laptop as a wifi hotspot, you must have a wifi chipset / driver combo which supports this function;  many do not.   Its been awhile since I have looked into it, but there are websites that discuss what hardware will work...   Do some searching on your hardware.

Good Luck.


..perhaps this is a good place to start:
http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/
 ;)