I've been rocking a Netgear with OpenWrt for a while now with a dynamic IPV4 address, and since I've been hosting a Mailcow server, I've decided to purchase a static IP from Spectrum. The static IP is working via dnat on their own router, and from what I've found across the web, people were having issues enabling port forwarding on their provided routing device, so I decided to immediately switch it to my router when they came in to install the new modem for business with the static IP.
I've tried replicating this on my OpenWrt router (Nighthawk X4S R7800), but I cannot get it working when setting up the static IP on the wan interface. Dynamic works fine for this new installation.
Should I then get this working in the same fashion as it was working on the provided router via dnat?
I've tried dissecting the dnat wiki, but I'll definitely need guidance on how to replicate this on OpenWrt if possible.
I've contacted Spectrum twice to re-confirm that I have the correct static IPv4, cdir/mask, gateway, etc. I can confirm that they have configured the static IP to my requested reverse DNS domain when doing a nslookup, which is required for mail hosting when sending emails to avoid spam chaos.
I noted all configurations and screenshotted all routing, data, etc. Additional Screenshots
Please connect to your OpenWrt device using ssh and copy the output of the following commands and post it here using the "Preformatted text </> " button:
Remember to redact passwords, MAC addresses and any public IP addresses you may have:
I'm not seeing anything that jumps out as problematic. Two thoughts:
Just out of curiosity, have you tried setting your router to DHCP? In many cases these days, the static IPs offered by ISPs is actually achieved using DHCP reservations on the ISPs side. This simplifies the customer configuration -- just use DHCP and your static IP (along with the subnet mask, gateway, and dns) will be automatically configured on your equipment.
Have you tried restarting your modem -- possibly a few times and/or with a long off-period? When you change the equipment behind your cable modem, you need to flush the learned MAC address from the cable modem and allow it to learn the new device -- a cable modem will only provide an IP/service to the MAC address that it has learned. This is typically re-learning achieved by power cycling the modem. Some people say you need to keep the modem off for 30 minutes, but my experience (with Comcast) was that a reboot would do the trick, although sometimes I had to do it more than once. Power down both the modem and the router, then power up the modem and waif for it to fully boot and lock. Then power up the router. And test gain when the router is fully booted.
Yes, DHCP provides the dynamic IP since I have service for both dynamic and static. That's the reason why I'm bringing up the Dynamic NAT topic since that's what's configured on the Spectrum router (screenshots on the link above).
I will try this tonight and get back to you with more information. I'm waiting on everyone to go to sleep to give it a shot ASAP.
Thank you so much for taking some of your time to help @psherman , truly appreciate it!
An additional static IP routed to your line would typically be forwarded by your router to the interface that the mail server is connected to. The mail server would hold the public IP on its Ethernet port so there is no NAT involved.
There is a lot of mangling and routing possible inside a cable modem. The process is supposed to be invisible to the customer, if the modem is properly supported and configured by the company.
There is another problem I forgot to mention. No matter what you do to open the ports on the firewall (example smtp, imaps, etc) it never opens. I even placed the entire mailcow cluster on the DMZ for both IPV4 and IPV6, restarted the router since it's the only way to restart the network daemons after making the changes and still, the ports were not opened after doing an nmap/telnetlportqry test externally. I switched the router back to my OpenWrt and boom! It works.
I've looked trough reddit and seems I'm not the only one with the issue.