On Tue, Oct 19, 2004 at 11:19:20PM -0400, [EMAIL PROTECTED] wrote:
> 
> Update on this:
> my setup is like this
> 
>                  tun1        tun0
> 192.168.0.0/24 ---------ipf------<internet>
>                        4.1.3
> This the rule that worked
> map tun0 from  192.168.0.0/24 to any  port = 8080  -> 0/32 portmap tcp 80:81
> 
> But the thing is that instead of rewriting the destination port of the
> outgoing packet it is rewriting the port of the gateway ip.
> For e.g
> I do telnet www.google.com 8080
> This should get translated to www.google.com 80
> 
> However this is what actually happens
> 
> 

Then Darren was right and you need a redirect rule.
Something like:
rdr tun1 from  192.168.0.0/24 to any  port = 8080  -> 0/32 port 80

However, I am not sure that this would work (0/32 in a rdr rule)

-Guido

Reply via email to