[strongSwan-dev] [PATCH] dhcp: Allow binding of socket to particular interface

Thomas Egerer thomas.egerer at secunet.com
Tue Nov 19 12:52:28 CET 2013


In certain situations it is desirable to bind the send/receive sockets
for the DHCP address allocation to a particular interface. With this
patch the strongswan.conf option charon.plugins.dhcp.interface can be
used to restrict the DHCP communication to a configurable interface.

Signed-off-by: Thomas Egerer <thomas.egerer at secunet.com>
---
Hello *,

I found that the dhcp plugin tries to allocate an IP-address on the
wrong interface and since I cannot modify the routing rules of the
system strongswan is running on, the only sensible solution to
solve this problem is binding send/receive socket to a particular
interface.

Cheers,

Thomas

 src/libcharon/plugins/dhcp/dhcp_socket.c | 43 ++++++++++++++++++++++++++++++++
 1 file changed, 43 insertions(+)




More information about the Dev mailing list