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

    Need help enabling other Nics to work

    Scheduled Pinned Locked Moved Problems Installing or Upgrading pfSense Software
    34 Posts 5 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.
    • F
      Fevan
      last edited by

      Hi finally got my pfsense box built, I have installed an intel 4 nic Ethernet card (ignoring my realtek onboard which pfsense ignors)

      I have followed a pfsense guide for OpenVPN connection and it is working fine.

      Currently my setup looks like this:

      Wan          ->em0    ->v4/DHCP xx.xx.xxx.x/xx
      Lan          ->em1    ->v4:192 etc
      Opt1        ->em2
      Opt2        ->em3
      VPN(op3)  ->ovpnc1 ->V4.Ip etc

      So I set up pfsense to Wan(em0)connected to broadband router, using the Lan(em1) port connected to PC and VPN is working fine.

      How Can I enable Opt1 (em2) and Opt2 (em3) They are ports 3/4 on my intel nic card ?

      I tried to enable there interfaces but I guess they are not linked yet to my openvpn client settings somehow ?

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

        Interfaces->Assign, "+". Choose which NIC you want for each (in your case I expect it will default to assigning them in a sensible order).
        Interfaces->OPT1 - enable and put whatever private subnet you want, or WAN-style settings if it is a 2nd WAN or…

        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
        • F
          Fevan
          last edited by

          thx for reply phil

          The private subnet is where I am getting confused with is that the settings in the Ipv4 configuration type field?

          I will play around with the settings and see if I can get it to work still thx

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

            If you are using the OPTn port(s) for extra private/local LANs, then just give them static IPv4 addresses in other private subnets. e.g.
            LAN: static 192.168.10.1/24
            OPT1: static 192.168.11.1/24
            OPT2: static 192.168.12.1/24
            …
            Then enable DHCP on each interface, with some range of addresses in each subnet:
            LAN: 192.168.10.100 - 199
            OPT1: 192.168.11.100 - 199
            OPT2: 192.168.12.100 - 199
            ...
            and add firewall rule(s) on OPT1... to pass the traffic you want to allow from OPT1... to other places.

            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
            • F
              Fevan
              last edited by

              I can enable Opt1 and 2 but that does nothing much even after a reboot. I am using my VPNs dns servers to connect to the internet and Wan is DHCP with my real ISP IP showing, the VPN is using some other IP which I am not sure about but it is working on VPN IP check.

              I tried adding static ips to both Op1/2 but how do I enable dhcp afterwards ?

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

                but how do I enable dhcp afterwards ?

                Services->DHCP

                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
                • F
                  Fevan
                  last edited by

                  thx phil but theres 4 different DHCP sections under services :)

                  I tried to play around with the dhcp server and enabled range of addresses in both opt1 and 2 even tried to add more firewall rules for both opt1/2 but no joy.  I think there are many tick boxes and settings and other things I must enable and adjust for it to work.

                  Does anyone have any links to direct tutorials or youtube vids on setting up additional ports and configuring them ?

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

                    Services: DHCP Server:
                    Hit the tab for your new interface and enable the dhcp server on it.

                    Steve

                    1 Reply Last reply Reply Quote 0
                    • V
                      vincom
                      last edited by

                      Maybe i missed it, but what do you want todo with the other interfaces, connecting to ?.
                      pic of your current network and a pic of what u want ur network to be configured as would be great

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

                        ^ I agree not sure what the OP wants interfaces to be used for?  If other network segments, it is as simple as giving them an IP, and enabling firewall rules for that interface to allow traffic you want to allow.

                        If you want to enable dhcp it is a simple checkbox on the interface tab under dhcp server..

                        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.7.2, 24.11

                        1 Reply Last reply Reply Quote 0
                        • F
                          Fevan
                          last edited by

                          Hi will give it another go now that you guys fixed my saving/restore feature.

                          Its a very simple setup

                          broadband Modem (DSL)  > Pfsense PC > PC

                          I have on the Pfsense PC a 4 port Nic, 1 port for Wan with dhcp (em0) 1 port for Lan (em1) connected to my desktop and working fine with my VPN provider and opt1/2 as em2 and em3 (the 2 ports I would like to use also at same time)

                          I would like to run my existing VPN connection to not only the Lan port which is working fine but to the other 2 spare ports so I can connect up a 2nd pc for family member.  So its still under VPN.

                          I know it can work since it worked with a tomato router, all 4 ports worked under the same VPN provider :)

                          I will give it a shot and pop back, once I got these 2 ports working with internet under my VPN I can enjoy Xmas hopefully!

                          1 Reply Last reply Reply Quote 0
                          • V
                            vincom
                            last edited by

                            its trickier under pfsense than a tomato based router as the nics have to be "bridged" in pfsense, trying to make pfsense a multi nic router could be challenging as it was not meant to be a one but is doable.
                            probably easier with a dumb switch connecting it to em1 and the pc's connected to the switch, but not quite sure as for the vpn working in this configuration as im no expert on vpn's.
                            so do a search in bridging the nics, have fun as there is not much info on that but it is out there…...btw, although i like my pfsense setup  i miss my tomato gui

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

                              "I would like to run my existing VPN connection to not only the Lan port which is working fine but to the other 2 spare ports so I can connect up a 2nd pc for family member.  So its still under VPN."

                              No that is not what you want to do..  You don't have a switch laying around, or even an OLD router?  Bridging the interfaces so they act like a switch can be done - but NO not something for a new user of pfsense or networking in general.

                              If you don't have as switch or old router laying around to use just the switch ports.  Then buy one they can be had for like $20

                              http://www.newegg.com/Switches/SubCategory/ID-30?Order=PRICE

                              There are like 2 pages to choose from under $20

                              As to vpn you have setup on your pfsense - then sure you can have all clients use that vpn, or even get fancy and use policy based routing so only specific computers use it, or even only use it when specific dest etc..

                              What did pfsense replace? Most soho routers have built in 4 port switches – so instead of using it as a router or wireless access point you can just leverage its switch ports.  Just disable it dhcp server, disable its wireless and then connect from your pfsense to one of its lan ports, and then your other devices to the 3 other lan ports open on the old soho router.  There you go 3 machines on your pfsense lan network.

                              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.7.2, 24.11

                              1 Reply Last reply Reply Quote 0
                              • F
                                Fevan
                                last edited by

                                Wow a little shell shocked at hearing this news, much appreciated info. I guess I really should have asked this question before spending the money I did !  luckily it was not to much!

                                Its a bit whacky to hear pfsense can't output the VPN so easily to 4 ports,  it was replacing a cheap 2nd hand tomato router which did it no issues.

                                I will have to consider my options at this point still a 15watt AMD AES enabled CPU with pfsense is not bad at all and still best any tomato router in speeds and performance, I may just get some 4 way switch power Ethernet plugs and have everything sorted in seconds.

                                Could I not just enable normal internet over the 2 extra ports?  Or what if I used a 2nd VPN service and then simply use that for the 2 extra ports ?

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

                                  Dude you have 4 nics not a 4 port switch..  This nics are NOT on the same network..  They are not connected to each other in anyway.. They are 4 nics connected to a router..

                                  Your soho router was something like this - see attached.  See the SWITCH where all the ports are connection.  Where you vlan tagged the ports between wan and lan and wireless is bridged to your lan, etc..  Completely different then a router with multiple interfaces.

                                  Now you can get nics to kind of act like a switch by creating a "bridge"  but is still not the same as a switch..  And complicates the setup that I would not really suggest for a new user.  Now where you other nics come in handy is creating multiple network segments.

                                  Now if you want you could create a new segment say 192.168.2.0/24 while your lan is 192.168.1.0/24 that is very easy. Now you can route traffic between these networks.  And sure they could all use pfsense to get to the internet or use the vpn connection that pfsense has setup.  So your machine you plug into the nic that is 192.168.2.0/24 would get a 192.168.2 address etc.  And if you wanted a 3rd create 192.168.3 on that interface.

                                  sohorouter.png
                                  sohorouter.png_thumb

                                  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.7.2, 24.11

                                  1 Reply Last reply Reply Quote 0
                                  • F
                                    Fevan
                                    last edited by

                                    This is the card I have
                                    http://h30094.www3.hp.com/product/sku/3419886/mfg_partno/435508-B21

                                    Its the hp intel 364T 4 port Ethernet card.

                                    Wan/em0 is connected to DSL router and gets dhcp ok

                                    lan/em1 is connected to desktop pc and gets vpn ok

                                    So just to make sure I am getting this right…. I can't make real use out of the other 2 ports since its all connected to one unit unlike a routers vlan design I take it ?  Obviously without getting my head around bridging and more complex stuff !

                                    If that is the case then I should still be able to get a cheap switch or one of these power Ethernet adapters like this : http://www.amazon.com/ZyXEL-Powerline-Gigabit-Wall-plug-PLA4225KIT/dp/B0061308MA/ref=pd_sim_sbs_e_6/175-2255949-3655201

                                    and then just use the existing lan > 4 way powerline and split to 4 connections, all under vpn I take it ?

                                    1 Reply Last reply Reply Quote 0
                                    • V
                                      vincom
                                      last edited by

                                      what i and johnpoz said about bridging, its not really like a switch and not a newb thing to try and needs some cpu strength to handle 4 bridged nics, its doable just not recommended. if pc's are already wired for network just buy a switch as the power over ethernet is not really needed

                                      1 Reply Last reply Reply Quote 0
                                      • F
                                        Fevan
                                        last edited by

                                        Hi I understand, I prefer to keep it simple and working.

                                        I can get a cheap switch but ill be moving this pfsense box and router to a different room, right now am running 30 meters worth of of wires around rooms and its messy.

                                        Is a power over Ethernet not recommended?  many of them have 2 port or 4 port switches making this ideal for my set up.

                                        Its not the end of the world if the 4 ports do not work, I just need 1 at the end of the day,  my main priority was to use AES encryption for VPN support and not be limited to tomato or ddwrt routers and very limited 20-30meg max broadband speeds.  I was either going for netgears R7000 at $200 or my Pfsense build @ $300, so for the extra bit I am future proofed and not limited to low speeds under VPN:)

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

                                          Arrrghhh dude your ports are very usable, nobody has said anything different.. They are full NICs not switch ports.. As I said you can just fire up a port on that card in another network and connnect whatever you want to it and it will work.. Just not on the same network like a switch would do, unless you bridge them..  Which is NOT something a new user to networking should be doing ;)

                                          But sure if you want to play have fun..  As to a switch supporting POE, do you have a need for this?  Do you have devices like an Accesspoint that your going to plug into the switch that can get power from the switch… If not there is no point to POE.

                                          Do you still have your old router - use it as a switch..  No need to buy anything.

                                          A switch allows you to run 1 wire to where pfsense is - and then connect your switch where you have devices in the same room, switches can be chained..  So for example I have switch off my pfsense lan nic, that switch has wire that runs to front of the house where another switch and my dvrs, slingbox, etc. are plugged into the network.  There is also a cable that runs from the center switch to back end of the house where another switch is that I can use to connect stuff back there.

                                          Try to leverage the nics in your pfsense for devices especially if those devices are not right next to your pfsense box is just pointless nonsense..  You use switches to connect devices to your network, you buy as many ports you need, if you need more buy another switch plug it in, etc..

                                          If you don't currently have use of another network segment to take advantage of your 4 port nic - just think its future proofing.  Maybe next week you will want to isolate your wireless on its own segment.  Maybe you will need another lan segment for say your media devices to keep their broadcast traffic off your main lan.. those things are noisy little suckers.. ;)

                                          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.7.2, 24.11

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

                                            ^Exactly.
                                            What you have with a 4 port NIC card, 4 separate NICs, is far more powerful that a SOHO router style switch.

                                            It is definitely possible to bridge the NICs if that's the way you want to go. It's just that it can be a bit confusing until you get your head around it and nobody here wants to introduce unnecessary confusion! To give you some idea of what's involved here's a post a wrote some time ago: http://forum.pfsense.org/index.php/topic,48947.msg269592.html#msg269592

                                            You don't need to bridge the two NICs to give the second subnet access to the VPN. To do that you simply need to add a firewall rule that catches traffic and sends it via the VPN gateway.

                                            Steve

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