This is a discussion on Re: [AMaViS-user] p0f-analyzer load balancing problem within the Amavis User forums, part of the Anti-Spam and Anti-Virus Related Forums category; Bartek, > > > $policy_bank{'MX00'} = { > > > forward_method => 'smtp:[10.10.3.9]:10025', > > > $...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Bartek,
> > > $policy_bank{'MX00'} = { > > > forward_method => 'smtp:[10.10.3.9]:10025', > > > $os_fingerprint_method =>'p0f:[*]:1234', > > > }; Robert Brooks wrote: > > I think that should be * not[*], but I'm willing to be wrong. Thanks, correct. I have an incorrect example, sorry. > Well, in that case it works better, but still not as it should be: > > Nov 29 10:17:52 scanner00 amavis[6782]: (06782-03) dynamic destination: > p0f:*:1234 -> p0f:[10.10.3.244]:1234 > > 10.10.3.244 is actually ip number of scanner00, so it is trying to ask > itself? I just tried it here, and it works as expected, the UPD packet was sent to an IP address from which a connect to amavisd port 10024 came from. Are you sure you connected from a host other than 10.10.3.244? The IP address to which an UDP query packet is send should be the same as reported in the following two log entries (log level 5): (88442-11) Net::Server: 2007/11/29-16:39:37 CONNECT TCP Peer: "10.0.4.95:54292" Local: "10.0.4.8:10024" (88442-11) loaded base policy bank (88442-11) lookup_ip_acl (inet_acl): key="10.0.4.95" matches "10.0.4.95", result=1 > Also, I can see now something like that: > > Nov 29 10:17:52 scanner00 amavis[6782]: (06782-02) (!)loading policy > bank "MX00": unknown field "" > Nov 29 10:17:52 scanner00 amavis[6782]: (06782-02) loaded policy bank > "MX00" > > while my MX00 policy bank is: > > $interface_policy{'10049'} = 'MX00'; > $interface_policy{'10024'} = 'MX01'; > $policy_bank{'MX00'} = { > forward_method => 'smtp:[10.10.3.9]:10025', > $os_fingerprint_method =>'p0f:*:1234', > }; > $policy_bank{'MX01'} = { > forward_method => 'smtp:[10.10.3.9]:10025', > $os_fingerprint_method => 'p0f:*:1234', > }; > > What is going on here? Am I missing something? Syntax: $policy_bank{'MX00'} = { forward_method => 'smtp:[10.10.3.9]:10025', os_fingerprint_method => 'p0f:*:1234', }; (no dollar, hash keys are strings, not variables to be evaluated to an empty string) Mark ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ 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/ |
![]() |
| Thread Tools | |
| Display Modes | |
|
|