1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Tomato 1.19 with avenard VPN patch

Discussion in 'Tomato Firmware' started by eaperezh, Jun 18, 2008.

  1. eaperezh

    eaperezh Addicted to LI Member

    Hi there,
    I have my WRT54GL with Avenard patch (http://www.avenard.org/wrt54-tomato/) to add vpn client support to my router.
    It has been very difficult for me to setup this vpn client part and would like some assistance.
    My Windows VPN client works flawlessly so I know the VPN server is Ok.
    In my windows vpn propierties I have:

    PPP Setting: Enable LCP extensions
    Security: require secure password
    Security: require data encryption (disconnect if none)

    In my linksys router I have the default config, which may not be the best/correct one:

    Code:
    #nvram show
    pptp_client_enable=1
    pptp_client_passwd=xxxxxxxx
    pptp_client_srvip=190.34.xxx.xxx
    pptp_client_srvsub=172.16.xxx.xxx
    pptp_client_srvsubmsk=255.255.255.0
    pptp_client_username=xxxxxxxxx
    pptp_get_ip=
    pptp_pass=1
    pptp_server_ip=
    public_ip=
    
    Code:
    /etc/vpn/
    # cat options.vpn
    
    lock
    noauth
    nodetach
    refuse-eap
    lcp-echo-failure 3
    lcp-echo-interval 2
    persist
    usepeerdns
    idle 0
    ip-up-script /etc/vpn/ip-up
    ip-down-script /etc/vpn/ip-down
    ipparam kelokepptpd
    mtu 1450
    mru 1450
    name xxxxx
    password xxxxx
    unit 0
    #
    
    When trying to start the vpn client via: /etc/vpn/vpn debug
    I get in /var/log/messages

    Thanks for your help!
     
  2. jyavenard

    jyavenard Network Guru Member

    Sorry for the late delay, I do not check these forums frequently
    Here is my configuration

    Code:
    #nvram show | grep pptp
    pptp_client_enable=1
    pptp_client_mru=1450
    pptp_client_mtu=1450
    pptp_client_nat=1
    pptp_client_passwd=password
    pptp_client_peerdns=0
    pptp_client_srvip=vpn.ip.address
    pptp_client_srvpass=password
    pptp_client_srvsub=192.168.0.0
    pptp_client_srvsubmsk=255.255.254.0
    pptp_client_username=username
    pptp_get_ip=
    pptp_server_ip=
    
    There should be no need to modify options.vpn
    but here is mine anyway
    Code:
    /etc/vpn/
    # cat options.vpn
    lock
    noauth
    nodetach
    refuse-eap
    lcp-echo-failure 3
    lcp-echo-interval 2
    persist
    usepeerdns
    idle 0
    ip-up-script /etc/vpn/ip-up
    ip-down-script /etc/vpn/ip-down
    ipparam kelokepptpd
    mtu 1450
    mru 1450
    name username
    password password
    unit 1
    
    Based on the log you've posted, you'd be better off asking on the pptp distribution list, and check http://pptpclient.sourceforge.net/ for a list of common problems
     
  3. eaperezh

    eaperezh Addicted to LI Member

    Well, I added some things that you have and i dont.
    now the errors are:

    # ./vpn debug
    Waiting.......
    PID file created
    Attempting initial connect
    Initial connection dropped
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...
    Connection dropped...
    Attempting connect...

    #
    #
    #
    #
    #
    # ./vpn stop
    Killing VPN PID 14408
    kill: Could not kill pid '14408': No such process
    Killing PPTP PID
    BusyBox v1.2.2 (2008.04.23-16:04+0000) multi-call binary

    Usage: kill [-signal] process-id [process-id ...]

    Send a signal (default is SIGTERM) to the specified process(es).

    Options:
    -l List all signal names and numbers

    BusyBox v1.2.2 (2008.04.23-16:04+0000) multi-call binary

    Usage: kill [-signal] process-id [process-id ...]

    Send a signal (default is SIGTERM) to the specified process(es).

    Options:
    -l List all signal names and numbers

    VPN Stopped
    # cat /var/log
    cat: Read Error: Is a directory
    # cat /var/log/messages
    /var/log/messages /var/log/messages.0
    # cat /var/log/messages
    Jul 8 09:59:34 quentrt daemon.notice pptp[14580]: anon log[callmgr_main:pptp_ca
    llmgr.c:255]: Closing connection (shutdown)
    Jul 8 09:59:34 quentrt daemon.notice pptp[14580]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 12 'Call-Clear-Request'
    Jul 8 09:59:34 quentrt daemon.notice pptp[14580]: anon log[pptp_read_some:pptp_
    ctrl.c:543]: read returned zero, peer has closed
    Jul 8 09:59:34 quentrt daemon.notice pptp[14580]: anon log[call_callback:pptp_c
    allmgr.c:78]: Closing connection (call state)
    Jul 8 09:59:41 quentrt daemon.info pppd[14577]: Exit.
    Jul 8 09:59:41 quentrt daemon.warn pptp[14583]: anon warn[decaps_hdlc:pptp_gre.
    c:197]: short read (-1): Input/output error
    Jul 8 09:59:41 quentrt daemon.warn pptp[14583]: anon warn[decaps_hdlc:pptp_gre.
    c:209]: pppd may have shutdown, see pppd log
    Jul 8 09:59:46 quentrt daemon.notice pptp[14595]: anon log[main:pptp.c:267]: Th
    e synchronous pptp option is NOT activated
    Jul 8 09:59:46 quentrt daemon.notice pptp[14598]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
    Jul 8 09:59:46 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:738]: Received Start Control Connection Reply
    Jul 8 09:59:46 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:772]: Client connection established.
    Jul 8 09:59:47 quentrt daemon.notice pptp[14598]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
    Jul 8 09:59:47 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:857]: Received Outgoing Call Reply.
    Jul 8 09:59:47 quentrt daemon.notice pppd[14595]: pppd 2.4.4 started by root, u
    id 0
    Jul 8 09:59:47 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:896]: Outgoing call established (call ID 0, peer's call ID 61030).
    Jul 8 09:59:49 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:949]: PPTP_SET_LINK_INFO received from peer_callid 2842
    Jul 8 09:59:49 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:952]: send_accm is 00000000, recv_accm is FFFFFFFF
    Jul 8 09:59:49 quentrt daemon.warn pptp[14598]: anon warn[ctrlp_disp:pptp_ctrl.
    c:955]: Non-zero Async Control Character Maps are not supported!
    Jul 8 09:59:49 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:949]: PPTP_SET_LINK_INFO received from peer_callid 2842
    Jul 8 09:59:49 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:952]: send_accm is FFFFFFFF, recv_accm is FFFFFFFF
    Jul 8 09:59:49 quentrt daemon.warn pptp[14598]: anon warn[ctrlp_disp:pptp_ctrl.
    c:955]: Non-zero Async Control Character Maps are not supported!
    Jul 8 09:59:49 quentrt daemon.notice pptp[14598]: anon log[ctrlp_disp:pptp_ctrl
    .c:911]: Received Call Clear Request.
    Jul 8 10:00:20 quentrt daemon.notice pptp[14598]: anon log[pptp_read_some:pptp_
    ctrl.c:543]: read returned zero, peer has closed
    Jul 8 10:00:20 quentrt daemon.notice pptp[14598]: anon log[callmgr_main:pptp_ca
    llmgr.c:255]: Closing connection (shutdown)
    Jul 8 10:00:20 quentrt daemon.notice pptp[14598]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 12 'Call-Clear-Request'
    Jul 8 10:00:20 quentrt daemon.notice pptp[14598]: anon log[pptp_read_some:pptp_
    ctrl.c:543]: read returned zero, peer has closed
    Jul 8 10:00:20 quentrt daemon.notice pptp[14598]: anon log[call_callback:pptp_c
    allmgr.c:78]: Closing connection (call state)
    Jul 8 10:00:27 quentrt daemon.info pppd[14595]: Exit.
    Jul 8 10:00:27 quentrt daemon.warn pptp[14601]: anon warn[decaps_hdlc:pptp_gre.
    c:197]: short read (-1): Input/output error
    Jul 8 10:00:27 quentrt daemon.warn pptp[14601]: anon warn[decaps_hdlc:pptp_gre.
    c:209]: pppd may have shutdown, see pppd log
    Jul 8 10:00:33 quentrt daemon.notice pptp[14613]: anon log[main:pptp.c:267]: Th
    e synchronous pptp option is NOT activated
    Jul 8 10:00:33 quentrt daemon.notice pptp[14616]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
    Jul 8 10:00:33 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:738]: Received Start Control Connection Reply
    Jul 8 10:00:33 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:772]: Client connection established.
    Jul 8 10:00:34 quentrt daemon.notice pptp[14616]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
    Jul 8 10:00:34 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:857]: Received Outgoing Call Reply.
    Jul 8 10:00:34 quentrt daemon.notice pppd[14613]: pppd 2.4.4 started by root, u
    id 0
    Jul 8 10:00:34 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:896]: Outgoing call established (call ID 0, peer's call ID 34139).
    Jul 8 10:00:36 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:949]: PPTP_SET_LINK_INFO received from peer_callid 2843
    Jul 8 10:00:36 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:952]: send_accm is 00000000, recv_accm is FFFFFFFF
    Jul 8 10:00:36 quentrt daemon.warn pptp[14616]: anon warn[ctrlp_disp:pptp_ctrl.
    c:955]: Non-zero Async Control Character Maps are not supported!
    Jul 8 10:00:36 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:949]: PPTP_SET_LINK_INFO received from peer_callid 2843
    Jul 8 10:00:36 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:952]: send_accm is FFFFFFFF, recv_accm is FFFFFFFF
    Jul 8 10:00:36 quentrt daemon.warn pptp[14616]: anon warn[ctrlp_disp:pptp_ctrl.
    c:955]: Non-zero Async Control Character Maps are not supported!
    Jul 8 10:00:36 quentrt daemon.notice pptp[14616]: anon log[ctrlp_disp:pptp_ctrl
    .c:911]: Received Call Clear Request.
    Jul 8 10:01:07 quentrt daemon.notice pptp[14616]: anon log[pptp_read_some:pptp_
    ctrl.c:543]: read returned zero, peer has closed
    Jul 8 10:01:07 quentrt daemon.notice pptp[14616]: anon log[callmgr_main:pptp_ca
    llmgr.c:255]: Closing connection (shutdown)
    Jul 8 10:01:07 quentrt daemon.notice pptp[14616]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 12 'Call-Clear-Request'
    Jul 8 10:01:07 quentrt daemon.notice pptp[14616]: anon log[pptp_read_some:pptp_
    ctrl.c:543]: read returned zero, peer has closed
    Jul 8 10:01:07 quentrt daemon.notice pptp[14616]: anon log[call_callback:pptp_c
    allmgr.c:78]: Closing connection (call state)
    Jul 8 10:01:14 quentrt daemon.info pppd[14613]: Exit.
    Jul 8 10:01:14 quentrt daemon.warn pptp[14619]: anon warn[decaps_hdlc:pptp_gre.
    c:197]: short read (-1): Input/output error
    Jul 8 10:01:14 quentrt daemon.warn pptp[14619]: anon warn[decaps_hdlc:pptp_gre.
    c:209]: pppd may have shutdown, see pppd log
    Jul 8 10:01:19 quentrt daemon.notice pptp[14631]: anon log[main:pptp.c:267]: Th
    e synchronous pptp option is NOT activated
    Jul 8 10:01:19 quentrt daemon.notice pptp[14634]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
    Jul 8 10:01:19 quentrt daemon.notice pptp[14634]: anon log[ctrlp_disp:pptp_ctrl
    .c:738]: Received Start Control Connection Reply
    Jul 8 10:01:19 quentrt daemon.notice pptp[14634]: anon log[ctrlp_disp:pptp_ctrl
    .c:772]: Client connection established.
    Jul 8 10:01:20 quentrt daemon.notice pptp[14634]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
    Jul 8 10:01:20 quentrt daemon.notice pptp[14634]: anon log[ctrlp_disp:pptp_ctrl
    .c:857]: Received Outgoing Call Reply.
    Jul 8 10:01:20 quentrt daemon.notice pppd[14631]: pppd 2.4.4 started by root, u
    id 0
    Jul 8 10:01:20 quentrt daemon.notice pptp[14634]: anon log[ctrlp_disp:pptp_ctrl
    .c:896]: Outgoing call established (call ID 0, peer's call ID 15272).
    Jul 8 10:01:22 quentrt daemon.notice pptp[14634]: anon log[callmgr_main:pptp_ca
    llmgr.c:255]: Closing connection (shutdown)
    Jul 8 10:01:22 quentrt daemon.notice pptp[14634]: anon log[ctrlp_rep:pptp_ctrl.
    c:251]: Sent control packet type is 12 'Call-Clear-Request'
    Jul 8 10:01:22 quentrt daemon.notice pptp[14634]: anon log[call_callback:pptp_c
    allmgr.c:78]: Closing connection (call state)
    Jul 8 10:01:23 quentrt daemon.info pppd[14631]: Exit.
    #

    Will post to the pptp list also.

     

Share This Page