Destination IP ignored in csf.allow when uid specified
Posted: 30 Apr 2018, 16:57
Per title, if I specify a uid match, it seems to ignore the destination IP setting in csf.allow. To reproduce, add the following line to your csf.allow:
tcp|out|d=1234|d=1.2.3.4|u=1000
This should allow uid 1000 access to 1.2.3.4 on tcp port 1234, however after reloading the csf rules the actual rule in iptables is that it allows uid 1000 access to ANY destination ip on tcp 1234
Chain ALLOWOUT (1 references)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1234 owner UID match 1000
Running csf v12.02 (cPanel) on CloudLinux 7.4
tcp|out|d=1234|d=1.2.3.4|u=1000
This should allow uid 1000 access to 1.2.3.4 on tcp port 1234, however after reloading the csf rules the actual rule in iptables is that it allows uid 1000 access to ANY destination ip on tcp 1234
Chain ALLOWOUT (1 references)
target prot opt source destination
ACCEPT tcp -- 0.0.0.0/0 0.0.0.0/0 tcp dpt:1234 owner UID match 1000
Running csf v12.02 (cPanel) on CloudLinux 7.4