Re: redirect to an interface

This is a discussion on Re: redirect to an interface within the IPFilter forums, part of the System Security and Security Related category; ----- Original Message ----- From: "Olivier Nicole" <on@cs.ait.ac.th> To: <ipfilter@coombs.anu.edu....


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-14-2005
James A. Robbins
 
Posts: n/a
Default Re: redirect to an interface

----- Original Message -----
From: "Olivier Nicole" <on@cs.ait.ac.th>
To: <ipfilter@coombs.anu.edu.au>
Sent: Wednesday, July 13, 2005 9:47 PM
Subject: Re: redirect to an interface


> Thanks James,
>
>> block in quick on fxp0 to fxp1 from x.x.x.x to y.y.y.y

>
> That would only block the packet from getting out on a certain interface.


Actually it doesn't. If you make the rule "pass in quick..." then it
generates a duplicate copy of the packet, which can cause all
sorts of problems. I know it sounds backwards but it works.

From http://www.obfuscation.org/ipf/ipf-howto.txt

"If we don't care about passing the packet to its normal
destination and we were going to block it anyway, we can
just use the to keyword to push this packet past the normal
routing table and force it to go out a different interface
than it would normally go out.

block in quick on xl0 to ed0 proto tcp from any to any port < 1024

we use block quick for to interface routing, because like
fastroute, the to interface code will generate two packet
paths through ipfilter when used with pass, and likely cause
your system to panic."

So, if you use "pass in quick ..." two copies of the packet will be
generated. One will be sent to the "to" interface while the other
will be processed through the normal routing table. When used
for an interface "to" bypasses the normal routing table.
--
James A. Robbins
Network Engineer
The Ohio State University
Chemistry Department

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 02:06 PM.


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