Need some help getting this set up



  • I'm trying to set up two LAN ports so I can hook up my switch to one, and my server to another. The problem is, my server isn't getting an IP address when I connect it to the pfsense machine. I've tried connecting it to both ports, and it doesn't work with either. The switch however, works with both. I've set the second LAN port to bridged mode with a static IP on the same subnet as the first LAN port.

    I'm using a D-Link DIR 615 as a switch (connected by a LAN port, not WAN). The strange thing is, I had this working for like 30 minutes, then the server lost connection and it hasn't worked since then. It only gets a LAN connection at the moment… this is really weird.

    Another issue I'm experiencing is that I can't actually connect more than one PC to the D-Link before it stops working properly.

    Basically, I'm completely lost. I need you guys to help me figure out how I can set this up. What I'm trying to achieve is that my server is connected to one of the two LAN ports on my pfsense machine. On the other port, I want my D-Link router because I need the extra LAN ports (I have two more machines to connect by cable, and two by wireless). In addition, all that needs to be on the same subnet, because I won't be able to play on the game server otherwise (source engine game).

    Is there any way to achieve what I'm after here, or do I have to try something else?



  • Sounds like your LAN card(s) might not be able to do auto crossover which is what you need if you intend to connect any computer directly to another with a network cable.  Why not just connect the server to the switch?

    Do normal clients work via the switch?



  • @mhab12:

    Sounds like your LAN card(s) might not be able to do auto crossover which is what you need if you intend to connect any computer directly to another with a network cable.  Why not just connect the server to the switch?

    Do normal clients work via the switch?

    It turns out I messed something up with the server, but I have managed to fix it again (for now, haha). Normal clients work via the switch, but only the first computer i connect gets a DCHP lease (this is via cable, wireless is flawless seemingly) but the second gets an unidentified network.



  • sounds a bit like my network set up however, mine is set like this:

    modem -> PFSense -> switch1 (moms, PC, dad's PC, wireless AP, mom's laptop [as needed]) -> switch2 (my PC, printer, my old dell laptop [which I no longer use so i have taken it off line to remove it from the network today]) -> switch3 (xbox360, NAS, wireless AP [for the other end of the house], any other computers or what ever my friends may have when over at my house)

    all my machines get an IP just fine, I let the PFbox run the DHCP as well, if you have a similar set up wither your PF box and server are both running DHCP they are most likely fighting each other, so I would turn off DHCP on the server (or PF) and have only one acting as the DHCP, that may also help you, not sure exactly but based on what you said so far that may be the best thing to try first.



  • I only have PF acting as DCHP server, but I think the issue is related to the router I'm using. The thing only works as long as only PF is connected to it by cable.

    For example, PF is connected and I connect my lappy and printer (both are wireless). That works fine, both get an address. The issues occur when there is more than one cabled device connected. The router doesn't seem to know what to do, so it doesn't work unless I configure the IP manually in windows.

    I'm thinking the only way I could resolve this is by getting a proper switch for my server and desktops, and having only PF connected to the router I'm currently using (the D-Link I mentioned).



  • your router may be the culprit, from what it looks like to me, is it also running DHCP, if so it will fight with PF…best set up I would say would something like mine

    modem -> PFSense -> switch (or comparable device that will not attempt to handle DHCP) have you already attempted a configuration like this or does the same issue still persist even with a configuration similar like this?



  • @jaime:

    your router may be the culprit, from what it looks like to me, is it also running DHCP, if so it will fight with PF…best set up I would say would something like mine

    modem -> PFSense -> switch (or comparable device that will not attempt to handle DHCP) have you already attempted a configuration like this or does the same issue still persist even with a configuration similar like this?

    I'm 100% sure that DCHP is disabled on the router. It always works fine as long as I only have PF connected on one of the LAN ports before connecting another cabled device. Same goes for wireless, but I can have an unlimited amount of wireless connections without that causing trouble. What I think is happening is that the router doesn't know where to direct new connections when there is more than one cabled device hooked up to it. As I said, I don't have a real switch, so I can't try your setup.

    Would getting a real switch get rid of this issue though? Is there something I have to configure to make it work correctly?



  • I figured out what the problem was. The second LAN NIC (opt1) was blocked by the firewall when the computers connecting to the router requested DCHP.



  • Can you post the logs in states of your pfsense box?



  • I could if you tell me how :P

    It's been working for a while though, so you'd probably find a lot of other stuff in there as well.


Log in to reply