Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    DHCP problems with 3G modem in combination with PPP

    Scheduled Pinned Locked Moved DHCP and DNS
    5 Posts 3 Posters 4.6k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • J
      jozef00
      last edited by

      Hi,

      I am trying to get a 3G modem working with pfsense. What I want is that pfsense secure internet provides in the field over a 3G modem from XS4ALL.
      The systemlogs gave the following over this device:

      "kernel: ucom0: <huawei 0="" 2="" technology="" huawei="" mobile,="" class="" 0,="" rev="" 2.00="" 0.00,="" addr=""> on uhub4".</huawei>
      

      There are no PPP errors, so the modem is talking with pfsense. But when I run the ifconfig command, I see that tun0 got a IP in the 10.0.0.0 range. So he got no IP from XS4ALL, because when I connect the modem with a Windows PC he obtains a 83...* IP (I am forgotten the right IP). Here you got my ppp.conf:

      #####################################################
      # PPP  Sample Configuration File
      # Originally written by Toshiharu OHNO
      # Simplified 5/14/1999 by wself@cdrom.com
      #
      # See /usr/share/examples/ppp/ for some examples
      #
      # $FreeBSD: src/etc/ppp/ppp.conf,v 1.10.20.1 2009/04/15 03:14:26 kensmith Exp $
      #################################################################
      
      default:
       set log Phase Chat LCP IPCP CCP tun command
       ident user-ppp VERSION (built COMPILATIONDATE)
      
       # Ensure that "device" references the correct serial port
       # for your modem. (cuad0 = COM1, cuad1 = COM2)
       #
       set device /dev/cuad1
      
       set speed 115200
       set dial "ABORT BUSY ABORT NO\\sCARRIER TIMEOUT 5 \
                 \"\" AT OK-AT-OK ATE1Q0 OK \\dATDT\\T TIMEOUT 40 CONNECT"
       set timeout 180                        # 3 minute idle timer (the default)
       enable dns                             # request DNS info (for resolv.conf)
      # enable dhcp
      
      papchap:
       #
       # edit the next three lines and replace the items in caps with
       # the values which have been assigned by your ISP.
       #
      
       set phone *99#
       set authname internet
       set authkey 1234
      
       set ifaddr 10.0.0.1/0 10.0.0.2/0 255.255.255.0 0.0.0.0
       set dns 208.67.220.220 208.67.222.222  # openDNS
       add default HISADDR                    # Add a (sticky) default route
      
      

      I think that forcing the modem to obtain a IP by DHCP is the solution. But I can't get it configured in pfsense.
      When someone need more info I will post it on the forum.
      If someone could help it would be great!

      Kind regards,

      Jozef00

      1 Reply Last reply Reply Quote 0
      • jimpJ
        jimp Rebel Alliance Developer Netgate
        last edited by

        Are you trying this on pfSense 1.2.3 or 2.0?

        There is built-in support for 3G modems in pfSense 2.0

        Remember: Upvote with the 👍 button for any user/post you find to be helpful, informative, or deserving of recognition!

        Need help fast? Netgate Global Support!

        Do not Chat/PM for help!

        1 Reply Last reply Reply Quote 0
        • J
          jozef00
          last edited by

          Hi jimp,

          Thanks for your reply!
          I am trying v1.2.3 and that is because it is the latest stable version. Or do you think that the current 2.0 beta is stable enough to use in a production environment?

          Kind regards,

          Jozef00

          1 Reply Last reply Reply Quote 0
          • C
            cmb
            last edited by

            You're not going to get that functioning on 1.2.3 without a lot of manual hacking. Use 2.0.

            1 Reply Last reply Reply Quote 0
            • J
              jozef00
              last edited by

              Thanks guys, I will try the 2.0 beta.

              Kind regards,

              Jozef00

              1 Reply Last reply Reply Quote 0
              • First post
                Last post
              Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.