-
Notifications
You must be signed in to change notification settings - Fork 358
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make default gateway IP '.1' instead of '.254' #175
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM! Tested this with Elliot last week, great work identifying the fix!
It has been a while since I have tried it, but last time I used VirtualBox, .1 did not work for the gateway with the current version of FakeNet at that time. I filed an issue about it but then went back to using VMWare: #168 |
@thejoelpatrol That is interesting... In all of my testing, FakeNet always sets the Gateway to flare-fakenet-ng/fakenet/diverters/winutil.py Line 366 in ac33a70
And that of course fails in VirtualBox due to it not being the DHCP server (at least not by default) or the Virtual Adapter address (which is typically Here is that default on version And here is the change to Also, here it is with the change to I am on VirtualBox 7.0.14r161095, Virtualbox Guest Additions: 7.0.14 |
@emtuls thanks for all that testing. I can't explain why it didn't work for me at that time, I didn't dig into the FakeNet code to try to understand it fully beyond just figuring out how to reproduce it locally. I hope it was something specific to my setup that was uncommon. But just something to be aware of, in case it's one of those bugs that goes away by itself and then comes back by itself. |
eb5fe2b
to
492f7b9
Compare
* Use .1 for default gateway instead of .254
Update documentation to use new year Update documentation links to current working links Update documentation to use Mandiant instead of FireEye
Thanks for the PR, @emtuls! Tested from my end as well and the fix works smoothly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approved for pre-release
* Make default gateway IP '.1' instead of '.254' * Use .1 for default gateway instead of .254 * Updates to documentation: Update documentation to use new year Update documentation links to current working links Update documentation to use Mandiant instead of FireEye * Fix filepath of HTML report template * Minor code cleanup * Update CHANGELOG --------- Co-authored-by: Tina Johnson <[email protected]>
* Make default gateway IP '.1' instead of '.254' * Use .1 for default gateway instead of .254 * Updates to documentation: Update documentation to use new year Update documentation links to current working links Update documentation to use Mandiant instead of FireEye * Fix filepath of HTML report template * Minor code cleanup * Update CHANGELOG --------- Co-authored-by: Tina Johnson <[email protected]>
* Make default gateway IP '.1' instead of '.254' * Use .1 for default gateway instead of .254 * Updates to documentation: Update documentation to use new year Update documentation links to current working links Update documentation to use Mandiant instead of FireEye * Fix filepath of HTML report template * Minor code cleanup * Update CHANGELOG --------- Co-authored-by: Tina Johnson <[email protected]>
Having the default gateway be set to the common default IP address of the Virtual Adapter (
.1
) fixes an issue where FakeNet expects to be able to reach out of the guest via the DHCP server which it assumes is at.254
.The DHCP server is only at
.254
if using VMware and the last address in the IP pool for DHCP is.254
, which is fairly common, but this is not the case on VirtualBox. VirtualBox uses 1 IP address less than the lowest address in the IP pool for DHCP and thus, FakeNet does not work out of the box for VirtualBox.If we instead use the IP Address of the Virtual Adapter created by VMware and VirtualBox, which is typically the
.1
address, we can make FakeNet work out of the box for both of these platforms.Context wise, this is for a Host-Only network for a guest VM where DHCP is enabled.