Содержание

syntax error near unexpected token `('

Описание

При попытке добавить правило с участием таблицы, выдаётся ошибка:

# ipfw add 1000 deny tcp from not table(1) to me dst-port 22
bash: syntax error near unexpected token `('

Решение

Взять выражение table(1) в кавычки:

# ipfw add 1000 deny tcp from not 'table(1)' to me dst-port 22
01000 deny tcp from not table(1) to me dst-port 22

Информация

Источник: IPFW2 tables syntax