diff --git a/firewall/CHANGELOG b/firewall/CHANGELOG index b5901c904..fa5cd2fe4 100644 --- a/firewall/CHANGELOG +++ b/firewall/CHANGELOG @@ -17,3 +17,5 @@ The ICMP rejection type is now settable in all valid chains. On Debian 3.1 systems, IPtables rules are saved in /etc/iptables.up.rules and activated through /etc/network/interfaces, rather than using an init.d script. ---- Changes since 1.350 ---- Added a setup option to configure a firewall for a typical hosting server. +---- Changes since 1.400 ---- +Show SNAT inputs in custom NAT chains. diff --git a/firewall/edit_rule.cgi b/firewall/edit_rule.cgi index 1653657fe..166457235 100755 --- a/firewall/edit_rule.cgi +++ b/firewall/edit_rule.cgi @@ -162,7 +162,8 @@ if (($table->{'name'} eq 'nat' && $rule->{'chain'} ne 'POSTROUTING') && "")," \n"; } -if (($table->{'name'} eq 'nat' && $rule->{'chain'} eq 'POSTROUTING') && +if (($table->{'name'} eq 'nat' && $rule->{'chain'} ne 'PREROUTING' && + $rule->{'chain'} ne 'OUTPUT') && &can_jump("SNAT")) { if ($rule->{'j'}->[1] eq 'SNAT') { if ($rule->{'to-source'}->[1] =~ diff --git a/firewall/index.cgi b/firewall/index.cgi index 522f2f3b6..5d52c3b3e 100755 --- a/firewall/index.cgi +++ b/firewall/index.cgi @@ -154,7 +154,7 @@ else { print "\n"; print "\n"; print "
\n"; - print "\n"; foreach $t (@tables) { if (&can_edit_table($t->{'name'})) { printf "