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

    How to setup Wifi from Shell/Console

    Scheduled Pinned Locked Moved Wireless
    14 Posts 2 Posters 8.9k 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.
    • R
      rdtk
      last edited by

      Was able to remote into PC at home where the laptop is and access the web-gui via WAN port.  I was also able to select the wireless card as LAN and also assign same adapter to Opt1 and then configure AP. Dashboard is showing UP for WAN and Opt1.  I went to configure a Cert and got disconnected.  I am hoping it changed from Application mode to what would be setup for Router..

      If I can connect to wifi, how do I confirm this and ensure firewall security? At atleast what default would be?

      1 Reply Last reply Reply Quote 0
      • ?
        Guest
        last edited by

        So I would assume a shell setup is possible. I would loosely follow these instructions.

        http://www.freebsdwiki.net/index.php/AccessPoint

        I have never attempted a complete wireless install from shell, but I have been digging around checking out "if_bridge" under command shell… Seems you can create a bridge from the shell.

        1 Reply Last reply Reply Quote 0
        • ?
          Guest
          last edited by

          Here is an example using laptop.
          https://unixninja.net/tips+howtos/wireless_access_point/

          I am having a hard time understanding your problem. Are you trying to remotely install pfSense, then setup wifi? You mention VPN then Linux and i am lost after that… Break your question down into something digestible.. I dunno why you say Linux Vi, but pfSense does use Vi as well.

          Do you have physical access to the second box your setting up?

          1 Reply Last reply Reply Quote 0
          • R
            rdtk
            last edited by

            My goal is to setup a laptop as access point.  Forget what I mentions about VPN and Linux VI.
            Issue that I found was that I had no LAN port to access web gui since is was being used for WAN. I was able to access web gui from WAN port 2 days ago and I thought I setup wireless properly but I lost connection and cant get back in.  I also dont see the SSID on my other wireless devices.

            Thanks I will take a look at link.

            1 Reply Last reply Reply Quote 0
            • ?
              Guest
              last edited by

              Single Interface Setup

              Fresh Install–From Console
              Set WAN=ATH0
              Set LAN=EM0(Or Similar)
              Goto menu#2
              Set Static IP's for both LAN and WAN(Seperate subnets)
              Set DHCP server on LAN with address ranges.

              Connect to LAN port on pfsense via ethernet and another computer. Wait for Windows to connect.

              Pull up WEBGUI at LAN IP - Setup your WAN as WIFI/AP/SSID///Persist common settings=ON///
              Goto DHCP Server tab. Set WAN DHCP server ON with appropriate address's.

              Now reboot your pfSense laptop.

              On reboot from console menu #1 swap your device assignments like this.

              LAN=EM0
              WAN=ATH0

              Then you need to go to #2 on the console menu and set your LAN IP and re-enable DHCP server and address ranges for your wireless network. You can now set WAN to receive IP via DHCP client.

              Reboot pfsense laptop, disconnect LAN connected computer and when up --Login via wifi to confirm working.

              Now you can use the ethernet jack to provide internet to your pf/laptop from your upstream box.

              1 Reply Last reply Reply Quote 0
              • ?
                Guest
                last edited by

                Here is an old tutorial.Still relevant.
                https://www.youtube.com/watch?v=xd3sHu5uTGw

                1 Reply Last reply Reply Quote 0
                • ?
                  Guest
                  last edited by

                  Changing the LAN IP from 192.168.1.1 is advisable, especially if using on a network with an exsisting 192.168.1.1 addresss, such as your upstream box.

                  In the video he does it from the WebGUI. You could also do it on interface swap setup on my instructions from console. My directions are slighly different. Both work. He details AP setup good.

                  1 Reply Last reply Reply Quote 0
                  • ?
                    Guest
                    last edited by

                    I had to update my instructions to include a dhcp server on both interfaces before swap. It really helped. So i started with 192.168.21.1 on WAN and 192.168.22.1 on LAN before swap and after swap 192.168.21.1 ends up as LAN/wifi and WAN is Dynamic Dhcp.

                    wifi30.jpg
                    wifi30.jpg_thumb

                    1 Reply Last reply Reply Quote 0
                    • R
                      rdtk
                      last edited by

                      Awesome, thank you so much.  Ill try this as soon as i have free time.

                      1 Reply Last reply Reply Quote 0
                      • R
                        rdtk
                        last edited by

                        It worked!
                        Thanks so much!

                        Now I am trying to config OpenVPN… Problems... Guess a different tread for that one.

                        1 Reply Last reply Reply Quote 0
                        • ?
                          Guest
                          last edited by

                          Have you tried this walk-thru for openVPN.

                          https://www.highlnk.com/2013/12/configuring-openvpn-on-pfsense/

                          1 Reply Last reply Reply Quote 0
                          • R
                            rdtk
                            last edited by

                            sorry update. forget if I looked at that last walk-thought, but the laptop was not able to push out a strong enough signal for my needs.
                            I ended up getting a second old pc and putting pcfsense on that and then connected an old wireless router.

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