[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Wget-dev] wget option "bind-address" is not working for virtual int
From: |
Tim Rühsen |
Subject: |
Re: [Wget-dev] wget option "bind-address" is not working for virtual interface (eth1.0) |
Date: |
Tue, 16 Apr 2019 12:37:08 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.6.1 |
On 4/1/19 3:05 PM, Babu Prasad wrote:
> Hi Team,
> do we support bind-address option for virtual interface, ie
> I've assigned an IP address for my virtual interface ie eth1.0(10.0.0.2)
> and sending packet but when I dump packet wget showing my physical
> interface mac. do we have any options for virtual interface ?
>
> wget http://10.0.01 --bind-address=10.0.0.2 --no-proxy
Just found this to work (e.g. for a future --bind-interface=...):
if (setsockopt(fd, SOL_SOCKET, SO_BINDTODEVICE, "eth0.88", 7) == -1)
error_printf(_("Failed to set socket option BINDTODEVICE\n"));
BUT it needs privileges / capabilities, e.g. root / sudo or
sudo setcap cap_net_raw+ep <path to wget|wget2>
So, this doesn't work yet - I just write it for the record.
OPened an issue at https://gitlab.com/gnuwget/wget2/issues/430
Regards, Tim
signature.asc
Description: OpenPGP digital signature
Re: [Wget-dev] wget option "bind-address" is not working for virtual interface (eth1.0), Tim Rühsen, 2019/04/16
Re: [Wget-dev] wget option "bind-address" is not working for virtual interface (eth1.0),
Tim Rühsen <=