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

    Pfsense as a router. Please help!

    Scheduled Pinned Locked Moved General pfSense Questions
    26 Posts 6 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.
    • A
      agustinrojen
      last edited by

      pfsense setup. Please help. I already have connection between modem and pfsense. Now. From pfsense to switch using the other LAN port. Therefore, I connected other PC devices into the switch as indicated in the atrachment picture. There is no internet access. So how do i setup my opnsense as a router? Am i gonna do bridging? Etc. Or what?

      Thank you!
      pfsense.jpg
      pfsense.jpg_thumb

      1 Reply Last reply Reply Quote 0
      • JKnottJ
        JKnott
        last edited by

        Do you have an Internet connection from pfSense?  That is, can you go to a command prompt and successfully ping some site?  If you can't do that, then clients behind pfSense won't have access either.

        PfSense running on Qotom mini PC
        i5 CPU, 4 GB memory, 32 GB SSD & 4 Intel Gb Ethernet ports.
        UniFi AC-Lite access point

        I haven't lost my mind. It's around here...somewhere...

        1 Reply Last reply Reply Quote 0
        • johnpozJ
          johnpoz LAYER 8 Global Moderator
          last edited by

          So pfsense gets what IP on its wan? If that device is really a gateway and doing and your getting the same network as on your lan side of pfsense then not going to work.. If your devices are getting dhcp from your wifi "router"?

          You state pfsense can talk to your "modem" so I take it really a gateway not really a modem that just would put a public IP address pfsense wan, etc.

          An intelligent man is sometimes forced to be drunk to spend time with his fools
          If you get confused: Listen to the Music Play
          Please don't Chat/PM me for help, unless mod related
          SG-4860 24.11 | Lab VMs 2.8, 24.11

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

            Omg ur right. My pfsense doesnt have internet connection because it cant ping www.google.come. said no route to host. What do I need to do? Please help :(

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

              My modem and pfsense is connected through lan cable.

              1 Reply Last reply Reply Quote 0
              • johnpozJ
                johnpoz LAYER 8 Global Moderator
                last edited by

                What does pfsense show for its want IP?

                An intelligent man is sometimes forced to be drunk to spend time with his fools
                If you get confused: Listen to the Music Play
                Please don't Chat/PM me for help, unless mod related
                SG-4860 24.11 | Lab VMs 2.8, 24.11

                1 Reply Last reply Reply Quote 0
                • DerelictD
                  Derelict LAYER 8 Netgate
                  last edited by

                  Edit the WAN interface and configure it for whatever your ISP or modem requires. DHCP, PPPoE, Static. Anyone's guess at this point!

                  Chattanooga, Tennessee, USA
                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

                  1 Reply Last reply Reply Quote 0
                  • jahonixJ
                    jahonix
                    last edited by

                    @agustinrojen:

                    So how do i setup my opnsense as a router?

                    Maybe install pfSense first?!!
                    You will not get help on the fork in this forum.

                    1 Reply Last reply Reply Quote 0
                    • johnpozJ
                      johnpoz LAYER 8 Global Moderator
                      last edited by

                      ^ heheheh that is funny didn't catch that.. So which is OP are you running pfsense or that crapoff?

                      An intelligent man is sometimes forced to be drunk to spend time with his fools
                      If you get confused: Listen to the Music Play
                      Please don't Chat/PM me for help, unless mod related
                      SG-4860 24.11 | Lab VMs 2.8, 24.11

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

                        Lan ip set to dhcp mode. Omg. Im sorry im just newbie :(

                        That is my setup. Pfsense installed on a laptop unit.

                        20180124_124028.jpg

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

                          I can ping google now on my pfsense. But still no connection iin other devices connected to switch.

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

                            As you can see in the image below. I have a PFsense installed on a laptop unit with two LAN adapters. and first. I did connect my MODEM into my pfsense LAN 1, and it connected because I can ping website such as google, facebook, etc.

                            and… My PFSense LAN 2 is connected to the switch that will provide internet connection for the other devices

                            But my problem is. Why there is no connection in my devices connected to the switch? even though i already have internet connection in my pfsense via LAN1? Do you have any idea? Please help me. Im a newbie in firewalling.

                            Image 1 is my current process.

                            Image 2 is my plan. Thank you!

                            PFSENSEEEEEEEEEE.png
                            PFSENSEEEEEEEEEE.png_thumb
                            pfsense.jpg
                            pfsense.jpg_thumb

                            1 Reply Last reply Reply Quote 0
                            • GertjanG
                              Gertjan
                              last edited by

                              Hi,

                              Looks to me that your wired setup is ok.
                              But help isn't possible right now.

                              I'd like to know why you call the "WAN" interface "LAN 1"  ? What are the IP settings on this WAN interface ?
                              What are your LAN IP settings ? How do clients obtain an IP ? Do they get an IP ? DNS, Gateway, etc, all is good ?

                              You should know is not uncommon these days that people set up their firewall routers these days with an IP like 192.168.1.10 on WAN and "192.168.1.101/24" on the LAN side. Doing so brings 'routing' to a complete halt.

                              So, thanks for the images - that already straights out many things, but the question is now : tell us how you set up pfSense, and we will tell you why that doesn't work  ;)

                              edit : you are already asking the same question here https://forum.pfsense.org/index.php?topic=143117.0

                              No "help me" PM's please. Use the forum, the community will thank you.
                              Edit : and where are the logs ??

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

                                I set it up like this. My PFsense has 2 interfaces. LAN and WAN.

                                I got a modem with a default gateway of 192.168.254.254.

                                Using a UTP cord. I plugged the other side into the LAN/WAN port of my modem and the other side was in my UNIT(PFsense) Lan port.

                                Then I used DHCP mode in pfsense (LAN because i used UTP cord)  to set IP Address automatically. My PFSense LAN has a IP of 192.168.254.100 provided by the DHCP. Now with these settings. I can ping websites. google, facebook, etc.

                                I don't understand the WAN part. So instead of LAN connection(UTP cord). I will use WAN? to connect my PFSense into my modem?

                                Im so sorry for the trouble. I'm doing this because i want to be a network/system admin in my future. T_T  Please help.

                                1 Reply Last reply Reply Quote 0
                                • DerelictD
                                  Derelict LAYER 8 Netgate
                                  last edited by

                                  Please do not start multiple topics for the same problem.

                                  Chattanooga, Tennessee, USA
                                  A comprehensive network diagram is worth 10,000 words and 15 conference calls.
                                  DO NOT set a source address/port in a port forward or firewall rule unless you KNOW you need it!
                                  Do Not Chat For Help! NO_WAN_EGRESS(TM)

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

                                    Sorry sir.

                                    PFSENSEEEEEEEEEE.png
                                    PFSENSEEEEEEEEEE.png_thumb
                                    pfsense.jpg
                                    pfsense.jpg_thumb

                                    1 Reply Last reply Reply Quote 0
                                    • GertjanG
                                      Gertjan
                                      last edited by

                                      @agustinrojen:

                                      Then I used DHCP mode in pfsense (LAN because i used UTP cord)  to set IP Address automatically. My PFSense LAN has a IP of 192.168.254.100 provided by the DHCP. Now with these settings. I can ping websites. google, facebook, etc.

                                      This is messy. I guess your mixing up LAN and WAN or worse.

                                      Please, provide an image like this :

                                      Using username "admin".
                                      Authenticating with public key "rsa-key-20150201"
                                      Passphrase for key "rsa-key-20150201":
                                      pfSense - Netgate Device ID: 20bb46fd95384c37e087
                                      
                                      *** Welcome to pfSense 2.4.2-RELEASE-p1 (amd64) on pfsense ***
                                      
                                       WAN (wan)       -> rl0        -> v4/DHCP4: 192.168.1.11/24
                                       LAN (lan)       -> fxp0       -> v4: 192.168.1.1/24
                                                                        v6: 2001:470:xxxx:5c0:2::1/64
                                       PORTAL (opt1)   -> sis0       -> v4: 192.168.2.1/24
                                      ......
                                      
                                       0) Logout (SSH only)                  9) pfTop
                                       1) Assign Interfaces                 10) Filter Logs
                                       2) Set interface(s) IP address       11) Restart webConfigurator
                                       3) Reset webConfigurator password    12) PHP shell + pfSense tools
                                       4) Reset to factory defaults         13) Update from console
                                       5) Reboot system                     14) Disable Secure Shell (sshd)
                                       6) Halt system                       15) Restore recent configuration
                                       7) Ping host                         16) Restart PHP-FPM
                                       8) Shell
                                      
                                      Enter an option:
                                      

                                      As you can see, I use the default IP on LAN : 192.168.1.1/24 because I'm NOT an expert, so I have no reason at all to change default LAN settings.

                                      My 'modem', hooked up on the WAN interface is a "ADSL modem and router", so I gave (changed !) it's LAN base IP to 192.168.10.1 - the DHCP server in my modem/router is activated, and gave and this to IP to the pfSense WAN interface : 192.168.10.11

                                      Of course, the DHCP server running on pfSense hands out IP addresses to my devices on LAN (and the other 'LAN' network "OPT"), using the default pool (192.168.1.2 -> 192.168.1.254).

                                      No "help me" PM's please. Use the forum, the community will thank you.
                                      Edit : and where are the logs ??

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

                                        Here is my image sir. Omg. :(

                                        20180124_162742.jpg
                                        20180124_162742.jpg_thumb

                                        1 Reply Last reply Reply Quote 0
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by

                                          You have your WAN interface set as wlan0.. (wireless interface) Not a wired interface.. And it has no IP… So no that is not going to work.

                                          An intelligent man is sometimes forced to be drunk to spend time with his fools
                                          If you get confused: Listen to the Music Play
                                          Please don't Chat/PM me for help, unless mod related
                                          SG-4860 24.11 | Lab VMs 2.8, 24.11

                                          1 Reply Last reply Reply Quote 0
                                          • jahonixJ
                                            jahonix
                                            last edited by

                                            Can you please post a picture showing the pfSense version installer as well. In the photos you always cut that out nicely.
                                            Except for all the other problems I'm still not convinced you're using pfSense (never answered my question) instead of the fork.

                                            Until you proof using pfSense indeed I'd be rather sceptical about further troubleshooting help.

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