Re: Problem Starting Shorewall - ULOG problem

Tom Eastep
Wed, 05 Aug 2009 19:26:50 -0000

Mekabe Ramein wrote:
> Hi,
>
> I am moving my old Shorewall configuration to a new box with new
> version of Shorewall.
> Unfortunately I have a problem starting it if I keep the "ULOG"
> parameter in the following line of rules file.
>
> REDIRECT:ULOG   wall    82      tcp     80
>
> If I remove the ":ULOG" from that line, Shorewall starts
successfully.
>
> I am attachig the start trace "shorewall -vv start" output to
this email.
>
> The given error is :
> iptables v1.3.5: Need TCP or UDP with port specification
> Try `iptables -h'' or ''iptables --help'' for more
information.
>    ERROR: Command "/sbin/iptables -A log0 -j REDIRECT --to-port
82" Failed
>
>
> What is the problem ?

The attached patch should correct the problem.

	patch /usr/share/shorewall/Shorewall/Chains.pm < logging.diff