csf -ar / csf -dr

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
sparek
Junior Member
Posts: 38
Joined: 11 Feb 2008, 17:55

csf -ar / csf -dr

Post by sparek »

Did the new updates break csf -ar and csf -dr functionality? They don't appear to be working for me.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf -ar / csf -dr

Post by ForumAdmin »

In what way are they not working for you?

Code: Select all

root@host [~]# csf -d 1.1.1.1
Adding 1.1.1.1 to csf.deny and iptables DROP...
DROP  all opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  
LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 1.1.1.1  
REDIRECT  tcp opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  multiport dports 80,2082,2095 redir ports 8888 
REDIRECT  tcp opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  multiport dports 21 redir ports 8889 
root@host [~]# csf -dr 1.1.1.1
Removing rule...
DROP  all opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  
LOGDROPOUT  all opt -- in * out !lo  0.0.0.0/0  -> 1.1.1.1  
REDIRECT  tcp opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  multiport dports 80,2082,2095 redir ports 8888 
REDIRECT  tcp opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  multiport dports 21 redir ports 8889 
root@host [~]# csf -a 1.1.1.1
Adding 1.1.1.1 to csf.allow and iptables ACCEPT...
ACCEPT  all opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  
ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 1.1.1.1  
root@host [~]# csf -ar 1.1.1.1
Removing rule...
ACCEPT  all opt -- in !lo out *  1.1.1.1  -> 0.0.0.0/0  
ACCEPT  all opt -- in * out !lo  0.0.0.0/0  -> 1.1.1.1  
sparek
Junior Member
Posts: 38
Joined: 11 Feb 2008, 17:55

Re: csf -ar / csf -dr

Post by sparek »

Sorry, should have given more information.

When giving port details

Code: Select all

root@host [~]# csf -a 'tcp|in|d=80|s=1.1.1.1'
Adding tcp|in|d=80|s=1.1.1.1 to csf.allow and iptables ACCEPT...
ACCEPT  tcp opt -- in eth1 out *  1.1.1.1  -> 0.0.0.0/0  tcp dpt:80 
root@host [~]# csf -ar 'tcp|in|d=80|s=1.1.1.1'
csf: tcp\|in\|d=80\|s=1.1.1.1 not found in csf.allow
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf -ar / csf -dr

Post by ForumAdmin »

That is an issue and we will look into it. Thank you for bringing it up.
ForumAdmin
Moderator
Posts: 1524
Joined: 01 Oct 2008, 09:24

Re: csf -ar / csf -dr

Post by ForumAdmin »

This should now be fixed in v9.07:
http://blog.configserver.com/
Post Reply