The FreeBSD Diary

The FreeBSD Diary (TM)

Providing practical examples since 1998

If you buy from Amazon USA, please support us by using this link.
[ HOME | TOPICS | INDEX | WEB RESOURCES | BOOKS | CONTRIBUTE | SEARCH | FEEDBACK | FAQ | FORUMS ]
FreeBSD Support
 New Topic  |  Go to Top  |  Go to Topic  |  Search  |  Log In   Newer Topic  |  Older Topic 
 Can't get natd to work with ppp
Author: Tirone 
Date:   12-12-00 13:47

This is my problem:

I've read man natd, FreeBSD handbook's, FreeBSD tutorials, every possible thing about setting up natd.

I compiled a new kernel and made all the changes the tutorials told to do. The fact is that, from my win2k box i can start the ppp connection on my FreeBSD, and I can even get the DNS resolved (i.e. my win2k starts my internet connection and pings, for ex., www.av.com, through the FreeBSD box). But that's all it does. No packet transfer. Nothing. My win2k browser gets Connecting xxx.xxx.xxx.xxx on status bar with the right ip numbers for the correct web servers, and finally i get a dns error message.

I started ppp with ppp -auto -nat demand and natd with natd -interface tun0 (Since I always get an error when i try to bind nat to cuaa0 where my external ISDN is.) What should I do ?

Tirone

Reply To This Message
 
 Re: Can't get natd to work with ppp
Author: Dan Langille 
Date:   12-12-00 23:21

Why don't you use the -nat option (was -alias) on ppp instead of using natd?

Reply To This Message
 
 Re: Can't get natd to work with ppp
Author: Tirone 
Date:   13-12-00 17:09

The fact is I tried, but there was no effect. I had the same problem - my win2k box got dns from the FreeBSD box, but there was no packet forwarding. Don't know if it was because I had not recompiled the kernel with IP... options. Anyway can you help ?

Tirone

Reply To This Message
 
 Re: Can't get natd to work with ppp
Author: Dan Langille 
Date:   13-12-00 19:48

read <a href="http://freebsddiary.org/ppp.html">http://freebsddiary.org/ppp.html</a>?

Reply To This Message
 
 Re: Can't get natd to work with ppp
Author: Tirone 
Date:   14-12-00 02:25

Well, i read it and guess what ?! I still can put it to work. Allright, from the beginning:

I just instaled FreeBSD 4.2 again the fast way (for the impacient), normal Kernel, minimal stuff. Configured ppp. conf and ppp.linkup put gateway_enable="YES" in rc.conf and started ppp after reboot with ppp -auto -nat demand. Still the same. My windows box makes my bsd box connect, i get a connecting to xxx.xxx.xxx.xxx on my browser (all IP's are right), i can ping outside my LAN from my windows box (?!) (for example ping www.av.com works fine) but i just can't get a damn packet to come to my windows box. This is, if NAT is working it's not doing anything at all.

My question now is:

Do I have to configure anything else for ppp with NAT to work ?
This is because i wan't to get ride off a MS Proxy 2.0 on a winnt box.

Help !

Tirone

Reply To This Message
 Forum List  |  Threaded View   Newer Topic  |  Older Topic 


 Forum List  |  Need a Login? Register Here 
 User Login
 User Name:
 Password:
 Remember my login:
   
 Forgot Your Password?
Enter your email address or user name below and a new password will be sent to the email address associated with your profile.
How to get the most out of the forum

phorum.org