After replacing router, 2nd NIC on server not working right
-
Server with 2 NICs (1 for internal use and 1 for public-facing servers).
Running pfSense 25.11.1-RELEASE
The last few months, I've been rejiggering parts of my home network, moving from a plain Debian server to TrueNAS, setting up Docker-based services, etc.
I was running Immich in Docker in TrueNAS. HAProxy was handling
forwarding external connections to it on "public" NIC, with a Let's Encrypt cert.When I was still running Debian instead of TrueNAS, I had two Apache web sites running inside of a virtual machine and they were serving just fine from the "public" interface.
Everything was running perfectly but my old router failed. I bought a new one and restored from a saved config file.
Original Router: little 2-port SG-2220
New Router: little 5-port SG-2100TrueNAS private internal interface: 10.10.20.10
TrueNAS public external interface: 10.10.50.10Public VLAN gateway of 10.10.50.1 is pingable from my infrastructure network of 192.168.0
nmap 192.168.0.1 (pfSense)
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
443/tcp open https
8443/tcp open https-alt (pfSense)nmap 10.10.50.1 (gateway of public VLAN)
PORT STATE SERVICE
22/tcp open ssh
53/tcp open domain
8443/tcp open https-alt (pfSense)Obvious security problem here, which I will address later.
I have 6 VLANs defined and they work fine on the new router. Also, internal web sites (pfSense, TrueNAS, WAP) work okay. HAProxy is forwarding the traffic and providing encryption with no trouble.
My problem is that I cannot access servers running in Docker on the "public" interface. When I turn on HAProxy health check, it says that the server is not running but it is.
Could be a problem with the new router's built-in network switch, which the old router did not have. Currently, the switch in the new router is running as a dumb switch (no VLANs configured). I think that is basically what the old router's single LAN NIC was doing.
I really don't think that the new router's built-in switch is the problem. If it was, I'd have other VLAN-related problems, which I don't.
I feel like I must be overlooking something obvious.
-
Might need a diagram here. It's unclear quite how those subnets are connected. Or where you are trying to connect from.
But, yes, in general there should be no real difference between the SG-2220 and the 2100 when the switch isn't in dot1q mode.
If it worked before I'd expect it to still work now. -
@stephenw10 Thanks for responding.
I have it working now. My problem was that most most recent router config backup (a couple weeks old) was not the most recent that I needed. I had aged out of my 100 automated backups due to all of the tweaking and testing and debugging that I did over several weeks.
I THINK that my problem was that I needed to set promiscuous-mode on the VLAN interface to support the Docker macvlan network that I was trying to create.
I dunno -- all of this is at the edge of my understanding and but I'm now better organized, saving my router, TrueNAS, and Portainer configs with a well-commented changelog file.
Anyway, thanks for checking in on this problem
Privacy Policy · Cookie Policy