LinuxQuestions.org
Visit Jeremy's Blog.
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 08-28-2005, 08:22 AM   #1
pawley84
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Rep: Reputation: 0
Unhappy Sharing internet from Ubuntu to XP


I am very new to linux and am really confused. I am using ubuntu. My internet connection goes through a PPPoe and I have managed to set that up by some miracle as i don't know what i did to get it to work but it does.

Now i am wanting my XP machine to see the internet connection on the ubuntu machine just like XP uses the internet gateway.

Any suggestions?
 
Old 08-28-2005, 09:26 AM   #2
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
did you have a look at the LQ wiki pages?

welcome to LQ by the way :-)
 
Old 08-28-2005, 05:32 PM   #3
pawley84
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Thank you...

Ok looked through the WiKi and did find some help but not enough.

What i have done now is setup firestarter and have set it to be a gateway, but still can't get xp machine to see the internet connection... am guessing that the gateway is only for other linux machines? the other thing which i think might be the problem is that the setup which i have is that ubuntu machine has only got one network card... do i need one for internet connection and one for the rest of my lan?
 
Old 08-28-2005, 07:59 PM   #4
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
you should have all the hardware you need... i assume.... i gues you have a nic per pc and a switch? or a cross over cable.

when you do
cat /proc/sys/net/ipv4/ip_forward
you must get the output 1
if not do following:
echo 1 > /proc/sys/net/ipv4/ip_forward

check your firewall, run
iptables -L FORWARD
if the default plicy is DROP and you have some rules listed, chance it to ACCEPT and remove the rules you do not need currently - you can always narrow down things later on, but for the initial setup leaving it open shoudl not be tooo harmful:

iptables -P FORWARD ACCEPT
iptables -F FORWARD

make sure your linux and xp pc can talk to eachother, ie: ping works from both pc's to the other.

try accessing the net.
 
Old 08-29-2005, 02:19 AM   #5
pawley84
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
i haven't tried the last one you told me as i am at work now and will try it as soon as i get home this evening.

my network setup is as follows... i have three pc's, each have one nic. Each pc and the pppoe goes into the switch. Before i had the exact same, just with the one pc connecting the internet and the other two seeing the internet from it. now am trying to get the same pc to hold the connection to the internet and the other 2 to use the internet. i have been told to get squid but my understanding of that is i will only be able to browse from other pcs then. i am wanting full internet access from all the machines, so that i can use p2p programs from the windows machines.

i'm wanting to make sure that what i am trying is possible... will the windows machines see the linux gateway for internet usage?

i was pinging each computer lastnite and was working fine... can ping windows machine from linux and linux machine from windows.
 
Old 08-29-2005, 11:22 AM   #6
pawley84
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
Ok i am home now and have tried the last thing you told me to do.
when i typed "cat /proc/sys/net/ipv4/ip_forward" it did give me "1"

the policy was set to drop so i changed it to accept... i can ping both pc's with eachother but still can't get the XP box to see the internet through the Ubuntu box....

any more suggestions?
 
Old 08-29-2005, 12:04 PM   #7
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
what is the ip address of the ubuntu box, post an ipconfig /all from the xp box
 
Old 08-29-2005, 12:14 PM   #8
pawley84
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
root@Pawley:/ # ifconfig
eth0 Link encap:Ethernet HWaddr 00:90:27:7B:EE0
inet addr:192.168.0.1 Bcast:192.168.0.255 Mask:255.255.255.0
inet6 addr: fe80::290:27ff:fe7b:eed0/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2770 errors:0 dropped:0 overruns:0 frame:0
TX packets:2618 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1251702 (1.1 MiB) TX bytes:414763 (405.0 KiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:19430 errors:0 dropped:0 overruns:0 frame:0
TX packets:19430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:1546965 (1.4 MiB) TX bytes:1546965 (1.4 MiB)

ppp0 Link encap:Point-to-Point Protocol
inet addr:192.168.93.180 P-t-P:10.11.11.201 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1480 Metric:1
RX packets:1971 errors:2348 dropped:0 overruns:0 frame:0
TX packets:2175 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:1135736 (1.0 MiB) TX bytes:350802 (342.5 KiB)

-------------------------------------------------------------------------------------------------------------------------------------------------
there isn't a thing such as ipconfig in ubuntu is there, well it didn't work anyway, am guessing you meant ifconfig.

do you have msn? if so i can give you my email then maybe we can try sort this out on there?

will be checking this forum often now
 
Old 08-29-2005, 12:57 PM   #9
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
what is with the
ipconfig /all
form you xp pc
 
Old 08-29-2005, 01:02 PM   #10
pawley84
LQ Newbie
 
Registered: Aug 2005
Posts: 6

Original Poster
Rep: Reputation: 0
things are getting really scary here... have messed with setting for long time now and all of a sudden things are working here. am accessing internet without a problem from my xp box through my ubuntu box. have no idea what i have done!

thank you for your help don't know what did it but atleast it is working, am running firestarter aswell

do you know of any thing that i can use to monitor my connection?

if you don't mind, if you have msn messenger, will you please add me to your list as i have other questions aswell, my email for msn messenger is pawley84@hotmail.com

thank you
 
Old 08-29-2005, 01:09 PM   #11
Nathanael
Member
 
Registered: May 2004
Location: Karlsruhe, Germany
Distribution: debian, gentoo, os x (darwin), ubuntu
Posts: 940

Rep: Reputation: 33
that is great... i am glad it is working now.
a good idea now is to take a backup of your /etc/ directory:
tar -cvzf /root/etc.bac.tgz /etc
so whenever you have to do this again - you can compare things with your 'old' config.

i will not add you to msn (dont really even use it) but the main reason is that you are at the right address here, you will get most professionall help concerning you problem.
you post to the right category, give your thread a good title, and whoever sees it, and believes to be able to help will read you thread... i generally have a look at a lot of the '0 reply threads' and 'latest threads' and get an email of 0 replyes every day... do i guess i will come accross your thread if i think i could be of any help.
sorry mate, but that is how the things work here... :-)
hope you understand that
 
  


Reply


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
file sharing between OSX and Ubuntu Super20 Linux - Newbie 2 11-01-2005 12:12 AM
music sharing programs for ubuntu? purplepuppy Linux - Software 3 08-12-2005 07:52 PM
mandrake 10.1 sharing files and internet sharing xfiles_arram Linux - Networking 0 05-21-2005 02:22 PM
Sharing my Internet Connection from Ubuntu to Windows (XP & 98SE) eminence Linux - Networking 4 05-19-2005 06:05 PM
File sharing and internet sharing mullet Linux - Networking 1 10-14-2003 01:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:29 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration