Re: ipnat - local redirection - ANSWER

This is a discussion on Re: ipnat - local redirection - ANSWER within the IPFilter forums, part of the System Security and Security Related category; Greetings, A friend, more observant than I, noticed the destination address should not have /32. The following works fine: rdr ...


Go Back   Usenet Forums > System Security and Security Related > IPFilter

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-27-2004
Dave+Seddon
 
Posts: n/a
Default Re: ipnat - local redirection - ANSWER

Greetings,

A friend, more observant than I, noticed the destination address should not
have /32. The following works fine:

rdr dmfe0 161.117.169.92/32 port 4888 -> 161.117.169.92 port 4889

Regards,

Dave


Dave+Seddon writes:

> Greetings,
>
> I'd like to do a local redirection, to redirect from TCP port 4888 to 4889
> (This is for Oracle Management Agent 10g).
>
> Here's what I've tried:
> --------------------------------
> # cat /etc/ipnat.rules
> rdr dmfe0 161.117.169.92/32 port 4888 -> 127.0.0.1 port 4889
>
> # ipnat -CF -f /etc/ipnat.rules
> 0 entries flushed from NAT table
> 0 entries flushed from NAT list
> localhost as destination not supported
> 4: syntax error in "rdr"
> /etc/ipnat.rules: parse error (-1), quitting
> --------------------------------
>
> I also tried using the non-lo interface address, even though the how-to
> says the packets must be redirect to a different interface than the one
> they come in on (ref. http://www.unixcircle.com/ipf/ipf-howto.html).
> --------------------------------
> # cat /etc/ipnat.rules
> rdr dmfe0 161.117.169.92/32 port 4888 -> 161.117.169.92/32 port 4889
>
> # ipnat -CF -f /etc/ipnat.rules
> 0 entries flushed from NAT table
> 0 entries flushed from NAT list
> 5: can't resolve hostname: 161.117.169.92/32
> 5: syntax error in "rdr"
> /etc/ipnat.rules: parse error (-1), quitting
> --------------------------------
>
> Any ideas?
>
> Regards,
>
> Dave Seddon
>


Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:48 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0