編譯核心啟用iptables及netfilter

來源:互聯網
上載者:User

標籤:class   c   tar   a   int   get   

在Network Packet Filtering Framework(Netfilter)一節中還有兩個額外的配置節——Core Netfilter Configuration(核心Netfilter配置)和IP:Netfilter Configuration(IP:Netfilter配置)。

1. 核心Netfilter配置

核心Netfilter配置節中包含的一些重要選項都應該被啟用:

l    Comment match support(comment匹配支援);

l    FTP support(FTP協議支援);

l    Length match support(資料包長度匹配支援);

l    Limit match support(limit匹配支援);

l    MAC address match support(MAC地址匹配支援);

l    MARK target support(MARK目標支援);

l    Netfilter connection tracking support(Netfilter串連跟蹤支援);

l    Netfilter LOG over NFNETLINK interface(Netfilter通過NFNETLINK介面記錄日誌);

l    Netfilter netlink interface(Netfilter netlink介面);

l    Netfilter Xtables support(Netfilter Xtables支援);

l    State match support(state匹配支援);

l    String match support(string匹配支援)。

2. IP:Netfilter配置

在完成核心Netfilter配置之後,我們開始進入IP:Netfilter配置節。本節需要啟用的選項如下所示:

l    ECN target support(ECN目標支援);

l    Full NAT(完整NAT支援);

l    IP address range match support(ip位址範圍匹配支援);

l    IP tables support(IP tables支援,filtering/masq/NAT需要);

l    IPv4 connection tracking support(IPv4串連跟蹤支援,NAT需要);

l    LOG target support(LOG目標支援);

l    MASQUERADE target support(MASQUERADE目標支援);

l    Owner match support(owner匹配支援);

l    Packet filtering(包過濾支援);

l    Packet mangling(包修改支援,常用於改變包的路由);

l    raw table support(raw表支援,NOTRACK/TRACE需要);

l    Recent match support(recent匹配支援);

l    REJECT target support(REJECT目標支援);

l    TOS match support(TOS匹配支援);

l    TOS target support(TOS目標支援);

l    TTL match support(TTL匹配支援);

l    TTL target support(TTL目標支援);

l    ULOG target support(ULOG目標支援)。

在2.6系列核心中,個別編譯節經過了重大的重組。在舊的2.4系列核心中,IP:Netfilter配置節位於Networking選項之下,而且僅當Network Packet Filtering選項被啟用時才能看到。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.