Hello Urban,
> I have a question regarding modification of a FreeBSD gateway (the Internet
> gateway for a LAN). What I want to do is to have the gateway pick up the
> packets, modify the IP-header and resend the packet onto the network. This
> is a little bit like a NAT but I want to be able to do it differently and on
> my own terms. I guess that this means that I would be forced to rewrite the
> gateway source-code so it behaves as I want it to.
You can do this entirely in userspace. All you need is a divert socket.
See the manpage divert(4).
Björn Fischer
--
-----BEGIN GEEK CODE BLOCK-----
GCS d--(+) s++: a- C+++(-) UB++++OSI++++$ P+++(-) L---(++) !E W- N+ o>+
K- !w !O !M !V PS++ PE- PGP++ t+++ !5 X++ tv- b+++ D++ G e+ h-- y+
------END GEEK CODE BLOCK------
To Unsubscribe: send mail to [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message