Adding ip to csf.allow problem

This forum is only for reproducible bugs with csf and lfd (i.e. not iptables problems, lack of understanding how to use a feature, etc). Posts must be accompanied with full technical details of the problem and how it can be recreated. Any posts not adhering to this, or not considered bugs, will be moved to the General Discussion (csf) forum.
Post Reply
rafaelfpviana
Junior Member
Posts: 14
Joined: 12 Dec 2006, 12:18
Location: Brazil

Adding ip to csf.allow problem

Post by rafaelfpviana »

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:

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
Serversphere
Junior Member
Posts: 71
Joined: 10 Dec 2006, 14:09
Location: New Jersey, USA
Contact:

Post by Serversphere »

I have experienced this as well, though I thought it was more my fault for not actually adding the LF me own self. ;)
chirpy
Moderator
Posts: 3537
Joined: 09 Dec 2006, 18:13

Post by chirpy »

I'll have a workaround in the next release to prevent that from happening.
Post Reply