Hi, Run NAT plugin in endpoint-dependent mode (add following to startup config “nat { endpoint-dependent }”), enable NAT feature “set interface nat44 in tap3 out GigabitEthernet4/0/0” and create static mapping “nat44 add static mapping tcp local 192.168.1.2 80 external GigabitEthernet4/0/0 80 out2in-only”.
Matus From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of carlito nueno Sent: Friday, December 28, 2018 10:52 PM To: vpp-dev@lists.fd.io Subject: Re: [vpp-dev] Question regarding captive portal NAT might be the right way to achieve this. This is the command I used with iptables: iptables -t nat -A eth0 -p tcp --dport 80 -j DNAT --to-destination 192.168.1.2 What is a similar command on VPP-NAT when I am trying to send port 80 traffic from main interface to tap-device: main interface: GigabitEthernet4/0/0 tap id: 3 (tap3) with address 192.168.1.2 and host-if-name tapcap Thanks
-=-=-=-=-=-=-=-=-=-=-=- Links: You receive all messages sent to this group. View/Reply Online (#11814): https://lists.fd.io/g/vpp-dev/message/11814 Mute This Topic: https://lists.fd.io/mt/28506160/21656 Group Owner: vpp-dev+ow...@lists.fd.io Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub [arch...@mail-archive.com] -=-=-=-=-=-=-=-=-=-=-=-