IPSEC with IPNAT conundrum

From: Carl Morley (carlm_at_webize.com.au)
Date: 06/25/03

  • Next message: Andy Dills: "Re: FreeBSD - Radius Merge Lookup Append File Question"
    To: <freebsd-isp@freebsd.org>
    Date: Thu, 26 Jun 2003 05:17:53 +1000
    
    

    Hello All,
    Below is a question I posted to the ipfilter mail list, but the silence
    was deafening... Apologies for the 'not very isp' problem on this list.
    I track this list and thought someone might be able to shed some light.
    Even if it is 'this is not feasible'!

    I have set up an IPSEC connection from company (A) to another (B) by
    connecting from (A)'s FreeBSD 4.8-STABLE firewall running IPFILTER &
    IPNAT plus racoon to (B)'s Watchguard Firebox SOHO6. All works well
    when connecting *one* subnet at (A) to the subnet at (B).

    But the (A) network is quite extensive, comprising many private subnets.
    To expect the IPSEC connected companies eg (B) to maintain a list of
    (A)'s
    subnets so that the IPSEC policies work is not practical. So I figured
    that companies like (B) should just see (A) as one subnet - and (A)
    would
    NAT on the firewall. Was that an OK idea? Seemed easy enough at the
    time...

    OK - the set up is this....

    Private IP | (A) | | | | (B) | Private IP
    subnets at---| FIREWALL |----| INTERNET |----| FIREWALL |---subnet at
    company (A) | | | | | | company(B)

    Firewall (B) is expecting all IPSEC traffic to be coming from the public
    IP address on Firewall (A), as tunnelled private IP subnet
    10.99.99.0/30 to (B)'s private IP address subnet 192.168.100.0/24.

    I am trying to NAT all the internal subnets at (A) to 10.99.99.1. But
    it does not seem to work whichever way I try.

    Questions:

    1. On which interface should I alias the 10.99.99.1 IP on Firewall (A).
    Choices seem to be internal (fxp2), external (fxp1), loopback (lo0) or
    some gif0 combination with the above. Any other suggestions? BTW,
    usually I would not bother with using the gif interfaces with racoon.
    All the IPSEC tunnels I have set up to date have been single subnet to
    single subnet. Wondered if mucking about with the gif i/f might help
    with the NAT issue. Except I cannot seem to get IPNAT to discern a
    clear direction of traffic flow on the gif's that I have set up thus
    far.

    2. Having completed step 1, what should my NAT rule(s) look like?
    Given that they should be policy based (I think), eg. If connecting to
    (B) use this NAT rule.

    Looking forward to *any* pointers!

    Regards,
    Carl.

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


  • Next message: Andy Dills: "Re: FreeBSD - Radius Merge Lookup Append File Question"

    Relevant Pages

    • Re: [fw-wiz] Internet accessible screened subnet - use public orprivate IPs?
      ... >> NAT'ed at our firewall. ... > public stuff should be on its own physical subnet. ... The thing I've been eharing for years about why NAT is better is that you ... I would definantly have things that server the Internet use public ...
      (Firewall-Wizards)
    • Re: NAT Question ....
      ... the router, and another public in the same subnet as the outside of the ... firewall, which is connected to the inside interface of the router... ... Can I simply NAT to a public address and send it the rest of the way to ... I guess if I can't do that, then I can subnet my block of 5 addresses ...
      (comp.dcom.sys.cisco)
    • Re: A NAT question
      ... I've got a basic but quite important question about NAT: ... Firewall will have 2 different class C subnets behind our firewall ... will also use a private C subnet. ... $int_if is the interface connected to our private subnet ...
      (comp.unix.bsd.openbsd.misc)
    • A NAT question
      ... I've got a basic but quite important question about NAT: our OpenBSD PF Firewall will have 2 different class C subnets behind our firewall assigned by our provider then behind our firewall we will also use a private C subnet. ... Internal machines on the private subnet couldn't reach the internet. ...
      (comp.unix.bsd.openbsd.misc)
    • L2TP/IPSec VPN tunnel Client -> Server
      ... I have a Firewall (which does no NAT), behind that Firewall I have a Windows ... work when connecting from the inside network to the inside ipadress of the ... but when connecting to the external ipadress the PPTP works fine but ...
      (microsoft.public.win2000.ras_routing)