Menu

#1133 Perl execution failure - net::list_routes

1.090
closed
5
2003-05-18
2003-05-18
No

Distro: SuSE 8.0
Webmin version: 1.090
Action taken: created and connected a vpn client
connection. Connection succeeds but route is not
added for access to remote network. Remote route was
entered with (*)Endpoint selected in the configuration as
the default route to inside network on the VPN server. -
not the default route period. Manually adding the route
works great- (route add -net 192.168.100.0 netmask
255.255.255.0 dev ppp0) I can see machines inside the
private net and list samba shares, ping them, whatever.

This particular vpn server works very well with windows
clients - weather they use the default route on the
remote network or not. It is preferred that they don't for
obvious reasons. Below is the output from the
connection.

* * * * * * * * * * * * * * * *
http://x.x.x.x:10000/pptp-client/conn.cgi?
tunnel=nicheware

Establishing a PPTP connection with the command pptp
fire.nicheware.com call nicheware ..

.. connection successfully activated using interface
ppp0. Your local address is 192.168.100.113, and the
remote address is .

HTTP/1.0 500 Perl execution failed Server: MiniServ/0.01
Date: Sun, 18 May 2003 00:44:09 GMT Content-type:
text/html Connection: close

Error - Perl execution failed
Undefined subroutine &net::list_routes called
at /usr/libexec/webmin/pptp-client/conn.cgi line 55.

Discussion

  • Jamie Cameron

    Jamie Cameron - 2003-05-18

    Logged In: YES
    user_id=129364

    That error could only happen if the webmin Network
    Configuration module on your system is from an older
    release, such as 1.080.. Are you using the full 1.090
    release from www.webmin.com, and does re-installing the
    Network Configuration module from
    http://www.webmin.com/standard.html help in any way?

     
  • Thomas Hutton

    Thomas Hutton - 2003-05-18

    Logged In: YES
    user_id=100078

    Previous to this error, yes, Webmin was upgraded to the
    1.090 by selecting "Latest version from www.webmin.com" on
    the Upgrade Webmin form. I just re-ran the install of the
    individual module
    "http://www.webmin.com/download/modules/net.wbm" and
    attempted to open the pptp connection again. I recieved the
    same error. I also created a new connection from scratch
    with the same result.

     
  • Thomas Hutton

    Thomas Hutton - 2003-05-18

    Logged In: YES
    user_id=100078

    ok, a little more info.

    Using pptp-command from the command line the following
    connection works, route is added correctly, etc:

    fuoco:/etc/ppp/peers # cat niche
    # PPTP Tunnel configuration for tunnel niche
    # Server IP: fire.nicheware.com
    # Route: add -net 192.168.100.0 gw 192.168.100.254
    netmask 255.255.255.0
    name bensonet
    file /etc/ppp/options.pptp
    mppe-40
    mppe-128
    mppe-stateless

    Now, using pptp-command from the command line in the
    following connection does not work, but it does connect
    properly with webmin and adds a route to the network just
    fine:

    fuoco:/etc/ppp/peers # cat nichenet
    #
    # PPTP Tunnel configuration for tunnel nichenet
    # Server IP: 206.9.106.41
    #

    #
    # Tags for CHAP secret selection
    #
    name bensonet
    remotename bensonet

    #
    # Include the main PPTP configuration file
    #
    file /etc/ppp/options.pptp

    * * * * * * * * * * * * * * * *
    I also discovered webmin had written an additional gw - GW,
    in CAPS, into one of the config files. This is when one
    selects the "(*) other end" option in adding a route to the
    remote network. I believe this was the error in the original
    connection that led to submitting this bug report... here is the
    config file for that:

    fuoco:/etc/ppp/peers # cat test
    # PPTP Tunnel configuration for tunnel test
    # Server IP: fire.nicheware.com
    # Route: add -net 192.168.100.0 gw GW netmask
    255.255.255.0
    name bensonet
    file /etc/ppp/options.pptp
    mppe-40
    mppe-128
    mppe-stateless

    * * * * * * * * * * * * * * * *
    I'm assuming the addition of the route is being assigned by
    the pptpd server so it was not necessary to have added the
    route like I did. Supposing I wanted to add routes to other
    subnets of other connected clients it might be nice to have
    this feature available- however it would probably be something
    rarely used.

    Thanks, by the way, for your work on such a spectacular
    product as Webmin. I've been using it for a long time.

     
  • Jamie Cameron

    Jamie Cameron - 2003-05-18
    • status: open --> closed
     
  • Jamie Cameron

    Jamie Cameron - 2003-05-18

    Logged In: YES
    user_id=129364

    Ok, I see the cause of this now - the reason I didn't notice
    it before was that it only effects SuSE 8.0! I have attached
    an updated Network Configuration module to this bug report
    that will solve the problem ..

    As for the module's use of GW in the route commands, I've
    found a better solution that will work with the command-line
    pptp programs. Future webmin releases will use it instead ..
    That is not the cause of your bug though.

     
  • Jamie Cameron

    Jamie Cameron - 2003-05-18

    Updated Network Configuration module

     

Log in to post a comment.

MongoDB Logo MongoDB