LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 10-23-2003, 04:13 AM   #1
brad1234
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Rep: Reputation: 0
redhat9.0 and xp


ok so this is wat i want
i got a 56k external modem
i hav configured it so that works now what i want to do is share my 56k modem so windows xp can use the internet thro my computer i hav them networked alright wen they both hav windows xp but i changed to linux redhat9.0 and i am a complete newbie i hav searched on how to do it and cant find anywhere that has a tutorial on it
so can someone tell me a step by step to be able to share my internet connection thanks
ohh yea and i can ping the windows xp machine from linux but i cant ping the linux machine from the xp machine it says destination not reachable
and my linux box ip is 192.168.0.1

Last edited by brad1234; 10-23-2003 at 04:18 AM.
 
Old 10-23-2003, 04:21 AM   #2
ashjam10
Member
 
Registered: Sep 2003
Location: UK
Distribution: Mandrake 10.0
Posts: 121

Rep: Reputation: 15
I could tell you how to do it if the machine with the Internet connection was running XP, but I don't know how to get Red Hat to share the connection. Sorry

Not being able to ping the Linux machine from the XP machine sounds like a firewall problem as you can ping the other way without any problems. Try disabling iptables on the Linux machine while it's not connected to the Internet and you'll probably find you can ping it.

Last edited by ashjam10; 10-23-2003 at 04:23 AM.
 
Old 10-23-2003, 05:13 AM   #3
brad1234
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
well thanks mate it was the firewall i turned it off and can ping perfect now but wat about gettin redhat 9.0 to share the internet

lol about 1month ago i wanted to no how to connect to the internet thro xp because my internal winmodem wasnt compatible
so i wanted to connect thro xp but now i hav a exxternal modem that works on rh9.0 so i want xp to connect thro RH9.0
 
Old 10-23-2003, 05:16 AM   #4
ashjam10
Member
 
Registered: Sep 2003
Location: UK
Distribution: Mandrake 10.0
Posts: 121

Rep: Reputation: 15
I'm absolutely certain someone here will be able to tell you both how to share the Internet connection via RH and how to configure your firewall to allow all traffic from XP box.
 
Old 10-23-2003, 05:47 AM   #5
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
what u need is to make a linux router...using the same "firewall" --iptables...

do a search for such and if anything i'll try to be of assistance...basically u want to accept all requests on the ethernet device and forward them to the ppp device...and allow the responses back through

the linux machine will be the gateway of the xp machine -- so as to allow all traffic to go through it.

let i know
 
Old 10-23-2003, 05:54 AM   #6
ashjam10
Member
 
Registered: Sep 2003
Location: UK
Distribution: Mandrake 10.0
Posts: 121

Rep: Reputation: 15
If it helps any, there's a thread on here where someone has posted their IPtables setup: http://www.linuxquestions.org/questi...hreadid=107503

They're having problems with it DNS wise, but it may be worth using it and keeping an eye on that thread for someone posting a solution.
 
Old 10-24-2003, 02:13 AM   #7
brad1234
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
thanks DoubleOTeC could u tell me how to do it?
i allowed eth0 in the firewall settings and the rest of the firewall is off so now to make the gateway is all i need to do is put the gateway 192.168.0.3 on the RH9.0 machine then will xp be able to access the internet

Last edited by brad1234; 10-24-2003 at 02:28 AM.
 
Old 10-25-2003, 10:54 PM   #8
brad1234
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
com on does anyone know i need it
 
Old 10-27-2003, 04:22 AM   #9
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
Sorry i haven't responded...i've been away from tech for a while....

You said that the firewall aspect is configured (the thread suggested above may have been helpful) therefore all u need to do is set the XP box's gateway to the IP address of the linux Box. If all requests go through to the eth0 on the linux box then they according to the firewall rules should be forwarded to the ppp device

let i know....( i hope i answered the right question )
 
Old 10-29-2003, 01:19 AM   #10
brad1234
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
nope i put it in the winxp machine and didnt work so maybe i havnt confirgured rh propely plz anyone else can help?
 
Old 10-29-2003, 11:38 PM   #11
brad1234
LQ Newbie
 
Registered: Aug 2003
Posts: 9

Original Poster
Rep: Reputation: 0
i will need help on that forwarding stuff that your talkin about remembers im a newbie so can u explain it step by step plz i need this
 
Old 11-01-2003, 08:41 AM   #12
DoubleOTeC
Member
 
Registered: Aug 2003
Location: Dominica
Distribution: RedHat, FC1, FC3, FC4
Posts: 266

Rep: Reputation: 30
create a script with the following in it..

#!/bin/sh
IPTABLES=/sbin/iptables
echo "1" > /proc/sys/net/ipv4/ip_forward
$IPTABLES -P INPUT ACCEPT
$IPTABLES -F INPUT
$IPTABLES -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
$IPTABLES -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT
$IPTABLES -A INPUT -j DROP
$IPTABLES -P OUTPUT ACCEPT
$IPTABLES -F OUTPUT
$IPTABLES -P FORWARD DROP
$IPTABLES -F FORWARD
$IPTABLES -t nat -F
$IPTABLES -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -ACCEPT
$IPTABLES -A FORWARD -i eth1 -o eth0 -j ACCEPT
$IPTABLES -A FORWARD -j LOG
$IPTABLES -t nat -A POSTROUTING -o eth0 -j MASQUERADE

i took this example from the the thread mentioned above....in your case i believe that the eth1 should be replaced with the name of your ppp device

execute the file and see if that works....

let i know
 
  


Reply



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
redhat9? nabil_boussetta Linux - Software 1 02-18-2004 06:33 AM
redhat9 Redrook Linux - Newbie 4 11-09-2003 05:11 PM
Need some help with Redhat9 dazzie454 Linux - General 2 11-02-2003 05:09 PM
RedHat9 TV nzdave Linux - Hardware 1 09-04-2003 04:13 AM
who using Redhat9.0? silver810212 Linux - Distributions 19 04-09-2003 10:20 PM

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

All times are GMT -5. The time now is 04:21 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