Solved

diald on a IPMASQ box

Posted on 1997-07-12
4
272 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
0
Comment
Question by:r00t071297
  • 2
  • 2
4 Comments
 
LVL 3

Expert Comment

by:sauron
ID: 1585431
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???
0
 

Author Comment

by:r00t071297
ID: 1585432
Edited text of question
0
 
LVL 3

Accepted Solution

by:
sauron earned 200 total points
ID: 1585433
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....
0
 

Author Comment

by:r00t071297
ID: 1585434
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:~#
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I have seen several blogs and forum entries elsewhere state that because NTFS volumes do not support linux ownership or permissions, they cannot be used for anonymous ftp upload through the vsftpd program.   IT can be done and here's how to get i…
Note: for this to work properly you need to use a Cross-Over network cable. 1. Connect both servers S1 and S2 on the second network slots respectively. Note that you can use the 1st slots but usually these would be occupied by the Service Provide…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
Polish reports in Access so they look terrific. Take yourself to another level. Equations, Back Color, Alternate Back Color. Write easy VBA Code. Tighten space to use less pages. Launch report from a menu, considering criteria only when it is filled…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now