OpenWrt Forum Archive

Topic: PPTPClientHowto outdated? - PPTP configuration for Austrian ISP

The content of this topic has been archived on 3 Apr 2018. There are no obvious gaps in this topic, but there may still be some posts missing at the end.

When looking for information about how to get a pptp connection to my ISP here in Austria I found the PPTPClientHowto (http://wiki.openwrt.org/PPTPClientHowto). But is creating all the scripts described in this document really required (at least for whiterussian rc3)? After having a look at these nice ifup and ifup.pptp scripts in rc3 (and the documentation for pppoe, http://wiki.openwrt.org/OpenWrtDocs/Con … 9082128d42) I got my pptp connection just by changing some nvram values, in particular

nvram set wan_proto=pptp
nvram set wan_ifname=ppp0
nvram set pptp_ifname=vlan1
nvram set pptp_proto=static
nvram set pptp_server_ip=10.0.0.138
nvram set ppp_username=xxx
nvram set ppp_passwd=xxx
nvram set ppp_redialperiod=30
nvram set ppp_idletime=5
nvram set ppp_mtu=1492
nvram set wan_ipaddr=10.0.0.140
nvram set wan_netmask=255.255.255.0

after

ifup wan

everything worked great!

Is there a reason for using the PPTPClientHowto (if you only need a connection to the ISP without encryption...), is it outdated or not, should it be changed, or should i just be happy about my working connection?

Christian

bio wrote:

Is there a reason for using the PPTPClientHowto (if you only need a connection to the ISP without encryption...), is it outdated or not, should it be changed, or should i just be happy about my working connection?Christian

It could be that it's obsolete. Can you add the NVRAM settings you used to the FAQ at 3.15. How do I configure PPTP for Internet access? please?

Maybe make a note there as well that nbd has some PPTP optimized snapshot images (with preinstalled PPTP packages) ready in his download directory (nbd's snapshot images are builds from the stable White Russian SVN branch).

EDIT: The FAQ is updated! Please report if it works.

(Last edited by olli_04 on 4 Nov 2005, 18:01)

Hi

I'm a wrt54g v2.2 owner and I'm using it to get internet from my wireless internet provider. I access my provider thru pptp and they use mppe-128 encryption and mppc compression. Unfortunatly I having difficulty to setup the pptp connection to my provider with openwrt and my wrt. sad I hope that you can help me out a bit with. smile Now i'm connecting to the pptp server from windows but I like to setup openwrt on my wrt so that i can connect from wrt and use the firewall.

Here are the spec. from the provider and how i configured openwrt.

The pptp server IP is 213.244.228.46
The wireless interface (eth1) got's the IP/gatway/DNS over DHCP.

I installed the above mentioned pptp optimized wrt54g-jffs2 image.
Using the ClientModeHowTo i setup the client routed mode.
nvram set wl0_mode=sta
nvram set wl0_ssid=suonline
nvram set lan_ifname=br0
nvram set lan_ifnames=vlan0
nvram set wan_ifname=eth1
nvram set lan_ipaddr=192.168.1.1
nvram set lan_proto=static
nvram set wan_proto=dhcp
nvram commit
reboot

This works, and after I rebooted my eth1 got the IP/Gatway/DNS via DHCP.

I installed the wl package.
As my provider uses mppe i installed the following packages
kmod-crypto_2.4.30-brcm-2_mipsel.ipk
kmod-mppe_2.4.30-brcm-2_mipsel.ipk

and following the pptpHowTo i created the /etc/modules.d/20-pptp file and put in the required module names.
This also works, using lsmod i can see all the modules loaded.

I modified the /etc/ppp/options.pptp file and added the line
mppe required
mppc
replacedefaultroute

from the faq (pptp section) i did the follwoing:
if i do this then eth1 will not get the IP via DHCP so i left as dhcp-> nvram set wan_proto=pptp
nvram set wan_ifname=ppp0
nvram set pptp_ifname=eth1
i changed this to dhcp as my provider after establishing the pptp dynamicly assigns me the IP -> nvram set pptp_proto=static
nvram set pptp_server_ip=213.244.228.46
nvram set ppp_username=<your_isp_login>
nvram set ppp_passwd=<your_isp_password>
nvram set ppp_redialperiod=30
nvram set ppp_idletime=5
nvram set ppp_mtu=1492 # The MTU of your ISP
not working this way so left out -> nvram set wan_ipaddr=<your_wan_ip>
not working this way so left out -> nvram set wan_netmask=255.255.255.0
nvram commit

after i did a reboot according the logread the connection is established but I don't have access to internet.

Can you please see if I did somthing wrong, or what else should I do? Maybe the firewall is blocking the access? Do I need to add somthing to the firewall rules?
Unfortunatly I can't c/p the logs as to be able to use internet I reflashed dd-wrt but if it will help I will do all again and save the logs.

Thx

Habos wrote:

[..]
after i did a reboot according the logread the connection is established but I don't have access to internet.

Can you please see if I did somthing wrong, or what else should I do? Maybe the firewall is blocking the access? Do I need to add somthing to the firewall rules?
Unfortunatly I can't c/p the logs as to be able to use internet I reflashed dd-wrt but if it will help I will do all again and save the logs.

Huh, sorry can't help you on with PPTP configuration. I have no chance to test PPTP here.

Maybe it helps when you get in contact with the author of this thread or contact the author of the PPTP Client Howto.

(Last edited by olli_04 on 6 Nov 2005, 14:01)

Hi Habos,

Habos wrote:

from the faq (pptp section) i did the follwoing:
if i do this then eth1 will not get the IP via DHCP so i left as dhcp-> nvram set wan_proto=pptp

IMHO no, you should set wan_proto=pptp, the network scripts in /etc/init.d/S40network and /sbin/ifup will then call /sbin/ifup.pptp for the wan interface, which will first configure eth1 with dhcp (for this set pptp_proto=dhcp) and then run pptp.
with wan_proto=dhcp the pptp connection will not be established.

Habos wrote:

i changed this to dhcp as my provider after establishing the pptp dynamicly assigns me the IP -> nvram set pptp_proto=static

this is correct.

so

nvram set wan_proto=pptp
nvram set pptp_proto=dhcp

should work for you.

good luck, christian

thx for your answer, will try and post the results smile

Hi

Here are my results, unfortunatly didn't worked out sad
The pptp is established according the log but can't access the internet also no ping.
I can't even ping the pptp server.

Here exactly how I did it:

Did the routed client mode setup from the howto

nvram set wl0_mode=sta
nvram set lan_ifname=br0
nvram set lan_ifnames=vlan0
nvram set wan_ifname=eth1
nvram set lan_ipaddr=192.168.1.1
nvram set lan_proto=static
nvram set wan_proto=dhcp
nvram set wl0_ssid=suonline
nvram set wl0_channel=9
nvram commit
reboot

after this eth1 get's IP over dhcp and i can establish my pptp connection from windows.

after this installed
wl
kmod-crypto_2.4.30-brcm-2_mipsel.ipk
kmod-mppe_2.4.30-brcm-2_mipsel.ipk

created /etc/modules.d/20-pptp with following

# /etc/modules.d/20-pptp
arc4
sha1
ip_gre
slhc
ppp_generic
ppp_mppe_mppc
ppp_async

rebooted and the required modules are loaded

Module                  Size  Used by    Tainted: P
ppp_async               7948   0 (unused)
ppp_mppe_mppc          13412   0 (unused)
ppp_generic            21892   0 [ppp_async ppp_mppe_mppc]
slhc                    6352   0 [ppp_generic]
ip_gre                  8960   0
sha1                    7888   0 (unused)
arc4                     528   0 (unused)
wlcompat               14688   0 (unused)
wl                    423640   0 (unused)
et                     32064   0 (unused)
diag                    2560   0 (unused)

edited /etc/ppp/options.pptp

lock
noauth
nobsdcomp
nodeflate
idle 0
defaultroute
mppe required
mppc
persist
refuse-eap

done the following

nvram set wan_proto=pptp
nvram set wan_ifname=ppp0
nvram set pptp_ifname=eth1
nvram set pptp_proto=dhcp
nvram set pptp_server_ip=213.244.228.46
nvram set ppp_username=my_username
nvram set ppp_passwd=my_password
nvram set ppp_redialperiod=30
nvram set ppp_idletime=5
nvram set ppp_mtu=1492
nvram commit
reboot

after reboot i have following

root@OpenWrt:~# ifconfig
br0       Link encap:Ethernet  HWaddr 00:13:10:3F:A1:4C
          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:1620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1954 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:138644 (135.3 KiB)  TX bytes:368192 (359.5 KiB)

eth0      Link encap:Ethernet  HWaddr 00:13:10:3F:A1:4C
          UP BROADCAST RUNNING PROMISC MULTICAST  MTU:1500  Metric:1
          RX packets:1620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1954 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:174284 (170.1 KiB)  TX bytes:376008 (367.1 KiB)
          Interrupt:5 Base address:0x2000

eth1      Link encap:Ethernet  HWaddr 00:13:10:3F:A1:4E
          inet addr:10.10.100.167  Bcast:10.10.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:3094 errors:0 dropped:0 overruns:0 frame:4181
          TX packets:239 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:294632 (287.7 KiB)  TX bytes:31182 (30.4 KiB)
          Interrupt:4 Base address:0x1000

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:3 errors:0 dropped:0 overruns:0 frame:0
          TX packets:3 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:228 (228.0 B)  TX bytes:228 (228.0 B)

ppp0      Link encap:Point-Point Protocol
          inet addr:213.244.230.157  P-t-P:213.244.228.46  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:15 errors:0 dropped:0 overruns:0 frame:0
          TX packets:41369 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:1002 (1002.0 B)  TX bytes:17005783 (16.2 MiB)

vlan0     Link encap:Ethernet  HWaddr 00:13:10:3F:A1:4C
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1620 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1954 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:145124 (141.7 KiB)  TX bytes:376008 (367.1 KiB)

according this the pptp connection is established

root@OpenWrt:~# route
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
213.244.228.46  *               255.255.255.255 UH    0      0        0 ppp0
10.10.100.0     *               255.255.255.0   U     0      0        0 eth1
192.168.1.0     *               255.255.255.0   U     0      0        0 br0
default         wireless.suonli 0.0.0.0         UG    0      0        0 ppp0

the routing table also looks ok

root@OpenWrt:~# wl status
SSID: "suonline"
Mode: Managed   RSSI: -75 dBm   noise: -97 dBm  Channel: 9
BSSID: 00:02:6F:31:83:92        Capability: ESS
Supported Rates: [ 1(b) 2(b) 5.5(b) 11(b) ]

signal also ok

here is my logread:

Jan  1 00:00:04 (none) syslog.info syslogd started: BusyBox v1.00 (2005.10.23-21:18+0000)
Jan  1 00:00:04 (none) kern.notice kernel: klogd started: BusyBox v1.00 (2005.10.23-21:18+0000)
Jan  1 00:00:04 (none) kern.warn kernel: CPU revision is: 00029007
Jan  1 00:00:04 (none) kern.warn kernel: Primary instruction cache 8kB, physically tagged, 2-way, linesize 16 bytes.
Jan  1 00:00:04 (none) kern.warn kernel: Primary data cache 4kB, 2-way, linesize 16 bytes.
Jan  1 00:00:04 (none) kern.warn kernel: Linux version 2.4.30 (nbd@ux-2y01) (gcc version 3.4.4) #1 Sun Oct 23 23:12:02 CEST 2005
Jan  1 00:00:04 (none) kern.warn kernel: Setting the PFC value as 0x15
Jan  1 00:00:04 (none) kern.warn kernel: Determined physical RAM map:
Jan  1 00:00:04 (none) kern.warn kernel:  memory: 01000000 @ 00000000 (usable)
Jan  1 00:00:04 (none) kern.warn kernel: On node 0 totalpages: 4096
Jan  1 00:00:04 (none) kern.warn kernel: zone(0): 4096 pages.
Jan  1 00:00:04 (none) kern.warn kernel: zone(1): 0 pages.
Jan  1 00:00:04 (none) kern.warn kernel: zone(2): 0 pages.
Jan  1 00:00:04 (none) kern.warn kernel: Kernel command line: root=/dev/mtdblock2 rootfstype=squashfs,jffs2 init=/etc/preinit noinitrd console=ttyS0,115200
Jan  1 00:00:04 (none) kern.warn kernel: CPU: BCM4712 rev 1 at 200 MHz
Jan  1 00:00:04 (none) kern.warn kernel: Using 100.000 MHz high precision timer.
Jan  1 00:00:04 (none) kern.warn kernel: Calibrating delay loop... 199.47 BogoMIPS
Jan  1 00:00:04 (none) kern.info kernel: Memory: 14284k/16384k available (1398k kernel code, 2100k reserved, 104k data, 80k init, 0k highmem)
Jan  1 00:00:04 (none) kern.info kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Jan  1 00:00:04 (none) kern.info kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Jan  1 00:00:04 (none) kern.info kernel: Mount cache hash table entries: 512 (order: 0, 4096 bytes)
Jan  1 00:00:04 (none) kern.info kernel: Buffer cache hash table entries: 1024 (order: 0, 4096 bytes)
Jan  1 00:00:04 (none) kern.warn kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Jan  1 00:00:04 (none) kern.warn kernel: Checking for 'wait' instruction...  unavailable.
Jan  1 00:00:04 (none) kern.warn kernel: POSIX conformance testing by UNIFIX
Jan  1 00:00:04 (none) kern.warn kernel: PCI: Disabled
Jan  1 00:00:04 (none) kern.warn kernel: PCI: Fixing up bus 0
Jan  1 00:00:04 (none) kern.info kernel: Linux NET4.0 for Linux 2.4
Jan  1 00:00:04 (none) kern.info kernel: Based upon Swansea University Computer Society NET3.039
Jan  1 00:00:04 (none) kern.warn kernel: Initializing RT netlink socket
Jan  1 00:00:04 (none) kern.warn kernel: Starting kswapd
Jan  1 00:00:04 (none) kern.info kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
Jan  1 00:00:04 (none) kern.info kernel: devfs: boot_options: 0x1
Jan  1 00:00:04 (none) kern.notice kernel: JFFS2 version 2.1. (C) 2001 Red Hat, Inc., designed by Axis Communications AB.
Jan  1 00:00:04 (none) kern.info kernel: Squashfs 2.1-r2 (released 2004/12/15) (C) 2002-2004 Phillip Lougher
Jan  1 00:00:04 (none) kern.warn kernel: pty: 256 Unix98 ptys configured
Jan  1 00:00:04 (none) kern.info kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Jan  1 00:00:04 (none) kern.info kernel: ttyS00 at 0xb8000300 (irq = 3) is a 16550A
Jan  1 00:00:04 (none) kern.info kernel: ttyS01 at 0xb8000400 (irq = 0) is a 16550A
Jan  1 00:00:04 (none) kern.info kernel: Software Watchdog Timer: 0.05, timer margin: 60 sec
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0x400000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0x800000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0xc00000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0x1000000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0x1400000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0x1800000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.debug kernel: Physically mapped flash: Found an alias at 0x1c00000 for the chip at 0x0
Jan  1 00:00:04 (none) kern.notice kernel: cfi_cmdset_0001: Erase suspend on write enabled
Jan  1 00:00:04 (none) kern.debug kernel: 0: offset=0x0,size=0x2000,blocks=8
Jan  1 00:00:04 (none) kern.debug kernel: 1: offset=0x10000,size=0x10000,blocks=63
Jan  1 00:00:04 (none) kern.warn kernel: Using word write method
Jan  1 00:00:04 (none) kern.notice kernel: Flash device: 0x400000 at 0x1c000000
Jan  1 00:00:04 (none) kern.notice kernel: Creating 4 MTD partitions on "Physically mapped flash":
Jan  1 00:00:04 (none) kern.notice kernel: 0x00000000-0x00040000 : "pmon"
Jan  1 00:00:04 (none) kern.notice kernel: 0x00040000-0x003f0000 : "linux"
Jan  1 00:00:04 (none) kern.notice kernel: 0x000c0000-0x003f0000 : "rootfs"
Jan  1 00:00:04 (none) kern.notice kernel: 0x003f0000-0x00400000 : "nvram"
Jan  1 00:00:04 (none) kern.info kernel: Initializing Cryptographic API
Jan  1 00:00:04 (none) kern.info kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Jan  1 00:00:04 (none) kern.info kernel: IP Protocols: ICMP, UDP, TCP, IGMP
Jan  1 00:00:04 (none) kern.info kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Jan  1 00:00:04 (none) kern.info kernel: TCP: Hash tables configured (established 1024 bind 2048)
Jan  1 00:00:04 (none) kern.warn kernel: ip_conntrack version 2.1 (5953 buckets, 5953 max) - 320 bytes per conntrack
Jan  1 00:00:04 (none) kern.warn kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan  1 00:00:04 (none) kern.info kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Jan  1 00:00:04 (none) kern.info kernel: NET4: Ethernet Bridge 008 for NET4.0
Jan  1 00:00:04 (none) kern.info kernel: 802.1Q VLAN Support v1.8 Ben Greear <greearb@candelatech.com>
Jan  1 00:00:04 (none) kern.info kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan  1 00:00:04 (none) kern.warn kernel: VFS: Mounted root (jffs2 filesystem) readonly.
Jan  1 00:00:04 (none) kern.info kernel: Mounted devfs on /dev
Jan  1 00:00:04 (none) kern.info kernel: Freeing unused kernel memory: 80k freed
Jan  1 00:00:04 (none) kern.warn kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan  1 00:00:04 (none) kern.info kernel: diag boardtype: 00000708
Jan  1 00:00:05 (none) kern.warn kernel: jffs2.bbc: SIZE compression mode activated.
Jan  1 00:00:05 (none) kern.debug kernel: PCI: Setting latency timer of device 00:02.0 to 64
Jan  1 00:00:05 (none) kern.warn kernel: eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.23.0
Jan  1 00:00:05 (none) user.info : Using /lib/modules/2.4.30/et.o
Jan  1 00:00:05 (none) user.info : Warning: loading et will taint the kernel: no license
Jan  1 00:00:05 (none) user.info :   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Jan  1 00:00:06 (none) kern.debug kernel: PCI: Setting latency timer of device 00:01.0 to 64
Jan  1 00:00:06 (none) kern.warn kernel: eth1: Broadcom BCM4320 802.11 Wireless Controller 3.90.37.0
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/wl.o
Jan  1 00:00:06 (none) user.info : Warning: loading wl will taint the kernel: no license
Jan  1 00:00:06 (none) user.info :   See http://www.tux.org/lkml/#export-tainted for information about tainted modules
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/wlcompat.o
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/arc4.o
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/sha1.o
Jan  1 00:00:06 (none) kern.info kernel: GRE over IPv4 tunneling driver
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/ip_gre.o
Jan  1 00:00:06 (none) kern.info kernel: CSLIP: code copyright 1989 Regents of the University of California
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/slhc.o
Jan  1 00:00:06 (none) kern.info kernel: PPP generic driver version 2.4.2
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/ppp_generic.o
Jan  1 00:00:06 (none) kern.info kernel: MPPE/MPPC encryption/compression module registered
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/ppp_mppe_mppc.o
Jan  1 00:00:06 (none) user.info : Using /lib/modules/2.4.30/ppp_async.o
Jan  1 00:00:07 (none) kern.info kernel: device eth0 entered promiscuous mode
Jan  1 00:00:08 (none) kern.debug kernel: vlan0: add 01:00:5e:00:00:01 mcast address to master interface
Jan  1 00:00:08 (none) kern.info kernel: br0: port 1(vlan0) entering learning state
Jan  1 00:00:08 (none) kern.info kernel: br0: port 1(vlan0) entering forwarding state
Jan  1 00:00:08 (none) kern.info kernel: br0: topology change detected, propagating
Jan  1 00:00:11 (none) user.info : cat: /var/run/eth1.pid: No such file or directory
Jan  1 00:00:11 (none) user.info : info, udhcpc (v0.9.9-pre) started
Jan  1 00:00:11 (none) user.info : debug, Sending discover...
Jan  1 00:00:12 (none) user.info : debug, Sending select for 10.10.100.167...
Jan  1 00:00:14 (none) user.info : debug, Sending select for 10.10.100.167...
Jan  1 00:00:14 (none) user.info : info, Lease of 10.10.100.167 obtained, lease time 1200
Jan  1 00:00:14 (none) user.info : deleting routers
Jan  1 00:00:14 (none) user.info : route: SIOC[ADD|DEL]RT: No such process
Jan  1 00:00:14 (none) user.info : route: SIOC[ADD|DEL]RT: Network is unreachable
Jan  1 00:00:14 (none) user.info : route: SIOC[ADD|DEL]RT: Network is unreachable
Jan  1 00:00:14 (none) user.info : route: SIOC[ADD|DEL]RT: Network is unreachable
Jan  1 00:00:14 (none) user.info : adding dns 213.244.228.8
Jan  1 00:00:14 (none) user.info : adding dns 213.244.228.11
Jan  1 00:00:15 (none) user.info : kill: 1: Usage: kill [-s sigspec | -signum | -sigspec] [pid | job]... or
Jan  1 00:00:15 (none) user.info : kill -l [exitstatus]
Jan  1 00:00:16 (none) kern.notice pppd[421]: pppd 2.4.3 started by root, uid 0
Jan  1 00:00:16 (none) kern.info pppd[421]: Serial connection established.
Jan  1 00:00:16 (none) user.info : Serial connection established.
Jan  1 00:00:16 (none) kern.info pppd[421]: Using interface ppp0
Jan  1 00:00:16 (none) user.info : Using interface ppp0
Jan  1 00:00:16 (none) kern.notice pppd[421]: Connect: ppp0 <--> /dev/pts/0
Jan  1 00:00:16 (none) user.info : Connect: ppp0 <--> /dev/pts/0
Jan  1 00:00:16 (none) kern.notice pptp[425]: anon log[main:pptp.c:267]: The synchronous pptp option is NOT activated
Jan  1 00:00:16 (none) kern.notice pptp[429]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Jan  1 00:00:16 (none) kern.notice pptp[429]: anon log[ctrlp_disp:pptp_ctrl.c:732]: Received Start Control Connection Reply
Jan  1 00:00:16 (none) kern.notice pptp[429]: anon log[ctrlp_disp:pptp_ctrl.c:766]: Client connection established.
Jan  1 00:00:17 (none) kern.notice pptp[429]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Jan  1 00:00:17 (none) kern.notice pptp[429]: anon log[ctrlp_disp:pptp_ctrl.c:851]: Received Outgoing Call Reply.
Jan  1 00:00:17 (none) kern.notice pptp[429]: anon log[ctrlp_disp:pptp_ctrl.c:890]: Outgoing call established (call ID 0, peer's call ID 16128).
Jan  1 00:00:17 (none) kern.notice pppd[421]: CHAP authentication succeeded
Jan  1 00:00:17 (none) user.info : CHAP authentication succeeded
Jan  1 00:00:17 (none) kern.notice pppd[421]: MPPC/MPPE 128-bit stateful compression enabled
Jan  1 00:00:17 (none) user.info : MPPC/MPPE 128-bit stateful compression enabled
Jan  1 00:00:17 (none) kern.notice pppd[421]: replacing old default route to eth1 [10.10.100.1]
Jan  1 00:00:17 (none) user.info : replacing old default route to eth1 [10.10.100.1]
Jan  1 00:00:17 (none) kern.notice pppd[421]: local  IP address 213.244.230.253
Jan  1 00:00:17 (none) user.info : local  IP address 213.244.230.253
Jan  1 00:00:17 (none) kern.notice pppd[421]: remote IP address 213.244.228.46
Jan  1 00:00:17 (none) user.info : remote IP address 213.244.228.46
Jan  1 00:00:17 (none) kern.notice pppd[421]: primary   DNS address 213.244.228.8
Jan  1 00:00:17 (none) user.info : primary   DNS address 213.244.228.8
Jan  1 00:00:17 (none) kern.notice pppd[421]: secondary DNS address 213.244.228.11
Jan  1 00:00:17 (none) user.info : secondary DNS address 213.244.228.11
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: started, version 2.22 cachesize 150
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: DHCP, IP range 192.168.1.100 -- 192.168.1.250, lease time 12h
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: using local addresses only for domain lan
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: read /etc/hosts - 2 addresses
Jan  1 00:00:21 (none) kern.err dnsmasq[465]: failed to read /etc/ethers:No such file or directory
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: reading /etc/resolv.conf
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: using nameserver 213.244.228.11#53
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: using nameserver 213.244.228.8#53
Jan  1 00:00:21 (none) kern.info dnsmasq[465]: using local addresses only for domain lan

then in logread many of these messages:

Jan  1 00:02:17 (none) kern.warn dnsmasq[465]: no address range available for DHCP request via eth1

and then disconnect from self

Jan  1 00:02:17 (none) kern.notice pptp[429]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 12 'Call-Clear-Request'
Jan  1 00:02:17 (none) kern.notice pptp[429]: anon log[pptp_conn_close:pptp_ctrl.c:433]: Closing PPTP connection
Jan  1 00:02:17 (none) kern.notice pptp[429]: anon log[ctrlp_rep:pptp_ctrl.c:251]: Sent control packet type is 3 'Stop-Control-Connection-Request'
Jan  1 00:02:17 (none) kern.notice pptp[429]: anon log[call_callback:pptp_callmgr.c:77]: Closing connection
Jan  1 00:02:17 (none) kern.notice pppd[421]: Modem hangup
Jan  1 00:02:17 (none) kern.info pppd[421]: Connect time 2.0 minutes.
Jan  1 00:02:17 (none) kern.info pppd[421]: Sent 28991404 bytes, received 0 bytes.
Jan  1 00:02:17 (none) kern.notice pppd[421]: restoring old default route to eth1 [10.10.100.1]
Jan  1 00:02:17 (none) kern.err pppd[421]: MPPE disabled
Jan  1 00:02:17 (none) kern.notice pppd[421]: Connection terminated.
Jan  1 00:02:17 (none) user.info : Modem hangup
Jan  1 00:02:17 (none) user.info : Connect time 2.0 minutes.
Jan  1 00:02:17 (none) user.info : Sent 28991404 bytes, received 0 bytes.
Jan  1 00:02:17 (none) user.info : restoring old default route to eth1 [10.10.100.1]
Jan  1 00:02:17 (none) user.info : MPPE disabled
Jan  1 00:02:17 (none) user.info : Connection terminated.
Jan  1 00:02:25 (none) kern.warn dnsmasq[465]: no address range available for DHCP request via eth1
Jan  1 00:02:26 (none) kern.warn dnsmasq[465]: no address range available for DHCP request via eth1

and after the pptp connection is established again

my iptables, the S45firewall is the default that comes with openwrt, dunno if I need to change somthing in it

Chain INPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere            state INVALID
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
DROP       tcp  --  anywhere             anywhere            tcp option=!2 flags:SYN/SYN
input_rule  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     icmp --  anywhere             anywhere
ACCEPT     gre  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain FORWARD (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere            state INVALID
TCPMSS     tcp  --  anywhere             anywhere            tcp flags:SYN,RST/SYN TCPMSS clamp to PMTU
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
forwarding_rule  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere

Chain OUTPUT (policy DROP)
target     prot opt source               destination
DROP       all  --  anywhere             anywhere            state INVALID
ACCEPT     all  --  anywhere             anywhere            state RELATED,ESTABLISHED
output_rule  all  --  anywhere             anywhere
ACCEPT     all  --  anywhere             anywhere
REJECT     tcp  --  anywhere             anywhere            reject-with tcp-reset
REJECT     all  --  anywhere             anywhere            reject-with icmp-port-unreachable

Chain forwarding_rule (1 references)
target     prot opt source               destination

Chain input_rule (1 references)
target     prot opt source               destination

Chain output_rule (1 references)
target     prot opt source               destination

now I changed back the

nvram set wan_ifname=eth1
nvram set wan_proto=dhcp

rebooted and now connected via pptp with windows dialup.

Please if you or someone else, with more experience then me can help i

hi,

Habos wrote:
Jan  1 00:02:17 (none) kern.warn dnsmasq[465]: no address range available for DHCP request via eth1

i think you can get rid of these messages by adding

interface=br0

to /etc/dnsmasq.conf.

regarding your pptp problems... pptp seems to be established, you get the ip, everything seems to be ok. it looks quite the same as the logs i get with my configuration on my router. but i don't need encryption, so i haven't got any experience with it... sorry

maybe there are other clients of your ISP using linux, maybe they have a working configuration... ?

christian

The discussion might have continued from here.