[pptp-server] Several questions

jbodnar at team-linux.com jbodnar at team-linux.com
Wed Jul 12 15:53:00 CDT 2000


Hi,

I'm trying to use PoPToP with the linux pptp client and I have a few questions.

First, I don't quite understand what localip and remoteip should be set to in
/etc/pptpd.conf

I'm running PoPToP on a double nic'd box. The external interface is
207.207.30.130. The nic on the inside is 10.10.10.1. I've designated the range
10.10.10.150-199 as usable for our VPN.

So, right now my /etc/pptp.conf file looks like:

speed 115200
localip 207.207.30.130
remoteip 10.10.10.150-199

Is that correct?


Next question. The box PoPToP is running on is doing masq/nat so our internal
network is walled off. I've read several messages in the mailing list about
PoPToP and firewalls and forewarding but I'm not sure if it applies in my
situation. Does it? And, if so, what do I need to do?

Finally, despite all of the above, I think I'm getting a successful PPP
connection with PoPToP as shown below:

$ sudo pptp 207.207.30.130 debug name jbodnar
(unknown)[9194]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]: Client
connection established.
(unknown)[9194]: log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]: Outgoing call
established.

If I do an ifconfig I have a ppp interface present on the client:



[jbodnar at mrmagoo jbodnar]$ ifconfig
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:10.10.10.151  P-t-P:207.207.30.130  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:9 errors:0 dropped:0 overruns:0 frame:0
          TX packets:9 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

and the server:

[jbodnar at mail jbodnar]$ /sbin/ifconfig
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:207.207.30.130  P-t-P:10.10.10.151  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:10 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:10 

Now, back on the client I tried:

$ sudo route add -net 10.10.10.0 netmask 255.255.255.0 gw 207.207.30.130

but even after that I can't ping anything on the 10.10.10.0 network.

Is this due to possible mistakes with setting up pptp or firewalling? Or am I
doing something wrong with routing on the client side?

Thank you.


-- 
Jason Bodnar + jbodnar at team-linux.com + Team Linux

I couldn't very well chop your hand off and bring it to the store,
could I?

                -- Homer Simpson
                   Life on the Fast Lane




More information about the pptp-server mailing list