Re: transparent proxy

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Damien Fleuriot
Date: Sunday, January 2, 2011 - 10:50 am

In other software such as HTTP that you took for example, there's this
special X-Forwarded-For header which covers this very need.

IMO you shouldn't have to tweak around with the firewall or the IP stack
to make up for a missing capability but nvm.


Perhaps these 2 PF rules would be of use to you:

     route-to
           The route-to option routes the packet to the specified interface
           with an optional address for the next hop.  When a route-to rule
           creates state, only packets that pass in the same direction
as the
           filter rule specifies will be routed in this way.  Packets
passing
           in the opposite direction (replies) are not affected and are
routed
           normally.

     reply-to
           The reply-to option is similar to route-to, but routes
packets that
           pass in the opposite direction (replies) to the specified inter-
           face.  Opposite direction is only defined in the context of a
state
           entry, and reply-to is useful only in rules that create
state.  It
           can be used on systems with multiple external connections to
route
           all outgoing packets of a connection through the interface the
           incoming connection arrived through (symmetric routing enforce-
           ment).



On 1/2/11 6:37 PM, jay@experts-exchange.com wrote:
_______________________________________________
freebsd-pf@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-pf
To unsubscribe, send any mail to "freebsd-pf-unsubscribe@freebsd.org"
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
transparent proxy, jay, (Sat Jan 1, 9:38 pm)
Re: transparent proxy, Damien Fleuriot, (Sun Jan 2, 7:25 am)
Re: transparent proxy, jay, (Sun Jan 2, 10:37 am)
Re: transparent proxy, Damien Fleuriot, (Sun Jan 2, 10:50 am)
Re: transparent proxy, jay, (Sun Jan 2, 1:04 pm)
Re: transparent proxy, Damien Fleuriot, (Sun Jan 2, 1:16 pm)
Re: transparent proxy, jay, (Sun Jan 2, 2:57 pm)
Re: transparent proxy, jay, (Sun Jan 2, 2:59 pm)
Re: transparent proxy, Damien Fleuriot, (Sun Jan 2, 3:07 pm)
Re: transparent proxy, jay, (Mon Jan 3, 6:56 pm)