iptables syntax error
Posted: 26 Aug 2014, 04:22
We run the same config on all of our servers, however this one spits out an iptables error.
I grepped /etc/csf for those IPs, and they don't exist, so I'm not sure if it's one of the blacklists added them, and if so, why it's not specifying the dest port. Running CSF v7.15.
Code: Select all
debug[820]: Command:/sbin/iptables -v --policy FORWARD DROP
debug[822]: Command:/sbin/ip6tables -v --policy INPUT DROP
debug[823]: Command:/sbin/ip6tables -v --policy OUTPUT DROP
debug[824]: Command:/sbin/ip6tables -v --policy FORWARD DROP
*ERROR* line:[1352]
Command:[/sbin/iptables -v -A DENYIN ! -i lo -p tcp --dport -s 120.140.154.96 -j DROP]
Error:[iptables v1.4.7: invalid port/service `-s' specified]
You should check through the main output carefully
*ERROR* line:[1352]
Command:[/sbin/iptables -v -A DENYIN ! -i lo -p tcp --dport -s 187.32.5.17 -j DROP]
Error:[iptables v1.4.7: invalid port/service `-s' specified]
You should check through the main output carefully
*ERROR* line:[1352]
Command:[/sbin/iptables -v -A DENYIN ! -i lo -p tcp --dport -s 49.248.188.35 -j DROP]
Error:[iptables v1.4.7: invalid port/service `-s' specified]
You should check through the main output carefully
*ERROR* line:[1352]
Command:[/sbin/iptables -v -A DENYIN ! -i lo -p tcp --dport -s 113.179.240.164 -j DROP]
Error:[iptables v1.4.7: invalid port/service `-s' specified]
You should check through the main output carefully