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 10-28-2003, 04:54 AM   #16
RickyJaff
Member
 
Registered: Oct 2003
Distribution: RedHaT, ELX, DragonLinux, Knoppix.
Posts: 89

Rep: Reputation: 15

One thing...
Edit the following files..
/etc/sysctl.conf

In this file change the value of "net.ipv4.ip_forward" from 0 to 1
and also "net.ipv4.conf.default.rp_filter" 0 to 1
The above might help u if u have already not done that..

Also make sure that u r using correct dns server of your ISP because in windows ICS if you entered wrong DNS address- it works but take little long to resolve but if u have provided in wrong dns in LInux it never works..
I don't remember but same thing was with one of my friend a long time ago.. and at the end we found that it was only because of wrong DNS server address.

To know wht is ur exact dns server check ur /etc/resolv.conf file while u r connected to net and there entry "namerserver" will tell u the dns addres of your ISP.
 
Old 10-29-2003, 01:36 PM   #17
powerchord81
LQ Newbie
 
Registered: Oct 2003
Location: England, UK
Distribution: Mandrake 9.2rc2
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by Blindsight
You can ping out fine from the linux box? Try pinging google from linux.

Also, when pinging from windows, try 'ping -t -w 5000 www.google.com' that way it'll wait 5 seconds before timing out. I have to do that from my network because I'm deployed in the middle of nowhere and it's about 2 seconds from here to anywhere else on the internet, heh.

If your DNS is pointed to your linux box, the windows machine may not be getting out to the internet at all, it may just be getting dns resolution from your linux box.

try traceroute -n www.google.com from the linux box and see how far it gets out, then try tracert -d www.google.com from your windows box and see how far it gets.

This'll aid in finding an answer, and keep the ball rolling..
Thanks for trying to help.

I can ping google from linux no problem.

And tried the ping -t -w 5000 command, but it still times out.

I've tried it without the linux box as a primary dns and with... either way it times out.

tracert from linux to google works fine. From windows it times out after getting to the linux gateway (192.168.1.1)
 
Old 10-29-2003, 01:40 PM   #18
powerchord81
LQ Newbie
 
Registered: Oct 2003
Location: England, UK
Distribution: Mandrake 9.2rc2
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by RickyJaff
One thing...
Edit the following files..
/etc/sysctl.conf

In this file change the value of "net.ipv4.ip_forward" from 0 to 1
and also "net.ipv4.conf.default.rp_filter" 0 to 1
The above might help u if u have already not done that..

Also make sure that u r using correct dns server of your ISP because in windows ICS if you entered wrong DNS address- it works but take little long to resolve but if u have provided in wrong dns in LInux it never works..
I don't remember but same thing was with one of my friend a long time ago.. and at the end we found that it was only because of wrong DNS server address.

To know wht is ur exact dns server check ur /etc/resolv.conf file while u r connected to net and there entry "namerserver" will tell u the dns addres of your ISP.
Hi, I've checked my /etc/sysctl.conf file and those values are already set to 1.

And i've checked the DNS addresses are right, and they exactly match the ones in /etc/resolv.conf and /etc/ppp/resolv.conf

I've completely run out of ideas now.
 
Old 10-30-2003, 02:53 AM   #19
joseph
Member
 
Registered: Jun 2003
Location: Batam
Distribution: Ubuntu 10 And Linux Mint
Posts: 414

Rep: Reputation: 30
can you post up your iptables scripts?
 
Old 10-30-2003, 06:35 AM   #20
powerchord81
LQ Newbie
 
Registered: Oct 2003
Location: England, UK
Distribution: Mandrake 9.2rc2
Posts: 14

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by joseph
can you post up your iptables scripts?
#!/bin/sh

IPTABLES=sbin/iptables

iptables --flush
iptables --table nat --flush

iptables --table nat --append POSTROUTING --out-interface ppp0 -j MASQUERADE
iptables --append FORWARD --in-interface eth0 -j ACCEPT

echo 1 > /proc/sys/net/ipv4/ip_forward
 
Old 10-30-2003, 06:58 AM   #21
collen
Member
 
Registered: Jun 2003
Location: /
Distribution: Fedora/Debian
Posts: 86

Rep: Reputation: 15
Hmm, i got the same problem.
and i'm running a redhat 9 distro.

i can resolve hostnames, but a ping or traceroute timesout..
also i tryed the same things as noted in this forum-topic.. no resuld..

somehow, the data get's stuck .. on it's way.. (or lost)
so we keep on testing...

Collen
 
Old 10-31-2003, 09:12 AM   #22
powerchord81
LQ Newbie
 
Registered: Oct 2003
Location: England, UK
Distribution: Mandrake 9.2rc2
Posts: 14

Original Poster
Rep: Reputation: 0
Unhappy

any more ideas?
 
Old 10-31-2003, 09:18 AM   #23
collen
Member
 
Registered: Jun 2003
Location: /
Distribution: Fedora/Debian
Posts: 86

Rep: Reputation: 15
well i got mine working today..

i used the iptables-script at the beginning of this list.
and a adjusted my network start-stop script.
coz every time i restarted my network it stopped
forwarding.. (and that was my prob)

so you might look at your init.d/network script and
find some parameter about the forwarding..!

sorry.. that was all for me.. rest works ok dokay now..

Collen
 
  


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
iptables not working selfnet Linux - Networking 2 05-02-2005 11:23 AM
Iptables is not working under RH 3.0 aronnok Linux - Security 3 12-25-2004 05:40 PM
iptables not working ashfaq Linux - Software 1 03-24-2004 05:02 AM
IPtables: almost working but... psychoholic Linux - Networking 4 09-11-2003 08:19 AM
Iptables not working.... tinaa Linux - Security 1 06-25-2003 01:40 PM

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

All times are GMT -5. The time now is 05:55 PM.

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