Displaying 20 results from an estimated 73 matches for "logformat".
2003 May 26
2
minor problem with shorewall-1.4.4
...acters. If you
have REJECT policy between 2 zones which have 5 characters long, here
example ipsec zone, I iptables will give error because logprefix is
limited to 29 characters.
--log-prefix "Shorewall:ipsec2ipsec:1:REJECT:"
So zone names should be limited to 4 characters or default logformat
needs change. My fix was to change to:
LOGFORMAT="Shw:%s:%d:%s:"
But there still is limit to zone name length which needs to be enforced.
--
Tuomo Soini <tis@foobar.fi>
Linux and network services
Foobar Oy <http://foobar.fi/>
2004 Feb 10
22
Re: [Shorewall-newbies] specific log-prefix ... patch
...lan:$ntp_servers udp 123 - - - - ntp
>
> a problem with the patch is that now the logprefix is mandatory.
> i''m trying to debug it, but i can''t find the flaw.
Also, with two 5-character zones, you probably can''t specify a logprefix using
the standard LOGFORMAT string -- the --log-prefix value will be too long.
-Tom
--
Tom Eastep \ Nothing is foolproof to a sufficiently talented fool
Shoreline, \ http://shorewall.net
Washington USA \ teastep@shorewall.net
2003 May 21
1
Call for Testers of Shorewall/Fireparse (take 2)
The version of Shorewall in the \Shorewall CVS project has my next attempt
at Fireparse integration.
a) The LOGMARKER variable is gone and is replaced with LOGFORMAT
b) LOGFORMAT contains a printf (1) formatting template that accepts three
arguments:
1) The Chain Name
2) The Logging Rule Number within Chain
3) The disposition of the packet (DROP,REJECT,ACCEPT)
c) To use Shorewall with Fireparse, I believe that the correct setting is:
LOGFORMAT="fp=...
2006 Nov 07
0
LOGFORMAT Problem in Shorewall 3.2.*
A fix is available at http://www1.shorewall.net/pub/shorewall/3.2/shorewall-3.2.5
If white space is included in LOGFORMAT then a startup error results.
Either:
a) Replace /usr/share/shorewall/compiler and /usr/share/shorewall/functions
with the ''compiler'' and ''functions'' files from the errata/Shorewall/
sub-directory.
b) Patch /usr/share/shorewall/compil...
2004 Jul 15
0
long rule action names with logging cause iptables errors
...ing:info net fw" added.
Rule "AllowWeb:debug net fw" added.
iptables v1.2.9: Maximum prefix length 29 for --log-prefix
Try `iptables -h'' or ''iptables --help'' for more information.
Fixing this means checking the length of the expansion of the LOGFORMAT
variable after printf has had its way. Perhaps change this:
--log-prefix ''"$(printf "$LOGFORMAT" $chain $rulenum $disposition)"''
to this:
--log-prefix ''"$(Logprintf "$LOGFORMAT" $chain $rulenum $disposition)"''...
2003 May 23
0
Shorewall 1.4.4
...ted:
None.
New Features:
1) A REDIRECT-rule target has been added. This target behaves for
REDIRECT in the same was as DNAT-does for DNAT in that the
Netfilter nat table REDIRECT rule is added but not the companion
filter table ACCEPT rule.
2) The LOGMARKER variable has been renamed LOGFORMAT and has been
changed to a ''printf'' formatting template which accepts three
arguments (the chain name, logging rule number and the disposition).
To use LOGFORMAT with fireparse, set it as:
LOGFORMAT="fp=%s:%d a=%s "
CAUTION: /sbin/shorewall uses the leading pa...
2009 Mar 15
2
zone name length
How does LOGFORMAT in shorewall.conf control the length of the zone name
as discussed in the zones man page?
The default max length is 5. What would I specify in LOGFORMAT to allow
a 6 character zone name?
------------------------------------------------------------------------------
Apps built with the Adobe(...
2015 May 07
2
Apache 2.2 itk - 404 not found
...low,deny
Deny from all
Satisfy All
</Files>
TypesConfig /etc/mime.types
DefaultType text/plain
<IfModule mod_mime_magic.c>
MIMEMagicFile conf/magic
</IfModule>
HostnameLookups Off
ErrorLog logs/error_log
LogLevel debug
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
\"%{User-Agent}i\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
LogFormat "%{Referer}i -> %U" referer
LogFormat "%{User-agent}i" agent
Cu...
2010 Apr 12
21
Using the limit action on a DNAT rule to prevent DoS attackson a specific port
Hi there.
I''m reading and reading through the doc''s and previous posts, but cannot
seem to find what I''m looking for. I want to create a rule that prevents DoS
and maybe even DDoS attacks against a specific port. The current rule looks
like this (the PORT''s and IP''s are dummies of course):
#ACTION SOURCE DEST
2015 May 07
3
Apache 2.2 itk - 404 not found
...TypesConfig /etc/mime.types
>> DefaultType text/plain
>> <IfModule mod_mime_magic.c>
>> MIMEMagicFile conf/magic
>> </IfModule>
>> HostnameLookups Off
>> ErrorLog logs/error_log
>> LogLevel debug
>> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
>> \"%{User-Agent}i\"" combined
>> LogFormat "%h %l %u %t \"%r\" %>s %b" common
>> LogFormat "%{Referer}i -> %U" referer
>> LogFormat &qu...
2015 May 07
0
Apache 2.2 itk - 404 not found
...Satisfy All
> </Files>
> TypesConfig /etc/mime.types
> DefaultType text/plain
> <IfModule mod_mime_magic.c>
> MIMEMagicFile conf/magic
> </IfModule>
> HostnameLookups Off
> ErrorLog logs/error_log
> LogLevel debug
> LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\"
> \"%{User-Agent}i\"" combined
> LogFormat "%h %l %u %t \"%r\" %>s %b" common
> LogFormat "%{Referer}i -> %U" referer
> LogFormat "%{User-agent}i&qu...
2004 Jul 15
3
slight simplification to firewall log_rule_limit code
...fi
case $level in
ULOG) log=ulog LOGTYPE=ULOG loglevel= ;;
*) log=log LOGTYPE=LOG loglevel="--log-level $level" ;;
esac
eval iptables -A $chain $@ $limit -j $LOGTYPE $LOGPARMS \
$loglevel \
--${log}-prefix ''"$(Logprintf "$LOGFORMAT" $chain $rulenum $disposition)"''
if [ $? -ne 0 ] ; then
[ -z "$stopping" ] && { stop_firewall; exit 2; }
fi
if [ -n "$LOGRULENUMBERS" ]; then
rulenum=$(($rulenum + 1))
eval ${chain}_logrules=$rulenum
fi
The $r...
2003 May 27
0
Shorewall 1.4.4a
The Fireparse --log-prefix fiasco continues.
Version 1.4.4a omits the logging rule number if the LOGFORMAT value does
not contain ''%d''. The default value of LOGFORMAT is then changed to
"Shorewall:%s:%s:" so that the maximum length of a short zone name is once
again back at 5.
-Tom
--
Tom Eastep \ Shorewall - iptables made easy
Shoreline, \ http://www.shorewall.ne...
2007 Jun 01
0
USB phone -- Help
...B0
Now I want to send a sms to my friends.
I installed gammu. Pls see below for installed rpm.
[root at mailgw ~]# rpm -qa |grep gammu
gammu-1.11.0-1.el5.rf
here's my /etc/gammurc file.
[gammu]
port = /dev/ttyUSB0
;model = 6110
connection = dlr3
;synchronizetime = yes
;logfile = gammulog
;logformat = textall
;use_locking = yes
;gammuloc = locfile
;startinfo = yes
;gammucoding = utf8
;rsslevel = teststable
;usephonedb = yes
[gammu1]
port = /dev/ttyUSB1
;model = 6110
connection = dlr3
;synchronizetime = yes
;logfile = gammulog
;logformat = textall
;use_locking = yes
;gammuloc = locfile
;starti...
2019 Apr 12
1
Cockpit within httpd
...server.
I tried as follows for the definition of the virtual server:
<VirtualHost *:80>
ServerName xxx.example.com
ServerAdmin admin_xxx at example.com
DocumentRoot /home/xxx/public_html
Options +ExecCGI +Includes +FollowSymLinks
LogFormat Combined
TransferLog /var/log/httpd/u_xxx_access_log
ErrorLog /var/log/httpd/u_xxx_error_log
RewriteEngine on
ProxyPreserveHost On
RewriteCond %{HTTP:Upgrade} =websocket [NC]
RewriteRule /cockpit/(.*) ws...
2007 Nov 20
11
rfc1918 on external interface
Please, help me. Can i forbid and how any outgoing traffic
(ping,trace) to rfc1918 networks on my external interfaces?
Thank you very much.
Aleksandr
--------------------
Продукция AcmePower - это зарядные устройства, аккумуляторы формата АА
и ААА, сетевые адаптеры, аккумуляторные батареи для фото и видеокамер,
ноутбуков и PDA. Гарантия минского сервисного центра.
2005 Sep 13
1
OT: ProFTPD web browser login
...axInstances 20
User nobody
Group nobody
ScoreboardFile /var/run/proftpd.score
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
<Anonymous ~ftp>
<Limit LOGIN>
AllowAll
</Limit>
User ftp
Group...
2007 Jan 25
6
NOT FOUND error
...t/css
BrowserMatch ^Mozilla/4 gzip-only-text/html
BrowserMatch ^Mozilla/4.0[678] no-gzip
BrowserMatch bMSIE !no-gzip !gzip-only-text/html
# Uncomment for deflate debugging
#DeflateFilterNote Input input_info
#DeflateFilterNote Output output_info
#DeflateFilterNote Ratio ratio_info
#LogFormat ''"%r" %{output_info}n/%{input_info}n (%{ratio_info}n%%)'' deflate
#CustomLog logs/mosaic_deflate_log deflate
-----
myapp.conf:
<VirtualHost myapp.tld:80>
Include /etc/rails/myapp.common
# This is required to convince Rails (via mod_proxy_balancer) th...
2005 Sep 16
1
OT: Proftpd and Iptables
...nstances 20
User nobody
Group nobody
ScoreboardFile /var/run/proftpd.score
<Global>
AllowOverwrite yes
<Limit ALL SITE_CHMOD>
AllowAll
</Limit>
</Global>
LogFormat default "%h %l %u %t \"%r\" %s %b"
LogFormat auth "%v [%P] %h %t \"%r\" %s"
TransferLog /var/log/proftpd/xferlog
ExtendedLog /var/log/proftpd/access.log WRITE,READ
Extended...
2008 Apr 20
2
mod_rails showing plain text instead of actual page
...passenger-spawn-server
RailsRuby /usr/local/bin/ruby18
DocumentRoot "/usr/local/www"
User www
Group www
<Directory />
AllowOverride None
Order deny,allow
Deny from all
</Directory>
ErrorLog /var/log/httpd-error.log
LogLevel warn
<IfModule log_config_module>
LogFormat "%h %l %u %t \"%r\" %>s %b \"%{Referer}i\" \"%{User-Agent}i
\"" combined
LogFormat "%h %l %u %t \"%r\" %>s %b" common
CustomLog /var/log/httpd-access.log combined
</IfModule>
DefaultType text/plain
<IfModule mime_modul...