nonlocal_bind + connect()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all,

I'm trying to create a transparent proxying application and would like
to make connections from a non-local source address.

I have ip_nonlocal_bind enabled and am binding to the address I want but
then when I call connect() on the socket, it fails with EINVAL.

According to some old mailing list postings this is 'willful' behaivour
and not a bug. However, the advice given at the time for solving it
(removing some checks in ip_route_output_slow()) seems out of date for
2.4 series kernels.

Is there another way to achieve this, or does anyone know how it can be
implemented?

Thanks.

PS. I'm not a list subscriber, please CC replies.

-- 
// Gianni Tedesco (gianni at ecsc dot co dot uk)
lynx --source www.scaramanga.co.uk/gianni-at-ecsc.asc | gpg --import
8646BE7D: 6D9F 2287 870E A2C9 8F60 3A3C 91B5 7669 8646 BE7D

Attachment: signature.asc
Description: This is a digitally signed message part


[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux 802.1Q VLAN]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Git]     [Bugtraq]     [Yosemite News and Information]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux PCI]     [Linux Admin]     [Samba]

  Powered by Linux