Comments (7)
Here's the issue: dotnet/runtime#83525.
The workaround looks clunky, will try it tomorrow.
from dhcpserver.
Update: got it working on Ubuntu , so the trick is to bind to 0.0.0.0:67 but before that do a SO_BINDTODEVICE (bind to a specific nic) so it will only act as a DHCP server on that nic's subnet.
see https://github.com/jpmikkers/DHCPServer/blob/netcore/DHCPServer/Library/UDPSocketLinux.cs
Meanwhile, in that branch I've refactored the code a lot to use async/await, still needs some work in the main app though.
from dhcpserver.
Hi,
This could be a source for information:
https://stackoverflow.com/questions/74940771/not-receiving-broadcast-udp-messages-when-binding-to-specific-address
from dhcpserver.
@n-ice-ch I've created a test setup with ubuntu in virtualbox, indeed it seems broadcast packets are dropped somewhere. Disabling ufw doesn't help. I suspected my router, but the broadcasts arrive fine when I send them from ubuntu to windows. .To be continued..
from dhcpserver.
Binding to 0.0.0.0 is a bad idea for a DHCP server, it will start handing out IP leases on all your subnets.
From here https://stackoverflow.com/questions/13666789/receiving-udp-broadcast-packets-on-linux it seems I may have to bind another socket to the subnet broadcast address (e.g. 192.168.42.255) to receive broadcast packets on Linux.
from dhcpserver.
Sounds promising.
I've worked with IPAddress.Any for meanwhile. In my case it does not matter which subnet to serve as I use it as simple PXE.
But on Linux I can serve BIOS requests only. For EFI it does not work with IPAddress.Any.
So I'm very interested on your research.
from dhcpserver.
Related Issues (16)
- Quickstart Guide HOT 3
- DHCP pool bypass of reservations HOT 3
- Support option 82 (DHCP Relay Agent Information) for reserved address/pool assignment HOT 1
- Active Client List?
- Hotspot keeps disconnecting HOT 1
- issue about running on linux. HOT 1
- Option to Update a windows DNS Server. HOT 2
- Port project to VS2017
- .net 8 - No sign of life under Linux (Ubuntu LTS 22.04, Debian 12) HOT 7
- Configure Default Gateway HOT 2
- DHCP Options HOT 2
- Chainloading HOT 5
- Possible null ptr exception HOT 1
- DHCP Option 50 Question HOT 3
- Can't Start when changing the folder name HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dhcpserver.