Networking Forums

Networking Forums > Computer Networking > Linux Networking > specify output interface on filtered packet?

Reply
Thread Tools Display Modes

specify output interface on filtered packet?

 
 
David Magda
Guest
Posts: n/a

 
      12-18-2003, 08:06 PM

[Cross-posted to comp.unix.bsd.freebsd.misc,
comp.unix.bsd.openbsd.misc and comp.os.linux.networking.]

Hello,

Is it possible (using IPFilter/IPFW/IPTable/PF) to specify which
interface a packet should be sent out on?

_____
| |
Internal ----| R | fxp0 -----> HTTP/FTP/bulk ---|
|____| |
fxp1 \/
|--------> SSH/SMTP ---------> Internet

Depending on the filtering rules (in this case destination port), I
want to route packet(s) so they go out on a particular
interface. Each interface will have a different IP address (fxp0 will
actually be dynamic, and fxp1 static). There should not be routing
between fxp0 and fxp1.

All traffic from the internal network would also be NATed regardless
of the interface it goes out of.

I'm looking to do this on *BSD or Linux 2.4 (probably Debian). A
hardware router would be a third choice. (Linux may be the primary
choice because of internal support issues.)

Is doing what I want possible?

--
David Magda <dmagda at ee.ryerson.ca>, http://www.magda.ca/
Because the innovator has for enemies all those who have done well under
the old conditions, and lukewarm defenders in those who may do well
under the new. -- Niccolo Machiavelli, _The Prince_, Chapter VI
 
Reply With Quote
 
 
 
 
Per Hedeland
Guest
Posts: n/a

 
      12-20-2003, 02:09 PM
In article <(E-Mail Removed)> David Magda
<dmagda+(E-Mail Removed)> writes:
>
>[Cross-posted to comp.unix.bsd.freebsd.misc,
>comp.unix.bsd.openbsd.misc and comp.os.linux.networking.]
>
>Hello,
>
>Is it possible (using IPFilter/IPFW/IPTable/PF) to specify which
>interface a packet should be sent out on?
>
> _____
> | |
> Internal ----| R | fxp0 -----> HTTP/FTP/bulk ---|
> |____| |
> fxp1 \/
> |--------> SSH/SMTP ---------> Internet
>
>Depending on the filtering rules (in this case destination port), I
>want to route packet(s) so they go out on a particular
>interface. Each interface will have a different IP address (fxp0 will
>actually be dynamic, and fxp1 static). There should not be routing
>between fxp0 and fxp1.


AFAIK this is trivial with ipfilter, see the 'to' a.k.a. 'fastroute'
option.

>All traffic from the internal network would also be NATed regardless
>of the interface it goes out of.


I assume you mean that it should be NATed using the IP address of the
interface it goes out on. Doing that per se with ipnat (from ipfilter)
is no problem of course, but I'm not sure how the to/fastroute interacts
with NATing - it *could* be the case that the NATing gets bypassed.

--Per Hedeland
(E-Mail Removed)
 
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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Sequence Diagrams from Packet Analyzer logs/output files - Free goarilla Wireless Networks 1 01-02-2010 10:28 AM
Re: Sequence Diagrams from Packet Analyzer logs/output files - Free David H. Lipman Wireless Networks 0 01-01-2010 06:57 PM
Re: Sequence Diagrams from Packet Analyzer logs/output files - Free Cesar Rabak Wireless Networks 0 01-01-2010 05:25 PM
Packet socket attached to 802.11 interface? jski Wireless Internet 0 08-15-2006 07:10 PM
Network Interface:Output Queue Length ---- showing 4294963197 Dan Carollo Windows Networking 0 02-08-2005 07:30 PM



1 2 3 4 5 6 7 8 9 10 11