disable-netfilter.patch 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  1. diff -Nur linux-3.7.3.orig/net/Kconfig linux-3.7.3/net/Kconfig
  2. --- linux-3.7.3.orig/net/Kconfig 2013-01-17 17:47:40.000000000 +0100
  3. +++ linux-3.7.3/net/Kconfig 2013-01-19 18:19:55.000000000 +0100
  4. @@ -163,7 +163,7 @@
  5. config NETFILTER_ADVANCED
  6. bool "Advanced netfilter configuration"
  7. depends on NETFILTER
  8. - default y
  9. + default n
  10. help
  11. If you say Y here you can select between all the netfilter modules.
  12. If you say N the more unusual ones will not be shown and the
  13. @@ -175,7 +175,7 @@
  14. bool "Bridged IP/ARP packets filtering"
  15. depends on BRIDGE && NETFILTER && INET
  16. depends on NETFILTER_ADVANCED
  17. - default y
  18. + default n
  19. ---help---
  20. Enabling this option will let arptables resp. iptables see bridged
  21. ARP resp. IP traffic. If you want a bridging firewall, you probably
  22. diff -Nur linux-3.7.3.orig/net/netfilter/Kconfig linux-3.7.3/net/netfilter/Kconfig
  23. --- linux-3.7.3.orig/net/netfilter/Kconfig 2013-01-17 17:47:40.000000000 +0100
  24. +++ linux-3.7.3/net/netfilter/Kconfig 2013-01-19 18:21:41.000000000 +0100
  25. @@ -22,7 +22,6 @@
  26. config NETFILTER_NETLINK_LOG
  27. tristate "Netfilter LOG over NFNETLINK interface"
  28. - default m if NETFILTER_ADVANCED=n
  29. select NETFILTER_NETLINK
  30. help
  31. If this option is enabled, the kernel will include support
  32. @@ -34,7 +33,6 @@
  33. config NF_CONNTRACK
  34. tristate "Netfilter connection tracking support"
  35. - default m if NETFILTER_ADVANCED=n
  36. help
  37. Connection tracking keeps a record of what packets have passed
  38. through your machine, in order to figure out how they are related
  39. @@ -60,7 +58,6 @@
  40. config NF_CONNTRACK_SECMARK
  41. bool 'Connection tracking security mark support'
  42. depends on NETWORK_SECMARK
  43. - default m if NETFILTER_ADVANCED=n
  44. help
  45. This option enables security markings to be applied to
  46. connections. Typically they are copied to connections from
  47. @@ -177,7 +174,6 @@
  48. config NF_CONNTRACK_FTP
  49. tristate "FTP protocol support"
  50. - default m if NETFILTER_ADVANCED=n
  51. help
  52. Tracking FTP connections is problematic: special helpers are
  53. required for tracking them, and doing masquerading and other forms
  54. @@ -211,7 +207,6 @@
  55. config NF_CONNTRACK_IRC
  56. tristate "IRC protocol support"
  57. - default m if NETFILTER_ADVANCED=n
  58. help
  59. There is a commonly-used extension to IRC called
  60. Direct Client-to-Client Protocol (DCC). This enables users to send
  61. @@ -296,7 +291,6 @@
  62. config NF_CONNTRACK_SIP
  63. tristate "SIP protocol support"
  64. - default m if NETFILTER_ADVANCED=n
  65. help
  66. SIP is an application-layer control protocol that can establish,
  67. modify, and terminate multimedia sessions (conferences) such as
  68. @@ -320,7 +314,6 @@
  69. config NF_CT_NETLINK
  70. tristate 'Connection tracking netlink interface'
  71. select NETFILTER_NETLINK
  72. - default m if NETFILTER_ADVANCED=n
  73. help
  74. This option enables support for a netlink-based userspace interface
  75. @@ -424,7 +417,6 @@
  76. config NETFILTER_XTABLES
  77. tristate "Netfilter Xtables support (required for ip_tables)"
  78. - default m if NETFILTER_ADVANCED=n
  79. help
  80. This is required if you intend to use any of ip_tables,
  81. ip6_tables or arp_tables.
  82. @@ -435,7 +427,6 @@
  83. config NETFILTER_XT_MARK
  84. tristate 'nfmark target and match support'
  85. - default m if NETFILTER_ADVANCED=n
  86. ---help---
  87. This option adds the "MARK" target and "mark" match.
  88. @@ -527,7 +518,6 @@
  89. config NETFILTER_XT_TARGET_CONNSECMARK
  90. tristate '"CONNSECMARK" target support'
  91. depends on NF_CONNTRACK && NF_CONNTRACK_SECMARK
  92. - default m if NETFILTER_ADVANCED=n
  93. help
  94. The CONNSECMARK target copies security markings from packets
  95. to connections, and restores security markings from connections
  96. @@ -632,7 +622,6 @@
  97. config NETFILTER_XT_TARGET_LOG
  98. tristate "LOG target support"
  99. - default m if NETFILTER_ADVANCED=n
  100. help
  101. This option adds a `LOG' target, which allows you to create rules in
  102. any iptables table which records the packet header to the syslog.
  103. @@ -660,7 +649,6 @@
  104. config NETFILTER_XT_TARGET_NFLOG
  105. tristate '"NFLOG" target support'
  106. - default m if NETFILTER_ADVANCED=n
  107. select NETFILTER_NETLINK_LOG
  108. help
  109. This option enables the NFLOG target, which allows to LOG
  110. @@ -741,7 +729,6 @@
  111. config NETFILTER_XT_TARGET_SECMARK
  112. tristate '"SECMARK" target support'
  113. depends on NETWORK_SECMARK
  114. - default m if NETFILTER_ADVANCED=n
  115. help
  116. The SECMARK target allows security marking of network
  117. packets, for use with security subsystems.
  118. @@ -751,7 +738,6 @@
  119. config NETFILTER_XT_TARGET_TCPMSS
  120. tristate '"TCPMSS" target support'
  121. depends on (IPV6 || IPV6=n)
  122. - default m if NETFILTER_ADVANCED=n
  123. ---help---
  124. This option adds a `TCPMSS' target, which allows you to alter the
  125. MSS value of TCP SYN packets, to control the maximum size for that
  126. @@ -856,7 +842,6 @@
  127. config NETFILTER_XT_MATCH_CONNTRACK
  128. tristate '"conntrack" connection tracking match support'
  129. depends on NF_CONNTRACK
  130. - default m if NETFILTER_ADVANCED=n
  131. help
  132. This is a general conntrack match module, a superset of the state match.
  133. @@ -1063,7 +1048,6 @@
  134. config NETFILTER_XT_MATCH_POLICY
  135. tristate 'IPsec "policy" match support'
  136. depends on XFRM
  137. - default m if NETFILTER_ADVANCED=n
  138. help
  139. Policy matching allows you to match packets based on the
  140. IPsec policy that was used during decapsulation/will
  141. @@ -1170,7 +1154,6 @@
  142. config NETFILTER_XT_MATCH_STATE
  143. tristate '"state" match support'
  144. depends on NF_CONNTRACK
  145. - default m if NETFILTER_ADVANCED=n
  146. help
  147. Connection state matching allows you to match packets based on their
  148. relationship to a tracked connection (ie. previous packets). This