Re: transparent udp proxy

2014-11-02 Thread Hooman Fazaeli
On 10/31/2014 8:11 PM, Adrian Chadd wrote: Hi, If it's missing in 10 or later then please file a bug and I'll see what it'll take to add another socket option to return the original destination address+port. Thanks, https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=194758 -adrian On 31

Re: transparent udp proxy

2014-11-01 Thread Hooman Fazaeli
On 10/31/2014 8:30 PM, Ian Smith wrote: On Fri, 31 Oct 2014 18:30:00 +0330, Hooman Fazaeli wrote: On 10/31/2014 5:30 PM, Mark Felder wrote: I'm not sure if this is what you're looking for, but perhaps the solution is in net/samplicator ? From the project's website:

Re: transparent udp proxy

2014-11-01 Thread Hooman Fazaeli
On 10/31/2014 8:11 PM, Adrian Chadd wrote: Hi, If it's missing in 10 or later then please file a bug and I'll see what it'll take to add another socket option to return the original destination address+port. Thanks, -adrian Thanks. I will check ASAP. -- Best regards. Hooman Fazaeli

Re: transparent udp proxy

2014-11-01 Thread Ian Smith
On Sat, 1 Nov 2014 15:38:33 +0330, Hooman Fazaeli wrote: On 10/31/2014 8:30 PM, Ian Smith wrote: [..] : ipfw add 10 fwd localhost,7000 udp from any to any recv em1 Given these are local packets and that ipfw(8) /fwd states: The fwd action does not change the contents of

Re: transparent udp proxy

2014-11-01 Thread Julian Elischer
On 10/31/14, 5:50 PM, Hooman Fazaeli wrote: Hi, I my setup, I use a fwd rule to forward all udp traffic to my local proxy: ipfw add 10 fwd localhost,7000 udp from any to any recv em1 just as a nit, I'd add in as well sometimes outgoing packets can have a receive interface if they were

Re: transparent udp proxy

2014-11-01 Thread Julian Elischer
On 11/2/14, 9:13 AM, Julian Elischer wrote: On 10/31/14, 5:50 PM, Hooman Fazaeli wrote: Hi, I my setup, I use a fwd rule to forward all udp traffic to my local proxy: ipfw add 10 fwd localhost,7000 udp from any to any recv em1 just as a nit, I'd add in as well sometimes outgoing packets

Re: transparent udp proxy

2014-10-31 Thread Andrey V. Elsukov
On 31.10.2014 12:50, Hooman Fazaeli wrote: Hi, I my setup, I use a fwd rule to forward all udp traffic to my local proxy: ipfw add 10 fwd localhost,7000 udp from any to any recv em1 The proxy needs to know the original destination address of forwarded datagrams, but there seems to be

Re: transparent udp proxy

2014-10-31 Thread Hooman Fazaeli
On 10/31/2014 2:18 PM, Andrey V. Elsukov wrote: On 31.10.2014 12:50, Hooman Fazaeli wrote: Hi, I my setup, I use a fwd rule to forward all udp traffic to my local proxy: ipfw add 10 fwd localhost,7000 udp from any to any recv em1 The proxy needs to know the original destination address of

Re: transparent udp proxy

2014-10-31 Thread Andrey V. Elsukov
On 31.10.2014 15:04, Hooman Fazaeli wrote: Hi, udp_input() doesn't overwrite destination address. Probably you have NAT that does this. There is no NAT stuff. I checked that on 8.4 source: http://fxr.watson.org/fxr/source/netinet/udp_usrreq.c?v=FREEBSD8#L461 The more recent FreeBSD

Re: transparent udp proxy

2014-10-31 Thread Hooman Fazaeli
On 10/31/2014 3:38 PM, Andrey V. Elsukov wrote: On 31.10.2014 15:04, Hooman Fazaeli wrote: Hi, udp_input() doesn't overwrite destination address. Probably you have NAT that does this. There is no NAT stuff. I checked that on 8.4 source:

Re: transparent udp proxy

2014-10-31 Thread Matthias Apitz
El día Friday, October 31, 2014 a las 03:34:07PM +0330, Hooman Fazaeli escribió: udp_input() doesn't overwrite destination address. Probably you have NAT that does this. There is no NAT stuff. I checked that on 8.4 source:

Re: transparent udp proxy

2014-10-31 Thread Mark Felder
I'm not sure if this is what you're looking for, but perhaps the solution is in net/samplicator ? From the project's website: This simple program listens for UDP datagrams on a network port, and sends copies of these datagrams on to a set of destinations. Optionally, it can perform sampling,

Re: transparent udp proxy

2014-10-31 Thread Hooman Fazaeli
On 10/31/2014 5:30 PM, Mark Felder wrote: I'm not sure if this is what you're looking for, but perhaps the solution is in net/samplicator ? From the project's website: This simple program listens for UDP datagrams on a network port, and sends copies of these datagrams on to a set of

Re: transparent udp proxy

2014-10-31 Thread Adrian Chadd
Hi, If it's missing in 10 or later then please file a bug and I'll see what it'll take to add another socket option to return the original destination address+port. Thanks, -adrian On 31 October 2014 08:00, Hooman Fazaeli hoomanfaza...@gmail.com wrote: On 10/31/2014 5:30 PM, Mark Felder

Re: transparent udp proxy

2014-10-31 Thread Ian Smith
On Fri, 31 Oct 2014 18:30:00 +0330, Hooman Fazaeli wrote: On 10/31/2014 5:30 PM, Mark Felder wrote: I'm not sure if this is what you're looking for, but perhaps the solution is in net/samplicator ? From the project's website: This simple program listens for UDP datagrams on