[pptp-server] Information

Raffaele Pellicciotta pellicciotta at coritel.it
Tue Nov 9 04:55:29 CST 1999


Hi, I am trying to install tunnel client on my lan.
I have a linux machine A with a private address 192.168.200.2 and a linux
machine B with
two cards: one 192.168.40.2 (private address)and one 193.205.242.52(public
address) towards Internet . ( Redhat 6.0 kernel 2.2.12)

Ifconfig of my linux machine B is:

eth0      Link encap:Ethernet  HWaddr 00:C0:F0:3B:EC:53
          inet addr:193.205.242.52  Bcast:193.205.242.127
Mask:255.255.255.128
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:93458 errors:1 dropped:0 overruns:0 frame:1
          TX packets:137938 errors:0 dropped:0 overruns:0 carrier:0
          collisions:12918 txqueuelen:100
          Interrupt:5 Base address:0xb800

eth1      Link encap:Ethernet  HWaddr 00:C0:F0:3C:04:7F
          inet addr:192.168.40.2  Bcast:192.168.40.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:37042 errors:0 dropped:0 overruns:0 frame:0
          TX packets:36701 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xb400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:4 errors:0 dropped:0 overruns:0 frame:0
          TX packets:4 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
Kernel IP routing table machine B
Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.40.2    0.0.0.0         255.255.255.255 UH    0      0        0 eth1
193.205.242.52  0.0.0.0         255.255.255.255 UH    0      0        0 eth0
193.205.242.0   0.0.0.0         255.255.255.128 U     0      0        0 eth0
193.205.242.128 193.205.242.38  255.255.255.128 UG    0      0        0 eth0
192.168.40.0    0.0.0.0         255.255.255.0   U     0      0        0 eth1
192.168.0.0     192.168.40.1    255.255.0.0     UG    0      0        0 eth1
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         193.205.242.100 0.0.0.0         UG    0      0        0 eth0

IFCONFIG of my linux machine A is:

eth0      Link encap:Ethernet  HWaddr 00:C0:F0:3B:AD:7B
          inet addr:192.168.200.2  Bcast:192.168.200.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2363 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1213 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:100
          Interrupt:10 Base address:0xe400

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:3924  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0

Kernel IP routing table machine A

Destination     Gateway         Genmask         Flags Metric Ref    Use
Iface
192.168.200.2   0.0.0.0         255.255.255.255 UH    0      0        0 eth0
192.168.200.0   0.0.0.0         255.255.255.0   U     0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
0.0.0.0         192.168.200.1   0.0.0.0         UG    0      0        0 eth0


On machine A I have installed my linux pptp client pptp-linux-1.0.2 and on
my machine B I have
installed pptp server pptpd-1.0.0.
On server B I have:
file /etc/ppp/options
        debug
        name "elle" ( it is the name of my Tunnel server)
        auth
        require-chap
        proxyarp
file /etc/pptpd.conf
        speed    115200
        localip    193.205.242.80 ( a public address which I own)
        remoteip    193.205.242.81( a public address which I own)
file /etc/ppp/chap-secrets
        "kate"    "elle"    root    *
    ( kate is the name of my client)
When I am on my server B I run these:
1. killall syslogd
2. /usr/sbin/syslogd
3. /usr/local/sbin/pptpd

At this point on my client A I run:
    ppptp elle (elle is my tunnel server B)
the system B (tunnel client) answer is:

(unknown)[628]:log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:531]:Client
connection established
(unknown)[628]:log[pptp_dispatch_ctrl_packet:pptp_ctrl.c:637]:Outgoing call
established

On my tunnel server the system answer is:
No free connection slots or IPs available -no more clients can connect

Is it now the tunnel right established?
At this point I think I can run all applications from my private LAN towards
Internet through tunnel ( for example ping) but no packets go out from my
machine B!!!
Can you help me?
Is right this setup?
Have I to add some particular route on my server or on my client?


Thanks a lot Raffaele Pellicciotta







More information about the pptp-server mailing list