[packages] nzbgetweb: update to 1.4, add external xmlrpc library, add uhttpd configur...
[openwrt/svn-archive/archive.git] / net / nocatauth / patches / 003-fix-module-loading
1 diff -ru NoCatAuth-nightly/libexec/iptables/initialize.fw NoCatAuth-patched/libexec/iptables/initialize.fw
2 --- NoCatAuth-nightly/libexec/iptables/initialize.fw 2003-03-26 19:21:04.000000000 -0800
3 +++ NoCatAuth-patched/libexec/iptables/initialize.fw 2009-03-19 19:24:31.000000000 -0700
4 @@ -26,18 +26,6 @@
5 #
6 echo "1" > /proc/sys/net/ipv4/ip_forward
7 echo "1" > /proc/sys/net/ipv4/conf/all/rp_filter
8 -
9 - # Load alllll the kernel modules we need.
10 - #
11 - rmmod ipchains > /dev/null 2>&1 # for RH 7.1 users.
12 -
13 - for module in ip_tables ipt_REDIRECT ipt_MASQUERADE ipt_MARK ipt_REJECT \
14 - ipt_TOS ipt_LOG iptable_mangle iptable_filter iptable_nat ip_nat_ftp \
15 - ip_conntrack ip_conntrack_ftp ip_conntrack_irc \
16 - ip_nat_irc ipt_mac ipt_state ipt_mark; do
17 -
18 - modprobe $module
19 - done
20 fi
21
22 # Flush all user-defined chains
23 @@ -241,6 +229,8 @@
24 # Add any other local firewall rules below.
25 ##
26
27 +iptables -t nat -I POSTROUTING -o $ExternalDevice -j MASQUERADE
28 +
29 ##
30 # Uncomment the following to permit all 10/8 traffic *before* auth
31 ##