Santiago Garcia Mantinan <[EMAIL PROTECTED]> wrote:
>
> I have the network subneted, so .2 is really on 192.168.1.0 and if it
> want's to go to 192.168.2.* it has to do it through .1 wich then sends
> it to 2.* subnet, the thing is that I don't want .1 to masquerade
> those packages!
I missed the original post in this thread, but I just thought I would
point out that what you want to do should be extremely simple. Just
insert a rule in your ipfwadm ruleset, which matches the pattern you
want to forward, and make sure it appears ahead of the other rule that
causes masquerading. Use the 'accept' target to forward packets without
masquerading, and use the 'masquerade' target to do the rest.
ipfwadm -F -p reject
ipfwadm -F -a accept -S 192.168.1.0/24 -D 192.168.2.0/24 -b
ipfwadm -F -a masquerade -S 192.168.0.0/16 -D 0/0
--
[EMAIL PROTECTED] (Fuzzy Fox) || "Nothing takes the taste out of peanut
sometimes known as David DeSimone || butter quite like unrequited love."
http://www.dallas.net/~fox/ || -- Charlie Brown
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For daily digest info, email [EMAIL PROTECTED]