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

    Install help for a nanobsd system

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    28 Posts 4 Posters 6.3k 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.
    • stephenw10S
      stephenw10 Netgate Administrator
      last edited by

      By default pfSense blocks all incoming traffic on WAN (as you would expect in a firewall) and allows all outgoing traffic.

      I am using a V120 to send this message. The UK firmware comes preconfigured as a bridge. I simply plugged it in and configured pfSense to connect via PPPoE and it worked.  Later I messed about with some other settings but it wasn't necessary.

      Your firmware is clearly different but it shouldn't be hard to do.

      The PPPoE pass-through mode looks to be the same as mine.

      Steve

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

        @Legion:

        However, I can't ping out or see anything except 192.168.1.10 or the LAN subnet range (apart from some random dynamic public IPs that various log screens give me - again, presumably ISP-assigned).

        Posting the system response to a ping command is almost always more informative than "can't ping". Please post the output of the pfSense shell commands```
        ping -c 3 8.8.8.8
        ping -c 3 www.google.com

        
        Please also post output of pfSense shell commands:```
        /etc/rc.banner
        netstat -r -n
        ifconfig
        ```to give  more complete statement of system configuration and state.
        1 Reply Last reply Reply Quote 0
        • L
          Legion
          last edited by

          Thanks guys. As I said, no idea when it comes to network stuff.

          I'll get back to you with that info when I get home and have a play with the setup again, in about 7 hours.

          1 Reply Last reply Reply Quote 0
          • L
            Legion
            last edited by

            OK, setup was reset to factory defaults (modem + I reassigned the interfaces on pfSense and reset their IP addresses via the shell):

            Draytek Vigor 120 in full bridge mode w/ IP 192.168.1.1, latest firmware (3.2.4.4).

            pfSense:
            Wan → em0 → 192.168.1.10
            Lan → em2 → 192.168.2.1

            From pfSense shell:

            $ ping -c 3 8.8.8.8
            ping: sendto: No route to host

            $ ping -c 3 www.google.com
            ping: cannot resolve www.google.com: Host name lookup failure

            Can succesfully ping stuff that I've directly assigned, e.g. 192.168.1.1, 192.168.1.10, 192.168.2.1, 192.168.2.xxx if I setup dhcp on the LAN and ping within its start → end range.

            From the Windows box, all the ping command outputs are the same except I can't get to 192.168.1.1 (the modem).

            Back to pfSense shell:

            /etc/rc.banner:
            *** Welcome to pfSense 2.0.2-RELEASE-nanobsd (i386) on pfSense ***
            WAN (wan) → em0 → 192.168.1.10
            LAN (lan) → em2 → 192.168.2.1

            netstat -r -n gives something pretty much the same as:

            ifconfig gives pretty much:

            Obviously those last two are webGUI screenshots. There was too much info to manually copy from the pfSense shell to the Windows box but if you need me to double check it's equivalent I can do it (or I could try to cat the files somewhere writeable on the pfSense install, if it exists).

            1 Reply Last reply Reply Quote 0
            • stephenw10S
              stephenw10 Netgate Administrator
              last edited by

              Ok, that looks to be what I would expect.
              With the V120 in bridge mode it should not have dhcp enabled so it won't hand out an IP address to the pfSense WAN as you've found. You have assigned it statically instead but that is not the correct setup. In bridge mode the V120 is not connected to the internet and will not route packets directly.
              Instead you should change your WAN interface to PPPoE and enter your ISP login details. When pfSense tries to connect the V120 will bridge the connection to your incoming PPPoA line and it should connect. I am also using 3.2.4.4 but using ADSL Firmware Version: 332201_A Hardware: Annex A
              The only thing to check is that your DSL line settings are correct. This varies by ISP and more so by country so I can't help your there. However the UK firmware selects the most common UK settings by default.

              Once you have changed your WAN to PPPoE you will no longer be able to connect to the V120 webgui. This can make things a bit tedious! If you need to check the settings it is usually easiest to connect to directly with a laptop statically configured in the 192.168.1.1 subnet.
              Once you have things working you can make some adjustments to pfSense to allow access, see:
              http://doc.pfsense.org/index.php/How_can_i_access_my_PPPoE_Modem_on_WAN#For_2.0

              @Legion:

              Obviously those last two are webGUI screenshots. There was too much info to manually copy from the pfSense shell to the Windows box

              You can connect to the pfSense CLI via SSH using a suitable Windows program such as putty. Then you can easily copy and paste output. Just enable Secure Shell in the webgui in System: Advanced: Admin Access.

              Steve

              1 Reply Last reply Reply Quote 0
              • L
                Legion
                last edited by

                Thanks Steve. I had set up PPPoE interfaces before, but for the purposes of that post I started from scratch and only did console interface/IP assignment (I didn't see if you could setup a PPPoE interface via the console?).

                Anyway, I've still had no luck. I went ahead, started from scratch again today. One thing I noticed was if I set up the LAN IP as 192.168.2.1 I need to set DHCP on its subnet (and I've been assigning the start -> end range as 192.168.2.100 -> 200, just because). Otherwise I couldn't ping 192.168.2.1 or anything from the Windows box. I set up a WAN interface with DHCP today in combo with the aforementioned LAN settings (couldn't seem to ping 192.168.2.1 until I did that to the WAN).

                And here are my results:

                $ /etc/rc.banner
                *** Welcome to pfSense 2.0.2-RELEASE-nanobsd (i386) on pfSense ***
                WAN (wan) → pppoe0 → 58.7.78.54 (PPPoE)
                LAN (lan) → em2 → 192.168.2.1

                $ ping -c 3 8.8.8.8
                successful ping

                $ ping -c 3 www.google.com
                ping: cannot resolve www.google.com: Host name lookup failure

                $ netstat -n -r

                $ ifconfig

                –----------------------------------- Windows box (cygwin “shell”) -------------------------------
                $ ping 8.8.8.8
                successful ping

                $ ping www.google.com
                Ping request could not find host www.google.com. Please check the name and try again.

                $ netstat -n -r

                $ ipconfig /all

                I've snipped some things here and there, obviously. I wish I knew what I was missing, because it can't be this hard, surely. I will check the DSL line settings but I'd be surprised if my ISP is doing anything unusual. It's a pretty big ISP and they're pretty progressive and flexible. I'll do a search for more info.

                1 Reply Last reply Reply Quote 0
                • L
                  Legion
                  last edited by

                  DSL settings from old modem:

                  Those were the settings I had on the Vigor120. I didn't really touch any of the pfSense settings and would be surprised if they didn't match.

                  1 Reply Last reply Reply Quote 0
                  • stephenw10S
                    stephenw10 Netgate Administrator
                    last edited by

                    Ah, I think you have fallen foul of a pfSense bug in 2.0.2:
                    http://redmine.pfsense.org/issues/2728

                    I completely forgot about that because I am not using my ISP provided DNS servers.
                    You can either enter the DNS servers manually like I do, either your ISPs or something else (I use Google's DNS servers at 8.8.8.8 and 8.8.4.4).
                    This is done in System: General Setup: in the webgui. Uncheck the box that allows the settings to be overridden.

                    Or you can use one of the 2.0.3 snapshots which have fixed that bug:
                    http://snapshots.pfsense.org/FreeBSD_RELENG_8_1/i386/pfSense_RELENG_2_0/

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • L
                      Legion
                      last edited by

                      Cool! Thanks for the diagnosis. I tried setting up my ISPs DNS server as you said, with google's as backup. Didn't work, couldn't "see" outside the LAN. So I tried the snapshot advice and went with a 2.1 nightly build (pfSense-2.1-BETA1-4g-i386-nanobsd_vga-20130223-1639.img). At least I'm getting somewhere, but still can barely "see" out.

                      Some random screens:

                      At least some traffic is flowing via pppoe0, whereas before your help there was none. However, the only external ping that succeeds (out of the handful I've tried) is to google's DNS server at 8.8.8.8. That must be the server that's helping me resolve names, because my ISP's IP name is resolving now. But curiously I can't ping the ISP's main website address directly. I should've tried pinging my ISP's DNS server. I'll try after this post, but swapping connections between my old modem and the new pfSense box is annoying and time consuming while the Windows box brings up the connections.

                      I did setup a dyndns update service. That worked, whereas it didn't with the 2.0 setup. Light on the webGUI is green and it says it's updated.

                      I wasn't sure what to do with some of the new interface IP settings via the pfSense console - ipv4 gateways on the LAN and WAN, ipv6 addresses (I left those alone). Hopefully that's all alright.

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

                        For some reason the pfSense default route points to the IP address of your LAN interface. I can't imagine a circumsance in which that would be a useful thing to do.For some reason you have routes to particular individual web sites, perhaps trying to correct an earlier mistake. I suspect you have done more to your system than you have owned up to!

                        When pppoe starts up on WAN the default route is normally set to the IP address of the other end of the PPPoE connection.

                        1 Reply Last reply Reply Quote 0
                        • P
                          phil.davis
                          last edited by

                          It looks like you have some non-default settings in System->Routing Gateways:

                          1. WAN (probably called WAN_DHCP or similar) - monitor IP set to 8.8.8.8 - that will add a specific route to your routing table sending 8.8.8.8 out WAN (your pppoe) - this is a good thing and the reason you can ping 8.8.8.8
                          2. GW_LAN in your screen shots - there seems to be a (default) gateway set on LAN - normally LAN should have no gateway, and almost never is the default gateway.
                            Suggestion: change the default gateway to WAN and then delete GW_LAN. (edits/deletes in System->Routing Gateways tab)

                          As the Greek philosopher Isosceles used to say, "There are 3 sides to every triangle."
                          If I helped you, then help someone else - buy someone a gift from the INF catalog http://secure.inf.org/gifts/usd/

                          1 Reply Last reply Reply Quote 0
                          • L
                            Legion
                            last edited by

                            Thank you very much, wallabybob and Steve (and phil, as I was typing my reply)! Posting from pfSense now, before I take it down again and lock it down. No doubt many more questions to come.

                            wallabybob, it was a case of Hanlon's Razor I think.

                            I don't remember configuring it, but I ended up with two gateways on here:

                            with the LAN being the default and probably pointing to 192.168.2.1 (i.e. itself). Maybe I did that from the pfSense CLI when setting interface IP addresses?

                            Deleting the default LAN one and setting the default to WAN did the trick.

                            Also, if I manually set DNS servers (my ISP and the two google ones) as Steve suggested with my 2.0.2 build, they appear in the routing table like this:

                            Clearing out those settings (obviously the bug's fixed in 2.1), I end up with a table that looks like this:

                            which "feels" more like it should now that I have a vague clue what to look for.

                            Now that I've gotten the system up and running, be prepared for 1000 more dumb questions as I delve into the world of pfSense. Next steps, WLAN interface, VPN access to the webGUI, certificate or time-based rules for three restricted users w/ unlimited access for two other users, locking everything up based on MAC addresses, setting up a guest WLAN interface (virtual?) for visitors. Then, trying to get 802.11n working (with 2.2, I guess). I've spent $$$ on hardware, so giving up is not an option.

                            Interestingly, one other thing I still need to do with 2.1 is the kern.cam.boot_delay=10000 setting for my USB system. Won't boot without it.

                            1 Reply Last reply Reply Quote 0
                            • L
                              Legion
                              last edited by

                              OK, another hiccup. I went back this afternoon to set up a wifi interface. Similar to before I could instantly connect within the local net but not "see" out. In the process of changing some settings (bit like the doc.pfsense tutorial), the webGUI hung, the pfSense box died with a page fault or something. I tried rebooting, but I get a series of messages and can't proceed. Some of the messages are like the seemingly well-worn one where I should specify "set vfs.root.mountfrom.options=rw" at the loader prompt. That's obviously irrelevant to my ro USB installation, but I tried anyway.

                              The place where it crashes every time is on configuring the OPT1 interface. I'm guessing since that's where the webGUI hung some settings got corrupted.

                              I tried booting in safe mode, single user mode, USB mode, setting a few things at the loader prompt (e.g. "if_ath_load=NO") but nothing worked.

                              The most common place it dies indicates that there's a problem with ath0, and it's usually right after trying to load OPT1 (gets a few more lines of boot output then dies).

                              My question is, is there a setting I can set that will prevent the kernel trying to load OPT1? I'd prefer to try to repair my semi-working install than reinstall from scratch, but if it's irrepairable I will do that.

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

                                I presume OPT1 is the ath0 WiFi interface. Is that interface configured as an AccessPoint? (Mode = AccessPoint, other choices are Infrastructure and Ad-Hoc)

                                I think I have read recently that Mode = Infrastructure on ath devices seems to cause system crashes.

                                Is the system now crashing on startup? You might need to temporarily remove the WiFi interface to stop the crashes on startup so you can change the configuration.

                                1 Reply Last reply Reply Quote 0
                                • L
                                  Legion
                                  last edited by

                                  Yes, OPT1 == ath0.

                                  I set it up as an access point, but it wasn't working so that is what I was doing ( from memory) - changing to infrastructure mode.

                                  Card is an Atheros 9280 mini PCIe.

                                  Physically it's underneath another board (Jetway's "daughter board" interface) and the whole router box is a tight fit. It might be easier to just reinstall pfSense than pull out the screwdrivers. Then I'll slowly get more familiar with pfSense anyway. I just hoped there was a command line way to prevent interfaces from loading.

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

                                    Reinstall will work. It is worthwhile saving the pfSense configuration file from time to time.

                                    Are you wanting the pfSense WiFi interface to act as an AccessPoint?

                                    1 Reply Last reply Reply Quote 0
                                    • L
                                      Legion
                                      last edited by

                                      Lesson learned.

                                      Yes, I'm replacing a wifi router at home. An all-in-one Intel Atom box with a 3 x Intel NIC add-on card and an Atheros 9280 wifi add-on card with an external antenna. pfSense fulfils a particular need I have for firewall management, that's why I'm going with it.

                                      1 Reply Last reply Reply Quote 0
                                      • stephenw10S
                                        stephenw10 Netgate Administrator
                                        last edited by

                                        The Atheros 9280 is a relatively new card. I imagine it will only work at all under 2.1 and even then I don't know how much support it will have.
                                        Definitely no 5GHz support, almost certainly no 802.11N support. If it works at all it will be in 802.11G mode. If you are configuring it as 802.11N try using only 'G' mode.

                                        Steve

                                        1 Reply Last reply Reply Quote 0
                                        • L
                                          Legion
                                          last edited by

                                          Thanks to all your help I'm now an "expert" at installing pfSense 2.1.

                                          In short, I can get a good basic working system.

                                          I did get several hangs on reboot while trying to set up a WLAN. Now I've got about 10 config backups after taking wallabybob's advice and quite a few of them have been used. Had to reimage a few times I got so stuck. But now I'm on a good config and it all seems good.

                                          I followed this method to set a WLAN on my Atheros AR9280. Config looks like this:

                                          I could also "sort of" get it working in 802.11ng mode, except when I do it reverts to channel 1 (no matter what I set it to in the webGUI) and I run out of patience waiting for my Windows box to connect again. That is, pfSense boots fine and I can mess around on its shell and ifconfig tells me that the WLAN is in 802.11ng mode, but I can't connect via the LAN with my Windows box (and I didn't try with a wifi device). Rebooted pfSense, Windows, reconnected cables, after about 10 minutes of stuffing around I gave up. So I'll stick with 802.11g for now (good enough for my needs) and revisit the topic later on.

                                          802.11n isn't an option on the drop-down box in the webGUI, just ng (amongst others).

                                          I added these lines to loader.conf.local, not sure if I need them:

                                          I'm happy to post any specifics if you want to know more about my config.

                                          Thanks again.

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