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

    Cannot create or edit PPP interface in WebGui

    Scheduled Pinned Locked Moved 2.1 Snapshot Feedback and Problems - RETIRED
    12 Posts 6 Posters 3.8k 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.
    • jimpJ
      jimp Rebel Alliance Developer Netgate
      last edited by

      The serial modem detection has issues on some cards yet.

      Here is a workaround:

      Install the System Patches package
      Add this patch: http://files.nyi.pfsense.org/jimp/patches/3g_alt_detect.diff
      Path Strip Count = 1, Base = /, Ignore whitespace.
      Save, Fetch, apply

      Then it won't automatically detect the modem, it will just list all serial ports on the unit instead. You'll have to guess which is the modem (typically it's either the first or last node on a device, like 0.0 or 0.4, etc.)

      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
        jacobhuh
        last edited by

        This doesn't seem to work anymore. Has anyone had success with the latest snapshot 2.1-BETA (AMD64) 4G NANOBSD VGA?

        Jacob

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

          The bug is still present. (See https://redmine.pfsense.org/issues/2433 )

          The patch I linked above still applies and works though.

          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
            jacobhuh
            last edited by

            jimp:
            I've followed the instructions on a fresh install on the latest snapshot (pfSense-2.1-BETA1-4g-amd64-nanobsd_vga-20130416-1647):

            • Installed System Patches Package
            • Followed your guide and completed Patch

            *Although I do get an warning for a test:

            Patch can be applied cleanly (detail)
            –---------------------------------------
            Output of full patch apply test:
            /usr/bin/patch --directory=/ -t -p1 -i /var/patches/516ee4b94ea0a.patch --check --forward --ignore-whitespace

            Hmm...  Looks like a unified diff to me...
            The text leading up to this was:

            |diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php
            |index 411359f..324f2c0 100644
            |--- a/usr/local/www/interfaces_ppps_edit.php

            +++ b/usr/local/www/interfaces_ppps_edit.php
            Patching file usr/local/www/interfaces_ppps_edit.php using Plan A...
            Hunk #1 succeeded at 434 (offset 6 lines).
            done

            Patch can NOT be reverted cleanly (detail)

            Output of full patch revert test:
            /usr/bin/patch --directory=/ -f -p1 -i /var/patches/516ee4b94ea0a.patch --check --reverse --ignore-whitespace

            Hmm...  Looks like a unified diff to me...
            The text leading up to this was:

            |diff --git a/usr/local/www/interfaces_ppps_edit.php b/usr/local/www/interfaces_ppps_edit.php
            |index 411359f..324f2c0 100644
            |--- a/usr/local/www/interfaces_ppps_edit.php

            +++ b/usr/local/www/interfaces_ppps_edit.php
            Patching file usr/local/www/interfaces_ppps_edit.php using Plan A...
            Hunk #1 failed at 428.
            1 out of 1 hunks failed--saving rejects to usr/local/www/interfaces_ppps_edit.php.rej
            done

            Due to pfSense being the embedded, there is no interfaces_ppps_edit.php.rej file (readonly f/s). Can anyone point me into the right direction as to what the issue is and maybe the diff file can be modified?

            Jacob

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

              That's a fancy way of saying it's ready to apply.

              Test will test both apply and revert. Only one should succeed.

              Just click Apply and it'll go.

              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
                jacobhuh
                last edited by

                jimp,
                Sorry if I sound like a Noob. I don't think it is applying the patch. When I do apply I get a confirmation, but I still cannot access the interfaces_ppp_edit.php menu, as the webconfigurator hangs. Can you suggest anything else?

                EDIT
                I got it working, but had to do it manually.
                1. Web Configurator GOTO: Diagnostics>NanoBSD>Media Read/Write Status>"Switch to Read/Write"
                2. Terminal: SSH into pfSense Box
                3. cd /usr/local/www
                4. ee interfaces_ppps_edit.php
                5. CTRL+E (Search)
                6. Type "$serialports = pfSense" + ENTER
                7. Make following edits:
                  ORIGNAL:
                  $serialports = pfSense_get_modem_devices();
                  MODIFIED: (Commented out the line)
                  // $serialports = pfSense_get_modem_devices();
                  (Then added the following line as per JIMP's Diff File, immediately proceeding the commented line)
                  $serialports = glob("/dev/cua?[0-9]{,.[0-9]}", GLOB_BRACE);
                8. ESC > [a. Leave Editor] > [a. Save File]
                9. Web Configurator GOTO: Diagnostics>NanoBSD>Media Read/Write Status>"Switch to Read-Only"

                VOLLA!! - PPP EDIT menu will work. All THANKS to JIMP for his work around.

                For some reason the System Patches Package process that JIMP had made available (Refer to 5 Posts above this one) would not work for me, and for reference I was running 2.1-BETA1 (amd64) built on Wed Apr 17 07:44:38 EDT 2013. Although I never did try to manually invoke NanoBSD R/W before running the patch. (Diagnostics>NanoBSD>Media Read/Write Status>"Switch to Read/Write"), maybe that would have worked? (JIMP?)

                PS. Note that I am only running the BETA Snapshot due to the fact that I am running pfSense on a Jetway JNF9D-2550 ITX M/B with the 3 Port Intel Giga-Ethernet Daughter Card on a 4GB WD A100 Silicon Drive CFAST SSD (on a Aleratec CFast to SATA Adapter). I've ran into several issues such as, the VGA Console Bug and the em0 not recognizing the 3 Port Daughter Card where both issues are solved in the latest 2.1-BETA1.

                Jacob

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

                  I had the same problem. Manually edited the file and was able to edit my pppoe connection. Unfortunately after saving the changes to the pppoe connection, the WAN never came back up. :(

                  Since this has to do with unused serial ports, is there another workaround, such as disabling serial ports in the BIOS? My board has a couple of serial ports, but I'm not using them and I don't remember if they are disabled in the BIOS.

                  db

                  1 Reply Last reply Reply Quote 0
                  • W
                    wallabybob
                    last edited by

                    @clarknova:

                    I had the same problem. Manually edited the file and was able to edit my pppoe connection. Unfortunately after saving the changes to the pppoe connection, the WAN never came back up. :(

                    Your WAN interface is PPPoE? What is in the PPP log?

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

                      The ppp log is constantly spammed with IPv6 messages (despite the fact that IPv6 is disabled on this machine), so I don't have an informative answer for you. To add to the fun, my provider had a RADIUS problem that made this network unreachable to me for 22 hours, so I'm looking forward to learning a few things when I get on site tonight.

                      db

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

                        I tried disabling both serial ports in the BIOS and pfsense doesn't boot. With one or both serial ports enabled, I have to employ this workaround (manually–the patch package didn't work) in order to be able to edit my pppoe interface. Tried on May 1 snapshot.

                        db

                        1 Reply Last reply Reply Quote 0
                        • D
                          drzoidberg33
                          last edited by

                          Thanks, patch works for me. However I don't recall this happening on 2.0.3.

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