euglug.org

[Eug-lug] ipchains

작성자

카테고리:



larry priceMon Aug 29 09:25:41 PDT 2005

On 8/28/05, Bob Crandell <bob at assuredcomp.com> wrote:
> On Sun, 2005-08-28 at 18:52 -0700, larry price wrote:
> > On 8/28/05, Bob Crandell <bob at assuredcomp.com> wrote:
> The rule is supposed to accept packets that have been filtered by
> previous rules and sent on to 123.123.123.123:800 (is that better?).  I
> can't setup any filtering on the destination computer so changing DNS or
> renumbering is no good.

So it's not a network gateway? that makes things a bit more complex,
among other things you have make this machine into a router (it has to
have packet bridging enabled) which is going to work differently
depending on the kernel version, and your rewriting rule needs to be
in the PREROUTING chain inthe mangle table to work correctly.

this is an area where the BSD's are clearly superior since setting
this up would be easier with ipfw or pf but it sounds like you are
stuck on several different levels here.

basically as I understand what you've said you're attempting to set up
one host(alpha) to proxy for another(beta) one that you have no
control over and for which alpha is not beta's network gateway (gamma)

if alpha and beta are both connected to the internet through gamma
then do the filtering on gamma and not on alpha, it will work better
and won't blow up on you nearly as much.

if gamma is between the two hosts then you are swimming in deep waters
indeed particularly if you are attempting to proxy connection oriented
protocols.

-- 
http://Zoneverte.org -- information explained
Do you know what your IT infrastructure does?