Skip to contentSkip to conversation

Networking: send-to-self

PATCH Joerg Pommnitz 2 participants 2 messages Sep 18, 2002

lore
Share & tools
lore
#0 lore raw

Hi Ben,
I had the exact same problem in March (see
http://marc.theaimsgroup.com/?l=linux-kernel&m=101679264814811&w=2). The hacky solution I came up with was to use the following NAT rule:

iptables -t nat -A POSTROUTING -o eth0 -d 10.1.12.151 -p udp --dport 12345 -j SNAT --to 1.2.3.4

This way the packets claimed to come from a foreign IP address and were accepted. However, when the packets hit an ingress filter on their way, this will fail.

Will you push this to DaveM for inclusion?

Regards
Jörg

=====

Signature · 8 lines
Regards
       Joerg


__________________________________________________________________

Gesendet von Yahoo! Mail - http://mail.yahoo.de
Möchten Sie mit einem Gruß antworten? http://grusskarten.yahoo.de
#1 lore raw
Quoted 10 lines · Joerg Pommnitz

Hi Ben,
I had the exact same problem in March (see http://marc.theaimsgroup.com/?l=linux-kernel&m=101679264814811&w=2). The hacky solution I came up with was to use the following NAT rule:

iptables -t nat -A POSTROUTING -o eth0 -d 10.1.12.151 -p udp --dport 12345 -j SNAT --to 1.2.3.4

This way the packets claimed to come from a foreign IP address and were accepted. However, when the packets hit an ingress filter on their way, this will fail.

Will you push this to DaveM for inclusion?

Dave has the link to the patch, but whether or not he will include it in the kernel proper I do not know. I hope he does, of course.

Ben

Quoted 5 lines

Regards
Jörg

=====

Signature · 3 lines
Ben Greear <[email protected]>       <Ben_Greear AT excite.com>
President of Candela Technologies Inc      http://www.candelatech.com
ScryMUD:  http://scry.wanfear.com     http://scry.wanfear.com/~greear