In the Ebtables parameter:
-P: Specify the type of protocol used, IPV4,ARP, etc. optional (required when using) for details see /etc/ethertypes
--IP-PROTO:IP packet type, 1 ICMP packet, 6 TCP packet, 17 UDP packet, detailed description under /etc/protocols
[email protected]:/etc# Cat Ethertypes
#
# Ethernet Frame Types
# This file describes some of the various Ethernet
# protocol types that is used on Ethernet networks.
#
# This list could is found on:
# http://www.iana.org/assignments/ethernet-numbers
#
# <name> #
IPv4 0800 IP ip4 # Internet IP (IPv4)
X25 0805
ARP 0806 Ether-arp #
Fr_arp 0808 # Frame Relay ARP [RFC1701]
BPQ 08FF # G8BPQ ax.25 Ethernet Packet
Dec 6000 # Dec Assigned Proto
DNA_DL 6001 # DEC DNA dump/load
DNA_RC 6002 # DEC DNA Remote Console
Dna_rt 6003 # DEC DNA Routing
Lat 6004 # DEC LAT
DIAG 6005 # DEC Diagnostics
CUST 6006 # DEC Customer use
SCA 6007 # DEC Systems Comms Arch
TEB 6558 # Trans ether bridging [RFC1701]
Raw_fr 6559 # Raw Frame Relay [RFC1701]
AARP 80F3 # Appletalk AARP
Atalk 809B # Appletalk
802_1q 8100 8021q 1q 802.1q dot1q # 802.1Q Virtual LAN Tagged frame
IPX 8137 # Novell IPX
NetBEUI 8191 # NetBEUI
IPv6 86DD IP6 # IP version 6
PPP 880B # PPP
Atmmpoa 884C # Multiprotocol over ATM
Ppp_disc 8863 # PPPoE Discovery messages
Ppp_ses 8864 # PPPoE Session messages
Atmfate 8884 # frame-based ATM Transport over Ethernet
Loop 9000 Loopback # loop Proto
[email protected]:/etc#
[email protected]:/etc# cat Protocols
# Internet (IP) protocols
#
# Updated from Http://www.iana.org/assignments/protocol-numbers and other
# sources.
# NEW protocols'll be added on request if they has been officially
# Assigned by IANA and is not historical.
# If You need a huge list of used numbers, install the Nmap package.
IP 0 IP # Internet Protocol, pseudo protocol number
#hopopt 0 hopopt # IPv6 hop-by-hop Option [RFC1883]
ICMP 1 ICMP # Internet Control Message Protocol
IGMP 2 IGMP # Internet Group Management
GGP 3 GGP # Gateway-gateway protocol
Ipencap 4 Ip-encap # IP encapsulated in IP (officially "IP")
St 5 St # St datagram mode
TCP 6 TCP # Transmission Control Protocol
EGP 8 EGP # Exterior Gateway Protocol
IGP 9 IGP # any private interior gateway (CISCO)
PUP # pup # PARC Universal Packet Protocol
UDP # UDP # User Datagram Protocol
HMP HMP # Host Monitoring protocol
XNS-IDP XNS-IDP # Xerox NS IDP
RDP \ RDP # "Reliable datagram" protocol
ISO-TP4 ISO-TP4 # ISO Transport Protocol Class 4 [RFC905]
XTP Xpress XTP # Transfer Protocol
DDP Notoginseng DDP # Datagram Delivery Protocol
IDPR-CMTP idpr-cmtp # IDPR Control Message Transport
IPv6 IPv6 # Internet Protocol, version 6
Ipv6-route Ipv6-route # Routing Header for IPV6
Ipv6-frag Ipv6-frag # Fragment Header for IPV6
IDRP IDRP # inter-domain Routing Protocol
RSVP # RSVP # reservation Protocol
GRE GRE # General Routing Encapsulation
ESP IPSEC-ESP # encap Security Payload [RFC2046]
Ah Wuyi Ipsec-ah # authentication Header [RFC2402]
Skip # Skip # Skip
IPV6-ICMP ipv6-icmp # ICMP for IPv6
IPV6-NONXT ipv6-nonxt # No Next Header for IPV6
Ipv6-opts ipv6-opts # Destination Options for IPV6
RSPF RSPF CPHB # Radio Shortest Path First (officially CPHB)
VMTP Bayi VMTP # Versatile Message Transport
EIGRP Enhanced EIGRP # Interior Routing Protocol (Cisco)
OSPF OSPFIGP # Open shortest Path First IGP
ax.25 ax.25 # ax.25 Frames
IPIP 94 IPIP # IP-WITHIN-IP Encapsulation Protocol
Etherip Etherip # ETHERNET-WITHIN-IP encapsulation [RFC3378]
EnCap 98 EnCap # yet another IP encapsulation [RFC1241]
# # any private encryption scheme
PIM 103 PIM # Protocol Independent Multicast
Ipcomp 108 Ipcomp # IP Payload Compression Protocol
VRRP VRRP # Virtual Router Redundancy Protocol
L2TP L2TP # Layer tunneling Protocol [RFC2661]
ISIS 124 ISIS # Is-is over IPv4
SCTP SCTP # Stream Control transmission Protocol
FC 133 FC # Fibre Channel
[email protected]:/etc#
protocol used by Ebtables