[AMaViS-user] Error with bind address line 79 p0f-analyzer.pl

This is a discussion on [AMaViS-user] Error with bind address line 79 p0f-analyzer.pl within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Hallo und Guten Morgen AMaViS-user, I starting p0f-analyzer.pl (and p0f) with runit (hint from ralph hildebrandt). I ...


Go Back   Usenet Forums > Anti-Spam and Anti-Virus Related Forums > Amavis User

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-06-2007
Jim Knuth
 
Posts: n/a
Default [AMaViS-user] Error with bind address line 79 p0f-analyzer.pl

Hallo und Guten Morgen AMaViS-user,

I starting p0f-analyzer.pl (and p0f) with runit (hint from ralph
hildebrandt). I get these "error".

--snip
runsvdir -P /var/service log: ddress already in use at /usr/sbin/p0f-analyz=
er.pl line 79.?bind: Address already in use at /usr/sbin/p0f-analyzer.pl li=
ne 79.?bind: Address already in use at
/usr/sbin/p0f-analyzer.pl line 79.?bind: Address already in use at /usr/sbi=
n/p0f-analyzer.pl line 79.?bind: Address already in
use at /usr/sbin/p0f-analyzer.pl line 79.?bind: Address already in use at =
/usr/sbin/p0f-analyzer.pl line 79.?
--snap

I`ve patched p0f-analyzer.pl

--patch

--- p0f-analyzer.pl~ Wed Nov 29 20:25:35 2006
+++ p0f-analyzer.pl Wed Jan 3 14:51:28 2007
@@ -68,4 +68,7 @@
my($port) =3D untaint($ARGV[0]);

+# my($bind_addr) =3D '0.0.0.0'; # bind to all IPv4 interfaces
+ my($bind_addr) =3D '127.0.0.1'; # bind just to a loopback interface
+
my(@inet_acl) =3D qw( 127.0.0.1 ); # list of IP addresses from which queries
# will be accepted, others are ignored
@@ -77,5 +80,10 @@
$port, join(", ",@inet_acl)) if $debug;
socket(S, PF_INET, SOCK_DGRAM, getprotobyname('udp')) or die "socket: $!";
- bind(S, sockaddr_in($port,INADDR_ANY)) or die "bind: $!";
+
+ my($packed_addr);
+ $packed_addr =3D inet_aton($bind_addr)
+ or die "inet_aton: bad IP address [$bind_addr]: $!";
+ bind(S, sockaddr_in($port,$packed_addr))
+ or die "binding to [$bind_addr] failed: $!";
my($fn_sock) =3D fileno(S); my($fn_stdin) =3D fileno(STDIN);
my($rin,$rout); $rin =3D '';

-- end

What am I missing or is it that normal? Thank you.


-- =

Viele Gruesse, Kind regards,
Jim Knuth
jk@jkart.de
ICQ #277289867
----------
Zufalls-Zitat
----------
Um klar zu sehen, gen=FCgt oft ein Wechsel der Blickrichtung. =

(Antoine de Saint-Exupery)
----------
Der Text hat nichts mit dem Empfaenger der Mail zu tun
----------
Virus free. Checked by NOD32 Version 1959 Build 8712 05.01.2007


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?p...orge&CID=3DDE=
VDEV
_______________________________________________
AMaViS-user mailing list
AMaViS-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/...fo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:36 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0