OPNsense Forum

Archive => 18.7 Legacy Series => Topic started by: XOIIO on November 05, 2018, 03:44:07 am

Title: [solved] No internet access from client with DHCP, only on static IP's?
Post by: XOIIO on November 05, 2018, 03:44:07 am
Hey all, so I was tearing my hair out for over half an hour trying to figure out why I wasn't getting any internet access on opnsense, when I used vnc to connect to a machine that has a static IP set up in windows.

Turns out that with out of the box opnsense, any computers I have set to a static IP will connect to the internet no problem, no bandwidth issues, nada, but anything that is set to DHCP can see opnsense and stuff on the lan, but can't connect to the internet, and I haven't a clue why.

I tried turning off the dhcp service, and setting the lan from static ip to dhcp, but then that basically stopped me from being able to get into opnsense at all and I had to reinstall.

Here's a bunch of screeenshots of what I can tell are the relevant sections, the floating firewall rule I added as someone else mentioned they had a connectivity problem and that fixed it, but my static IP machines had internet access even without that.

https://imgur.com/a/IoH0P3F

There's more I want to do with this, basically my ISP is providing me with two static IP's, and I want to assign the second one (which will be using the wan interface as well) to a subnet or vlan on the lan interface (same physical port) and have some vm's or other devices use that, I have a managed switch, but right now I just need to get dhcp working.

I'm brand new to this thing as a whole, been wanting to do it for a while and forced to jump in due to the isp being annoying, and having their tech support gone, so figured I may as well get around to replacing their router. Hopefully it's just something simple and quick I missed.

edit: oh yeah, so it automatically set lan to static ip as you see, if I try to change it to dhcp it complains that the server is running on this interface, even if I stop it from the dashboard, so I went into services and disabled dhcp, then set the lan interface to dhcp, however then I couldn't log in even after a reboot, presumably because the dhcp service wasn't enabled. It seems to be a catch 22, and I'm not quite sure why static ip is being enabled by default.
Title: Re: No internet access from client with DHCP, only on static IP's?
Post by: XOIIO on November 05, 2018, 08:34:19 am
Uhg, so you know what it was? I had to type in the ip address pfsense is using into the dhcp service settings, I guess for some reason leaving it blank didn't actually grab the one that it was using and set it as the gateway.