We help IT Professionals succeed at work.

diald on a IPMASQ box

r00t071297
r00t071297 asked
on
Medium Priority
356 Views
Last Modified: 2012-05-04
Greetings,
When the ppp-on script is used IPMASQ, DNS, SAMBA, and all other services work fine. However when using diald IP Masquerading will not work, route will hang, ping will not work. I think that there is a problem with my routing and sl0, but i'm not sure. My config files can
be found at:

http://phoenix.common.net/~gtivr6/problem.html

(the url should work now)

Any help would be greatly appreciated.

karl rossing
gtivr6@phoenix.common.net
Comment
Watch Question

Commented:
I can't get a response from your web site, so I can't help much really. Maybe you should post your config files here too???

Author

Commented:
Edited text of question
Commented:
Ok, with diald, your routing table is like this...

parkade:~# route -n
Kernel IP routing table
Destination  Gateway    Genmask         Flags  Use Iface
192.168.0.2  0.0.0.0    255.255.255.255 UH      0  sl0
192.168.1.0  0.0.0.0    255.255.255.0   U       34 eth0
127.0.0.0    0.0.0.0    255.0.0.0       U       24 lo
0.0.0.0      0.0.0.0    0.0.0.0         U       2  sl0

You have a network route to 192.168.1.0 (second entry) on eth0, and local route on lo. These are both fine. Your first entry is a
host route on sl0 to 192.168.0.2, and your default route also goes via sl0. So, all your packets destined for networks other than 192,168.1.0 are trying to go via 192.168.0.2, which is a private IP address, so I would say is almost certainly wrong. This routing table is the one you have labeled as with diald - If this is, as you say, the state of the routing table when the link is up, your problem is that diald is not chanigng the routing table correctly when it is bringing the link up, as there are no routes using ppp0.

So, looking at your ppp-on routing table:-

parkade:~# route -n
Kernel IP routing table
Destination   Gateway      Genmask         Flags  Use Iface
206.45.227.5  0.0.0.0      255.255.255.255 UH     0   ppp0
192.168.1.0   0.0.0.0      255.255.255.0   U      28  eth0
127.0.0.0     0.0.0.0      255.0.0.0       U      23  lo
0.0.0.0       206.45.227.5 0.0.0.0         UG     22  ppp0

Ok, you have the same local net route and loopback route, but your host route is now to 206.45.227.5, which I assume is a gateway at your ISP. Your default route now uses ppp0, and goes through this gateway, so it all works.

Looking at the rest of the info on your web page, your diald.conf contains:-

local 192.168.0.1
remote 192.168.0.2
netmask 255.255.0.0

You need to change the remote line - if your ISP always gives you the same gateway address, you can try just changing it to 206.45.227.5, and that should work. You can also add 'debug 31' to your diald.conf, this will log loads of info to your syslog file - just remember to turn it off when you're finished.

I hope this sorts it for you....

Not the solution you were looking for? Getting a personalized solution is easy.

Ask the Experts

Author

Commented:
1) I killed named...
2) set "remote 206.45.227.5" in /etc/diald.conf
3) ping will just do:
    parkade:~# ping 204.112.20.11
    PING 204.112.20.11 (204.112.20.11): 56 data bytes
4) Something is a bit buggy. ACK!






parkade:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
206.45.227.5    *               255.255.255.255 UH    1      0        0 sl0
du.net          *               255.255.255.0   U     0      0       36 eth0
localnet        *               255.0.0.0       U     0      0       19 lo
default         *               0.0.0.0         U     1      0        1 sl0
parkade:~# ifconfig
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:222 errors:0 dropped:0 overruns:0
          TX packets:222 errors:0 dropped:0 overruns:0

eth0      Link encap:10Mbps Ethernet  HWaddr 00:00:C0:B1:AC:41
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3967 errors:0 dropped:0 overruns:0
          TX packets:3235 errors:0 dropped:0 overruns:0
          Interrupt:10 Base address:0x310 Memory:cc000-d0000

ppp0      Link encap:Point-Point Protocol  
          inet addr:206.45.227.222  P-t-P:206.45.227.5  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:6 errors:0 dropped:0 overruns:0
          TX packets:7 errors:0 dropped:0 overruns:0

sl0       Link encap:Serial Line IP  
          inet addr:192.168.0.1  P-t-P:206.45.227.5  Mask:0.0.0.0
          UP POINTOPOINT RUNNING  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0
          TX packets:28 errors:0 dropped:0 overruns:0

parkade:~#
Access more of Experts Exchange with a free account
Thanks for using Experts Exchange.

Create a free account to continue.

Limited access with a free account allows you to:

  • View three pieces of content (articles, solutions, posts, and videos)
  • Ask the experts questions (counted toward content limit)
  • Customize your dashboard and profile

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.