Hi,
I want to intercept UDP packets coming from a specific IP when they
are going to be forwarded via a machine. There are basically two ways
to do this using iptables:
- sending packets to the userspace by libipq and then reinjecting them
- opening a dummy socket, making packets forwarded to the dummy socket
instead, then resending them over another dummy socket, setting the
iptables to spoof their source IP to the original IP of the sender
What do you think of these ways? Thanks for any comments.
ciao,
Farshad