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.
    • 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
                                • A
                                  agustinrojen
                                  last edited by

                                  How do I setup WAN then? I don't know any GUI of this firewall to connect it through wifi (WAN) ? Please help T_T

                                  Hello sir. according to my groupmate. ours was called opnsense. the fork. we posted here because we knew this forum have many friendly users and also the setup is the same. hope you don't kick us T_T thank you.

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

                                    "Hello sir. according to my groupmate. ours was called opnsense."

                                    That is some big brassy shiny balls you have there dude… Good luck!

                                    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

                                      we knew we're wrong to ask here. but we didn't expect to be called that way :( we're just asking for help. we're just students with no idea and we just want to learn :(. thank you for the good luck btw. and we hope you can still help us. thank you

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

                                        They have a forum too. You should probably start there.

                                        If there are bugs, etc, you are encountering we won't be familiar with them.

                                        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
                                        • johnpozJ
                                          johnpoz LAYER 8 Global Moderator
                                          last edited by

                                          "but we didn't expect to be called that way"

                                          huh?  Just commented on how big your balls must be to ask for help on the distro your chosen distro stole from ;)

                                          Somewhat like banking with Wells Fargo and then going to Chase bank and asking them to help you balance your check book - only bigger balls than that ;)  Since Fargo didn't steal the idea of checking from Chase.. Nor the software to run the checking accounts in the first place.

                                          If you decide to install pfsense instead be more than happy to help you out.  As I already stated your wan interface is listed as your wifi card… Change it to your 2nd wired nic, or use vlans and should be fine if you only have 1 wired nic.  Your drawing shows 2 connections looks like to me.

                                          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

                                            Locking. OP if you have a question about pfSense software, please start a new thread.

                                            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
                                            • First post
                                              Last post
                                            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.