Hi Rene, The homegateway configuration of NAT is bit outdated. I am working on a newer configuration.
What the old configuration doesn't account for is the split of nat plugins. In configuration nat is setup as endpoint independent. Current nat is split into plugins nat44-ed nat44-ei (endpoint-dependent/independent). I would suggest using endpoint-dependent plugn. All of the cli commands are the same "nat44 etc.". Plugin has to be enabled before configuration using the appropriate command. Use nat44 ? in vppctl to explore all of the commands. NAT44-ED uses inside/outside interfaces or output feature. Output feature NAT's all the outgoing trafic on the specified interface - from all LAN interfaces / all local traffic if you have one WAN interface. If you have multiple LAN interfaces and you want to NAT only specific one you should instead manually set inside nat interface for a each LAN interface and outside interface for WAN. Pool address configuration is the last step to configure working nat. Best regards, Filip Varga -----Original Message----- From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of René Weiss Sent: Monday, January 17, 2022 10:45 PM To: vpp-dev <vpp-dev@lists.fd.io> Subject: Re: [vpp-dev] linux-cp + nat44 possible? Importance: High Hi Dave Thanks, this looks like an extended version of https://fd.io/docs/vpp/v2009/usecases/homegateway.html I will take a closer look, especially at the ipv6 section because I was already wondering how to do the things I'm currently doing with radvd/wide-dhcpv6-client with VPP. Another open questions (and the main reason I was asking for linux-cp) is receiving IPTV over multicast. On Linux I'm using imgpproxy and udpxy (http://www.udpxy.com/, a multicast-UDP to HTTP relay) for this and while it's not essential for me, it still would be nice to continue to be able to use it. Maybe you (or anyone else here) can give me a pointer in the right direction? Thanks. René Am 17.01.22 um 20:58 schrieb Dave Barach: > https://s3-docs.fd.io/vpp/22.02/usecases/home_gateway.html - I've used vpp as > a home gateway for years. > > HTH... Dave > > -----Original Message----- > From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of René > Weiss > Sent: Monday, January 17, 2022 12:47 PM > To: vpp-dev <vpp-dev@lists.fd.io> > Subject: [vpp-dev] linux-cp + nat44 possible? > > Hi > > Is it possible to use linux-cp and nat44 together? > > I'm currently playing with VPP to see if I would be able to use it on my > Linux home gateway (mostly as an iptables/nftables replacement). > > And because there I have an external and (at least) one internal interface I > tried (unsuccessfully) to replicate that with VPP. > > I was able to create a basic NAT setup based on "VPP_Home_Gateway" from the > wiki where you get a single "lstack" interface in Linux. > > Likewise, I also was able to pass VPP interfaces to Linux with "lcp create > <VPP-interface> host-if <Linux-interface>". > > But as soon as I try to combine the two (setup nat44 while using the > forwarded interfaces) the external interface stops working for the Linux on > the machine. > > Is this something that simply will not work with VPP, or have I just not > found the right settings yet? > > Thanks, > René > > > > >
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#20781): https://lists.fd.io/g/vpp-dev/message/20781 Mute This Topic: https://lists.fd.io/mt/88490068/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-