Aleks wrote:
> Hi List,
> my Problem is that ipnat will not redirect my connection.
> There is no Error Message. The ipf Module is loaded:
>
> [EMAIL PROTECTED] modinfo | grep ipf
> 96 fea408de 2f972 82 1 ipf (IP Filter: v4.1.8)
>
> I followed the steps within the readme file but have no luck.
> My goal is to build a interception proxy, I need the redirection feature
> of ipf to do that. To test the redirection I insert the rule:
> rdr elxl0 0.0.0.0/0 port 80 -> 127.0.0.1 port 22
> Now I expect that a >telnet localhost 22< will result in the same as
> >telnet localhost 80<, but it does not. I have read the manual/FAQ and
> have searched for artikels in google, all of them simply say that it es
> enough to insert such a rdr rule. But it won't work.. Your help is very
> welcome.
>
Don't you mean this?
rdr lo0 127.0.0.1/32 port 80 -> 127.0.0.1 port 22
Otherwise, if you really mean this:
rdr elxl0 0.0.0.0/0 port 80 -> 127.0.0.1 port 22
then, you need to go to another host connected to the elxl0 interface,
and run "telnet 172.29.252.130 80" or something like that, where
172.29.252.130 is your box's inet address. Or if your box is a router
or bridge, try also another adress one or two hops distant.
Billy