• ebtables使用的协议


    ebtables的参数中:

    -p:指明使用的协议类型,ipv4,arp等可选(使用时必选)详情见/etc/ethertypes

    --ip-proto:IP包的类型,1为ICMP包,6为TCP包,17为UDP包,在/etc/protocols下有详细说明

    root@hbg:/etc# cat ethertypes
    #
    # Ethernet frame types
    #               This file describes some of the various Ethernet
    #               protocol types that are used on Ethernet networks.
    #
    # This list could be found on:
    #         http://www.iana.org/assignments/ethernet-numbers
    #
    # <name>    <hexnumber> <alias1>...<alias35> #Comment
    #
    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
    root@hbg:/etc#

    root@hbg:/etc# cat protocols
    # Internet (IP) protocols
    #
    # Updated from http://www.iana.org/assignments/protocol-numbers and other
    # sources.
    # New protocols will be added on request if they have been officially
    # assigned by IANA and are not historical.
    # If you need a huge list of used numbers please 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     12      PUP             # PARC universal packet protocol
    udp     17      UDP             # user datagram protocol
    hmp     20      HMP             # host monitoring protocol
    xns-idp 22      XNS-IDP         # Xerox NS IDP
    rdp     27      RDP             # "reliable datagram" protocol
    iso-tp4 29      ISO-TP4         # ISO Transport Protocol class 4 [RFC905]
    xtp     36      XTP             # Xpress Transfer Protocol
    ddp     37      DDP             # Datagram Delivery Protocol
    idpr-cmtp 38    IDPR-CMTP       # IDPR Control Message Transport
    ipv6    41      IPv6            # Internet Protocol, version 6
    ipv6-route 43   IPv6-Route      # Routing Header for IPv6
    ipv6-frag 44    IPv6-Frag       # Fragment Header for IPv6
    idrp    45      IDRP            # Inter-Domain Routing Protocol
    rsvp    46      RSVP            # Reservation Protocol
    gre     47      GRE             # General Routing Encapsulation
    esp     50      IPSEC-ESP       # Encap Security Payload [RFC2046]
    ah      51      IPSEC-AH        # Authentication Header [RFC2402]
    skip    57      SKIP            # SKIP
    ipv6-icmp 58    IPv6-ICMP       # ICMP for IPv6
    ipv6-nonxt 59   IPv6-NoNxt      # No Next Header for IPv6
    ipv6-opts 60    IPv6-Opts       # Destination Options for IPv6
    rspf    73      RSPF CPHB       # Radio Shortest Path First (officially CPHB)
    vmtp    81      VMTP            # Versatile Message Transport
    eigrp   88      EIGRP           # Enhanced Interior Routing Protocol (Cisco)
    ospf    89      OSPFIGP         # Open Shortest Path First IGP
    ax.25   93      AX.25           # AX.25 frames
    ipip    94      IPIP            # IP-within-IP Encapsulation Protocol
    etherip 97      ETHERIP         # Ethernet-within-IP Encapsulation [RFC3378]
    encap   98      ENCAP           # Yet Another IP encapsulation [RFC1241]
    #       99                      # any private encryption scheme
    pim     103     PIM             # Protocol Independent Multicast
    ipcomp  108     IPCOMP          # IP Payload Compression Protocol
    vrrp    112     VRRP            # Virtual Router Redundancy Protocol
    l2tp    115     L2TP            # Layer Two Tunneling Protocol [RFC2661]
    isis    124     ISIS            # IS-IS over IPv4
    sctp    132     SCTP            # Stream Control Transmission Protocol
    fc      133     FC              # Fibre Channel

    root@hbg:/etc#

  • 相关阅读:
    利用Github Actions自动保持 GitHub 提交状态常绿
    windows下搭建轻量级php代码审计环境
    jquery实现点击弹出对话框
    redis学习记录(1)Redis简介
    StatefulSet
    Pod
    Spark 写Hive指定动态分区
    我常用的git操作
    在C#中如何使用GetOpenFileName函数多选文件
    image matching challenge
  • 原文地址:https://www.cnblogs.com/rohens-hbg/p/5454290.html
Copyright © 2020-2023  润新知