LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 12-02-2004, 08:03 AM   #1
switch007
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Rep: Reputation: 0
Gentoo/iptables/ppp0 DNS Issues


PC2 is the gateway, gentoo, with a speedtouch adsl modem (ppp0) and eth0 connected to PC1, windows xp.

PC1 = 192.168.0.1
PC2 = 192.168.0.2

PC1 has gateway set as PC2, i can ping IP's but when i try to ping domain name it times out, ive got no idea what it would be. Is iptables on PC2 blocking dns resolution requests or something?

Help!

Thanks

Last edited by switch007; 12-02-2004 at 08:05 AM.
 
Old 12-02-2004, 08:20 AM   #2
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
on client side, try to change /etc/resolv.conf like this:
nameserver ISP-DNS-IP-1
nameserver ISP-DNS-IP-2

if it stil fails to resolve domain names, post your iptables script or the output of "iptables -nvL" and "iptables -t nat -nvL"

good luck.
 
Old 12-02-2004, 08:32 AM   #3
switch007
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Original Poster
Rep: Reputation: 0
The nameservers are in resolv.conf already, this is the output:

Code:
Chain INPUT (policy ACCEPT 41020 packets, 4795K bytes)
 pkts bytes target     prot opt in     out     source               destination 

Chain FORWARD (policy ACCEPT 112 packets, 16324 bytes)
 pkts bytes target     prot opt in     out     source               destination 

Chain OUTPUT (policy ACCEPT 42699 packets, 7727K bytes)
 pkts bytes target     prot opt in     out     source               destinationp
and

Code:
Chain PREROUTING (policy ACCEPT 468 packets, 30484 bytes)
 pkts bytes target     prot opt in     out     source               destination 

Chain POSTROUTING (policy ACCEPT 50 packets, 3205 bytes)
 pkts bytes target     prot opt in     out     source               destination 
    8   464 MASQUERADE  all  --  *      *       192.168.0.1          0.0.0.0/0  
   18  1186 MASQUERADE  all  --  *      ppp0    0.0.0.0/0            0.0.0.0/0  

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination
Thanks

Note: this is a gentoo box with barely anything on it (i installed cron, slocate, openssh, speedtouch, vi, iptables, ipchains)

Last edited by switch007; 12-02-2004 at 08:47 AM.
 
Old 12-02-2004, 08:53 AM   #4
maxut
Senior Member
 
Registered: May 2003
Location: istanbul
Distribution: debian - redhat - others
Posts: 1,188

Rep: Reputation: 50
Quote:
Originally posted by switch007

Code:
Chain POSTROUTING (policy ACCEPT 50 packets, 3205 bytes)
 pkts bytes target     prot opt in     out     source               destination 
    8   464 MASQUERADE  all  --  *      *       192.168.0.1          0.0.0.0/0  
   18  1186 MASQUERADE  all  --  *      ppp0    0.0.0.0/0            0.0.0.0/0
try followings.
Code:
iptables -t nat -F
iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -o ppp0 -j MASQUERADE
BTW: u dont have a secure firewall. u can make it more secure by using the script generator at www.iptables-script.dk

good luck
 
Old 12-02-2004, 08:57 AM   #5
switch007
LQ Newbie
 
Registered: Dec 2004
Posts: 18

Original Poster
Rep: Reputation: 0
That still doesnt work
 
  


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
ppp0 - eth0 without iptables not brctl? jago25_98 Linux - Networking 1 04-20-2010 04:25 AM
eth1 and ppp0, need to send UDP packets through ppp0 smhs Linux - Networking 2 07-12-2005 08:54 AM
Endless Loop: ppp0 Unregister Netdevice: waiting for ppp0 to be free. oberon-ken-obi Linux - Networking 1 07-20-2004 11:04 PM
lame dns servers etc and general dns issues suse_linux9.1 Linux - Networking 3 06-01-2004 01:50 PM
gentoo file manager install issues (not Gentoo) windeath Fedora 2 03-01-2004 07:17 PM

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

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