I couldn't find anything under NAT to make this work.
I tried the following:
----
set int state GigabitEthernet4/0/0 up
...
...
loopback create
set int l2 bridge loop4 4 bvi
set int ip address loop4 192.168.2.1/24
set int state loop4 up

create sub GigabitEthernet4/0/0 4
set int l2 bridge GigabitEthernet4/0/0.4 4
set int l2 tag-rewrite GigabitEthernet4/0/0.4 pop 1
set int state GigabitEthernet4/0/0.4 up
set punt tcp 80

create tap id 4 host-ip4-addr 192.168.2.2/24 host-if-name lguest
set int l2 bridge tap4 4
set int state tap4 up
ip punt redirect add rx GigabitEthernet4/0/0.4 via tap4
----
I am trying to send tcp port 80 traffic from GigabitEthernet4/0/0.4
(VLAN 4 interface) to tap-device tap4 where a server is listening.

But I am receiving this message:
vnet_punt_add_del: punt TCP/SCTP ports is not supported yet

I am using:
VPP version: v18.10-rc2~16

Thank you.

On Fri, Dec 28, 2018 at 1:52 PM carlito nueno via Lists.Fd.Io
<carlitonueno=gmail....@lists.fd.io> wrote:
>
> 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 (#11790): https://lists.fd.io/g/vpp-dev/message/11790
> Mute This Topic: https://lists.fd.io/mt/28506160/675621
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [carlitonu...@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#11806): https://lists.fd.io/g/vpp-dev/message/11806
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]
-=-=-=-=-=-=-=-=-=-=-=-
  • [... carlito nueno
    • ... carlito nueno
      • ... Yu, Ping
        • ... carlito nueno
          • ... carlito nueno
            • ... Yu, Ping
              • ... carlito nueno
                • ... carlito nueno
                • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io
                • ... carlito nueno
                • ... Matus Fabian -X (matfabia - PANTHEON TECHNOLOGIES@Cisco) via Lists.Fd.Io

Reply via email to