PAGE2GO2 HOME | INTERNET NEWS

LeighExchange - Free Advertising Network Stock Research at Internet Speed

Re: is ipfw "fwd" act same as router ?

 List
Subject: Re: is ipfw "fwd" act same as router ?
Poster: HenriHenneberthlh@restart.be
Date: Wed, 21 Mar 2007 06:20:01 -0500
Related Postings: 1 2 3 4 5 6 7
patrice wrote:
> "patrice" a écrit dans le message de
> news:4600049c$0$25790$426a74cc@news.free.fr...
>> Hello
>>
>> i have 2 interface connected to the internet and i m trying to use both
> for
>> internet access
>> now (thx to henri) i can use either one or the other using a static route.
>> but i have to choose manually and input a list of static ip, which is not
>> good.
>>
>> i have seen on the web a thing like :
>> ipfw add prob 0.5 allow ip from any to any out via
>> gateway> fwd
>>
>> can this line emulate a random router ? the man said than "fwd"ed packet
> are
>> unmodified.
>> is it the case when the packed is routed ?
>>
>
> have tried it, but i think it will not work with http session
> so i ve tried that :
> => catch every http going out and change ip src with 192.168.0.101 (natd
> alias)
> ipfw add 2098 divert 3615 tcp from any to any 80 out via tun0

I have a doubt, does natd tag its table enties with the interface ? in this case, the output packet is tagged with tun0 and the corresponding response is tagged with bge0; the reverse translation is not done.

To have more insight I would run natd with the -v option (the one listenning on 3615).

Henri
> => catch everything going out from 192.168.0.101 and fwd to the second
> gateway (0.254)
> ipfw add 2099 fwd 192.168.0.254 tcp from 192.168.0.101 to any 80 out via
> tun0
>
> the packet is well translated and moved to the interface of second gateway
> but it is not functionning :(
>
>
>

 

Page2Go2.com is not responsible for content of this message.