LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 08-14-2003, 01:12 PM   #16
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15

woah well now i can ping both computers after doing dmesg | grep eth...... but internet connection sharing is still not working
 
Old 08-14-2003, 01:54 PM   #17
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Now follow the instructions in this post.
http://www.linuxquestions.org/questi...351#post395351
 
Old 08-14-2003, 03:43 PM   #18
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
sorry i dun all that stuff and it still doesnt work
 
Old 08-14-2003, 03:52 PM   #19
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
If you have not restarted your computer since making those modification, you can try:
Code:
service network restart
service iptables restart
If that does not work,
I need to see the output from the two following commands:
Code:
route -n
iptables -L
 
Old 08-14-2003, 04:02 PM   #20
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
[root@localhost bruce]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
172.26.131.0 0.0.0.0 255.255.255.0 U 0 0 0 ippp0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth0
127.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 lo
0.0.0.0 172.26.131.160 0.0.0.0 UG 0 0 0 ippp0
[root@localhost bruce]# iptables -L
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy ACCEPT)
target prot opt source destination

Chain OUTPUT (policy ACCEPT)
target prot opt source destination


Does that help
 
Old 08-14-2003, 04:16 PM   #21
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
Yes, it does.
Make sure you do the following and you are root.

Edit the file /etc/sysctl.conf and on the line net.ipv4.ip_forward = 0, change 0 to 1.
Code:
# Controls IP packet forwarding
net.ipv4.ip_forward = 1
In order for the changes to take effect,
at the command line, type: service network restart

Now you need to setup IP forwarding and Masquerading.
First, you need to flush the old rules.
So open a console window and at the command line, type:
Code:
service iptables stop
service iptables save
The following commands will create new rules for your system.
Code:
iptables -P INPUT ACCEPT
iptables -P OUTPUT ACCEPT
iptables -P FORWARD DROP

iptables -A FORWARD -i ippp0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT
iptables -A FORWARD -i eth0 -o ippp0 -j ACCEPT

iptables -t nat -A POSTROUTING -o ippp0 -j MASQUERADE
To save iptables modifications, at the command line, type: service iptables save.
IPtable rules are located in the /etc/sysconfig/iptables file.

Don't forget to start iptables, type: service iptables start

Last edited by Mathieu; 08-18-2003 at 02:14 PM.
 
Old 08-16-2003, 04:55 PM   #22
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
i set all that up....and its still not working :'(
 
Old 08-17-2003, 10:39 AM   #23
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
I failed ...
and I am running out of ideas.

Make sure the Gateway on your sister's PC is the IP of your PC.

I will assume that you can connect to the internet using your PC.
And that both computers can ping each other.
 
Old 08-17-2003, 11:17 AM   #24
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
gateways done and yes and yes
 
Old 08-17-2003, 11:18 AM   #25
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Can you ping an external IP such as

ping 64.179.4.146

If you can does your sisters pc have any firewall rules on it created using the internet crushing Lokkit that redhat uses and hates DNS

iptables --list

Or maybe take a step back, deep breathe and start again - you'll get there eventually.
 
Old 08-17-2003, 01:32 PM   #26
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
lol k ill have a go wen ive finished beating both computers with a stick
 
Old 08-18-2003, 01:30 PM   #27
Mathieu
Senior Member
 
Registered: Feb 2001
Location: Montreal, Quebec, Canada
Distribution: RedHat, Fedora, CentOS, SUSE
Posts: 1,403

Rep: Reputation: 46
brucedjones, I just noticed something in my post.

Did you start iptables ?

At the command line, type: chkconfig --list iptables
3 and 5 should be ON.
If they are not ON, type: chkconfig --level 35 iptables on

To start iptables manually, type: service iptables start
 
Old 08-18-2003, 01:45 PM   #28
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
3 and 5 are on and this is the output of iptables --list
[root@localhost bruce]# iptables --list
Chain INPUT (policy ACCEPT)
target prot opt source destination

Chain FORWARD (policy DROP)
target prot opt source destination
ACCEPT all -- anywhere anywhere state RELATED,ESTABLISHED
ACCEPT all -- anywhere anywhere

Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost bruce]#
 
Old 08-18-2003, 01:49 PM   #29
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
that console output was for my pc whoops ill go and check it on my pc
 
Old 08-18-2003, 02:08 PM   #30
brucedjones
Member
 
Registered: Aug 2003
Posts: 35

Original Poster
Rep: Reputation: 15
ok my sisters computer is as follows. i can ping 64.179.4.146, i turned OFF lokkit and i did iptables --list as root and it showed that there was no INPUT, FORWARD or OUTPUT......does that help
 
  


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
internet connection sharing between two computers using crossover cable farnell_mark Debian 1 06-04-2005 04:44 PM
Internet sharing XP -> red hat 7.3 elche Linux - Wireless Networking 2 12-17-2003 11:55 AM
Internet connection sharing with Red Hat 9 CatSC Linux - Networking 0 11-06-2003 07:52 AM
Red Hat/XP Connection sharing NickB Linux - Networking 2 08-06-2003 08:24 AM
Connection Sharing on red hat 9 pinkmasta Linux - Networking 3 07-30-2003 06:36 AM

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

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