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 ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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/ |