Adding ip to csf.allow problem
Posted: 22 Dec 2006, 20:09
When adding an IP in Firewall Allow IP you can edit the csf.allow file, but after adding an IP and not putting an empty line under the newly added IP and later on adding another IP on Quick Allow, the csf.allow file will be edited with an error.
How to reproduce
Lets say I edit the Firewall Allo IP file and add the IP 192.168.0.1 and later on I add the IP 192.168.0.2, the csf.allow will add the second IP right after the first added IP, that is if I don't add a blank line affter adding the first IP
look at the example bellow:
How to reproduce
Lets say I edit the Firewall Allo IP file and add the IP 192.168.0.1 and later on I add the IP 192.168.0.2, the csf.allow will add the second IP right after the first added IP, that is if I don't add a blank line affter adding the first IP
look at the example bellow:
Code: Select all
###############################################################################
# Copyright 2006, Way to the Web Limited
# URL: http://www.waytotheweb.com
# Email: sales@waytotheweb.com
###############################################################################
# The following IP addresses will be allowed through
# One IP address per line
# CIDR addressing allowed with a quaded IP (e.g. 192.168.254.0/24)
# Only list IP addresses, not domain names (they will be ignored)
#
# Advanced port+ip filtering allowed with the following format
# tcp/udp:in/out:s/d=port:s/d=ip
#
# See readme.txt for more information
#
192.168.0.1192.168.0.2# Manually allowed - Fri Dec 22 17:01:58 2006