prog.header gives me no errors.

the ip command evokes the error:

firewall:/usr/share/shorewall# ip -4 route ls | save_default_route
awk: BEGIN        {default=0;}; \
awk:               ^ syntax error
awk: Kommandozeile:1:      /^default /  {default=1; print; next}; \
awk: Kommandozeile:1:                    ^ syntax error
awk: Kommandozeile:2:      /nexthop/    {if (default == 1 ) {print ; next} }; \
awk: Kommandozeile:2:                        ^ syntax error
awk: Kommandozeile:3:                   { default=0; };
awk: Kommandozeile:3:                     ^ syntax error

any ideas what I messed up?

Am 07.05.2011 um 16:35 schrieb Tom Eastep:

> On 5/7/11 7:01 AM, Sebastian Tänzer wrote:
>> Hello list,
>> 
>> system is a Debian 6.0 using manually installed 4.4.19.1 from source. Setup 
>> is a multi-ISP setup running on eth1 and ppp0 which WAS working fine so far 
>> but since the upgrade to 4.4.19.1 doesn't work reliably anymore, too.
>> 
>> A restart of shorewall brings up this error (which wasn't there when using 
>> the shorewall version coming with Deb 6.0):
>> 
>> firewall:~# shorewall restart
>> Compiling...
>> Processing /etc/shorewall/params ...
>> Processing /etc/shorewall/shorewall.conf...
>> Loading Modules...
>> Compiling /etc/shorewall/zones...
>> Compiling /etc/shorewall/interfaces...
>> Determining Hosts in Zones...
>> Locating Action Files...
>> Compiling /etc/shorewall/policy...
>> Adding rules for DHCP
>> Compiling TCP Flags filtering...
>> Compiling policy actions...
>> Compiling /usr/share/shorewall/action.Reject for chain Reject...
>> Compiling /usr/share/shorewall/action.Drop for chain Drop...
>> Compiling Kernel Route Filtering...
>> Compiling Martian Logging...
>> Compiling /etc/shorewall/providers...
>> Compiling /etc/shorewall/masq...
>> Compiling MAC Filtration -- Phase 1...
>> Compiling /etc/shorewall/rules...
>> Compiling /etc/shorewall/tunnels...
>> Compiling MAC Filtration -- Phase 2...
>> Applying Policies...
>> Generating Rule Matrix...
>> Creating iptables-restore input...
>> Compiling iptables-restore input for chain mangle:...
>> Compiling /etc/shorewall/routestopped...
>> Shorewall configuration compiled to /var/lib/shorewall/.restart
>> Restarting Shorewall....
>> Initializing...
>> Setting up Route Filtering...
>> Setting up Martian Logging...
>> awk: BEGIN        {default=0;}; \
>> awk:               ^ syntax error
>> awk: Kommandozeile:1:      /^default /  {default=1; print; next}; \
>> awk: Kommandozeile:1:                    ^ syntax error
>> awk: Kommandozeile:2:      /nexthop/    {if (default == 1 ) {print ; next} 
>> }; \
>> awk: Kommandozeile:2:                        ^ syntax error
>> awk: Kommandozeile:3:                   { default=0; };
>> awk: Kommandozeile:3:                     ^ syntax error
>> Adding Providers...
>>   WARNING: Interface eth1 is not usable -- Provider ISP1 (1) not Added
>>   WARNING: No Default route added (all 'balance' providers are down)
>> Setting up Traffic Control...
>> Preparing iptables-restore input...
>> Running /sbin/iptables-restore...
>> IPv4 Forwarding Enabled
>> Processing /etc/shorewall/started ...
>> done.
>> 
>> Has this been corrected in a more recent dev release perhaps?
> 
> Something is odd on your system. I run the same combination and I don't
> get these syntax errors.
> 
> Please try this:
> 
> a) . /usr/share/shorewall/prog.header
> b) ip -4 route ls | save_default_route
> 
> Do you see these errors in that case.
> 
> -Tom
> -- 
> Tom Eastep        \ When I die, I want to go like my Grandfather who
> Shoreline,         \ died peacefully in his sleep. Not screaming like
> Washington, USA     \ all of the passengers in his car
> http://shorewall.net \________________________________________________
> 
> ------------------------------------------------------------------------------
> WhatsUp Gold - Download Free Network Management Software
> The most intuitive, comprehensive, and cost-effective network 
> management toolset available today.  Delivers lowest initial 
> acquisition cost and overall TCO of any competing solution.
> http://p.sf.net/sfu/whatsupgold-sd_______________________________________________
> Shorewall-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/shorewall-users


------------------------------------------------------------------------------
WhatsUp Gold - Download Free Network Management Software
The most intuitive, comprehensive, and cost-effective network 
management toolset available today.  Delivers lowest initial 
acquisition cost and overall TCO of any competing solution.
http://p.sf.net/sfu/whatsupgold-sd
_______________________________________________
Shorewall-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/shorewall-users

Reply via email to