LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 04-25-2009, 05:55 AM   #1
alokm
LQ Newbie
 
Registered: Jan 2008
Location: Himachal, India
Distribution: openSuSe 10.3, Fedora 6&7
Posts: 10

Rep: Reputation: 0
Question GPRS internet sharing


Hi
I have two Desktops. Both running Fedora 9 and connected to each other with a crossover cable. I have a GPRS connection via a USB bluetooth Dongle. I can connect thru rfcomm on Kppp. Assigned static ip's 192.168.10.1/2 and can ping from one computer to the other.
So far so good but now I want to share the internet connection between the two computers and run into a maze of gateways and DNS and iptables and am spinning around with no clues. Some of the things I do not understand are

1. What gateway does one assign when your computer directly connect to the internet through a GPRS and not through a NIC or router??
2. When I try to load the shared NFS folder, why does it say "could not load the location: internal error"?
3. Is there somewhere I could get a step-by step instruction??

Thanks
 
Old 05-01-2009, 02:00 AM   #2
alokm
LQ Newbie
 
Registered: Jan 2008
Location: Himachal, India
Distribution: openSuSe 10.3, Fedora 6&7
Posts: 10

Original Poster
Rep: Reputation: 0
Smile Internet sharing solved!!

Well at last I have managed to solve one of my problems of sharing the internet. I am now writing my experience for those who might stumble upon similar problem.

1. For those who want to use static IPs on a two computer network- e.g. 192.168.0.1 and 192.168.0.2, there is only one place to setup a gateway and that is on 192.168.0.2 where it names 192.168.0.1 as a gateway (presuming one is using 192.168.0.1 as the computer to connect to the net)

2. In case one is using GPRS connection one has to configure Iptables configuration using ppp0 (instead of eth0 as given in the following link) a very good and simple example for iptables can be found here


http://www.georgehewitt.co.uk/help/iptables.htm


3. last but not the least is that unless the nameservers in your /etc/resolv.conf are same as the computer which connects to the internet you will not be able to open the web pages but would be able to ping the websites

4. one more step I copied which is supposed to have NAT running at boot is in the /etc/sysctl.conf
where I changed

net.ipv4.ip_forward=0
to
net.ipv4.ip_forward=1

Thanks to the forum archives and all the linux Forums where I had posted this problem and found guidance.

Alok

PS: I also avoided Network manager as I have read a lot about it being buggy
 
  


Reply

Tags
gprs, home, internet, iptables, network, sharing


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
connecting to internet via gprs ssr_2k6 Fedora 1 12-11-2007 12:13 PM
How to use connect to Internet via GPRS jhandu Suse/Novell 0 01-24-2007 01:22 AM
Trying to connect to Internet via GPRS always fails, why? onorua Linux - Networking 1 01-10-2007 08:35 PM
Internet via GPRS--Bluetooth HP. carboncopy Linux - Networking 0 07-09-2004 04:30 AM
Help!! Internet doesn't work.(GPRS) xRomEo Linux - General 1 10-05-2002 11:45 AM


All times are GMT -5. The time now is 01:40 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration