Re: natd redirected ports from LAN

From: Brian Candler (B.Candler_at_pobox.com)
Date: 11/29/05

  • Next message: Andre Oppermann: "Re: parallelizing ipfw table"
    Date: Tue, 29 Nov 2005 13:07:27 +0000
    To: asko <asko_nospam@ultrasoft.ee>
    
    

    On Tue, Nov 29, 2005 at 12:46:10PM +0200, asko wrote:
    > I'm searching for a better, faster solution..
    > Does it exist?

    Do your constraints allow you switch to 'pf' instead of 'ipfw'? I think you
    may be able to do it that way. I had a similar situation where I wanted
    traffic originating from the local host to be processed specially. The case
    in point was redirection rather than NAT, but the same principles probably
    apply. Using pf I forced the traffic back through the loopback interface so
    it was treated as 'incoming' traffic. e.g. see thread around
    http://lists.freebsd.org/pipermail/freebsd-pf/2005-September/001495.html

    Maybe in your case you just need two rdr rules: one bound to the internal
    interface, and one to the external one.

    I stopped using ipfw several years ago because of a number of issues with
    NAT, especially some horrible scenarios with multiple external interfaces,
    IPSEC tunnels, and needing to run multiple instances of natd :-{

    Regards,

    Brian.
    _______________________________________________
    freebsd-net@freebsd.org mailing list
    http://lists.freebsd.org/mailman/listinfo/freebsd-net
    To unsubscribe, send any mail to "freebsd-net-unsubscribe@freebsd.org"


  • Next message: Andre Oppermann: "Re: parallelizing ipfw table"

    Relevant Pages

    • Re: Problem about ppp -nat
      ... For the ipfw solution, ... ipfw nat, ... My Internet interface is rl0, setup in rc.conf as: ...
      (freebsd-questions)
    • Re: multiple natd + ipfw, with 2 internal ips
      ... I have a little problem with my natd or ipfw configuration. ... Well you could if you set your internal interface to be in promiscuous mode and set proxy arp for that address ... is the next hop router, it uses ARP to find the MAC address of this router. ...
      (freebsd-net)
    • RE: Which interface do I put natd and ipfw
      ... You only NAT the public internet facing interface, ... You should turn on user ppp -nat function and not use the ipfw ... public internet use keep-state. ... All rules use via interface name to specify the interface the ...
      (freebsd-questions)
    • Re: Freebsd IP Forwarding performance (question, and some info) [7-stable, current, em, smp]
      ... All incoming traffic from any particular interface is still serialized though. ... I've really only focused on local traffic performance with my 10gbps Chelsio setup, it should be possible to do packet forwarding from multiple input queues using that hardware and driver today. ... However, these necessarily take a cache miss or two on packet header data in order to break out the packets from the input queue into flows that can be processed independently without ordering constraints, so if those cache misses on header data are a big part of the performance of a configuration, load balancing in this manner may not help. ... Maximum PPS with one ipfw rule on UP: ...
      (freebsd-net)
    • Re: per-interface packet filters
      ... rule, it helps to reduce CPU consumption, but makes 'ipfw show' ... A>> and with one interface to internet. ... A>> Our PFIL interface is quite ready for this, ... A> filters than the pfil API? ...
      (freebsd-net)