summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Blin <oblin@mandriva.com>2008-04-03 03:06:20 +0000
committerOlivier Blin <oblin@mandriva.com>2008-04-03 03:06:20 +0000
commitc3498113bdcbde38fe247d17bbeb98febcd928f9 (patch)
tree757d8d381934bd4630275c59586601e0930b33c1
parentc33751f1f5288b1e2c726b986793e6d351d17739 (diff)
downloaddrakx-net-c3498113bdcbde38fe247d17bbeb98febcd928f9.tar
drakx-net-c3498113bdcbde38fe247d17bbeb98febcd928f9.tar.gz
drakx-net-c3498113bdcbde38fe247d17bbeb98febcd928f9.tar.bz2
drakx-net-c3498113bdcbde38fe247d17bbeb98febcd928f9.tar.xz
drakx-net-c3498113bdcbde38fe247d17bbeb98febcd928f9.zip
write netmask as VLSM for shorewall (#38447)
-rwxr-xr-xbin/drakgw2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/drakgw b/bin/drakgw
index 7177909..287f1c6 100755
--- a/bin/drakgw
+++ b/bin/drakgw
@@ -365,7 +365,7 @@ sub gw_configure() {
N("Configuring firewall..."));
$shorewall->{disabled} = 0;
- $shorewall->{masq}{subnet} = "$lan_intf->{NETWORK}/$lan_intf->{NETMASK}";
+ $shorewall->{masq}{subnet} = $lan_intf->{NETWORK} . '/' . network::network::netmask_to_vlsm($lan_intf->{NETMASK});
network::shorewall::write($shorewall);
#- be sure that FORWARD_IPV4 is enabled in /etc/sysconfig/network