Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Search
    • Register
    • Login
    Introducing Netgate Nexus: Multi-Instance Management at Your Fingertips.

    Custom ppp script for unsupported 3G modem (huawei E303)

    Scheduled Pinned Locked Moved Hardware
    3 Posts 2 Posters 2.1k 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.
    • M
      meka
      last edited by

      Dear everyone,

      I am trying to configure pfsense with a usb 3g modem Huawei E303 as WAN.

      It is recognized as cuaU0.0, cuaU0.1 and cuaU0.2 in pfsense.

      It works in Xubuntu 16.04 using the GUI and no particular configuration.

      In pfsense I monitored /var/log/ppp.log and it fails with 'ppp: [opt1_link0] chat: The modem responded with "ERROR" to the command "AT&F&C1&D2E0S0=0M1" at ModemCmd: label.'.

      The only way I can make it work is through a custom ppp script in /etc/ppp.conf, then I use ppp -ddial myconnection. A new interface tun0 is created with the IP obtained from the provider.

      The problem is I cannot find the tun0 interface in the webGUI of pfsense. I also tried to modify /var/etc/mpd_wan.conf but it did not survive reboot.

      Is there a way I can use my tun0 interface or a custom ppp script in pfsense?

      Best regards

      1 Reply Last reply
      Reply Quote 0
      • A
        AndrewZ
        last edited by

        @meka:

        In pfsense I monitored /var/log/ppp.log and it fails with 'ppp: [opt1_link0] chat: The modem responded with "ERROR" to the command "AT&F&C1&D2E0S0=0M1" at ModemCmd: label.'.

        The modem is unhappy with M1.
        Please check here: https://forum.pfsense.org/index.php?topic=105842.0

        1 Reply Last reply
        Reply Quote 0
        • M
          meka
          last edited by

          Thank you so much,

          I just added AT&F&C1&D2E0S0=0 as init string, the modem works with /dev/cuaU0.0

          Solved!!!

          1 Reply Last reply
          Reply Quote 0

          Hello! It looks like you're interested in this conversation, but you don't have an account yet.

          Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

          With your input, this post could be even better 💗

          Register Login
          • First post
            Last post
          Copyright 2026 Rubicon Communications LLC (Netgate). All rights reserved.
          Privacy Policy · Cookie Policy