Dear Maintainer, *** Reporter, please consider answering these questions, where appropriate *** I use Debian on a server with multiple upstream internet links. Some of these links have peering point IPs. It happens fairly often that apt-get traffic uses the source IP in a peering point range and then downloads fail. Please consider adding a feature so I can configure apt-get to specify a source IP or interface on the server. For example: traceroute has a -s option: "Chooses an alternative source address."
I was about to say that specifying ip addresses for sources needs to be solved at an RFC level (need to standardize URLs like http://foo[ip]/), but um now I understand that you don't want to configure the IP of the source, but the interface we send packets from. Probably should be retitled with a less ambiguous title :D Anyway, no idea how complex that feature is, I guess proof of concept patches welcome.
Hi Yes, sorry, should maybe have had title with Source _IP_address_ I think you should be able to specify a source IP when opening the tcp socket. Would probably need to add some code for IPv4 and IPv6 cases.
It's basically a new configuration option for apt.conf and an additional parameter in the connect() call. See https://github.com/ThomasNoll/oas (that's a LD_PRELOAD wrapper adding this functionality to arbitrary software, see connect.c) Greetings Marc
Hi I figured out a temporary workaround using ‘ip netns exec’ It works, but things like apticron will still fail.
Hi! This ticket probably should be merged with https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=548590, but I'm not 100% sure. Kamil